npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

coaia-visualizer-mcp

v1.0.0

Published

MCP server for COAIA Visualizer chart operations

Readme

COAIA Visualizer MCP Server

Model Context Protocol (MCP) server for accessing COAIA Visualizer chart services from AI agents.

Overview

This MCP server enables AI agents (like Claude Desktop) to interact with running COAIA Visualizer instances through a secure API. Agents can list, read, create, update, and delete structural tension charts.

Installation

Prerequisites

  1. Node.js 18+ installed
  2. COAIA Visualizer running (from parent directory)
  3. API token from visualizer startup

Setup

cd mcp
npm install
npm run build

Configuration

Environment Variables

Create a .env file in the mcp directory:

# Required: API token (shown when coaia-visualizer starts)
COAIAN_API_TOKEN=your_token_here

# Optional: API URL (defaults to http://localhost:3000)
COAIAV_API_URL=http://localhost:3000

Claude Desktop Configuration

Add to your Claude Desktop config (~/Library/Application Support/Claude/claude_desktop_config.json on macOS):

{
  "mcpServers": {
    "coaia-visualizer": {
      "command": "node",
      "args": [
        "/path/to/coaia-visualizer-feat-4/mcp/dist/index.js"
      ],
      "env": {
        "COAIAN_API_TOKEN": "your_token_here",
        "COAIAV_API_URL": "http://localhost:3000"
      }
    }
  }
}

Available Tools

list_charts

List all structural tension charts with optional filtering.

Parameters:

  • level (optional): Filter by chart level (0, 1, 2, etc.)
  • rootOnly (optional): If true, return only root charts

Example:

{
  "level": 0,
  "rootOnly": true
}

get_chart

Get detailed information about a specific chart.

Parameters:

  • chartId (required): The chart ID (e.g., "chart_1")

Example:

{
  "chartId": "chart_1"
}

create_chart

Create a new structural tension chart.

Parameters:

  • desiredOutcome (required): What you want to CREATE
  • currentReality (required): Honest assessment of current state
  • dueDate (optional): ISO date string
  • parentChartId (optional): Parent chart ID for sub-charts

Example:

{
  "desiredOutcome": "Build a working API",
  "currentReality": "No API exists yet",
  "dueDate": "2026-01-20"
}

update_chart

Update a chart's desired outcome, current reality, or due date.

Parameters:

  • chartId (required): Chart ID to update
  • updateDesiredOutcome (optional): New desired outcome text
  • addCurrentRealityObservation (optional): Add observation
  • updateDueDate (optional): New due date or null

Example:

{
  "chartId": "chart_1",
  "addCurrentRealityObservation": "Completed API authentication"
}

add_action_step

Add a new action step to a chart.

Parameters:

  • chartId (required): Chart ID
  • description (required): Action description
  • dueDate (optional): ISO date string

Example:

{
  "chartId": "chart_1",
  "description": "Write API documentation",
  "dueDate": "2026-01-15"
}

update_action_step

Update an existing action step.

Parameters:

  • chartId (required): Chart ID
  • actionName (required): Action entity name (e.g., "chart_1_action_1")
  • description (required): New description

toggle_action_completion

Toggle completion status of an action.

Parameters:

  • chartId (required): Chart ID
  • actionName (required): Action entity name

delete_action_step

Delete an action step.

Parameters:

  • chartId (required): Chart ID
  • actionName (required): Action entity name

delete_chart

Delete a chart and all its sub-charts.

Parameters:

  • chartId (required): Chart ID to delete

search_charts

Search charts by text or filters.

Parameters:

  • q (optional): Search term
  • level (optional): Filter by level
  • completed (optional): Filter by completion status
  • hasActions (optional): Filter charts with actions

Example:

{
  "q": "API",
  "hasActions": true
}

get_chart_progress

Calculate progress percentage for a chart.

Parameters:

  • chartId (required): Chart ID

Usage Examples

Starting the Server

  1. Start COAIA Visualizer:
cd /path/to/coaia-visualizer-feat-4
coaia-visualizer --memory-path ./memory.jsonl
  1. Note the API token shown in output
  2. Configure Claude Desktop with the token
  3. Restart Claude Desktop

Agent Interactions

Once configured, you can ask Claude:

  • "List all my structural tension charts"
  • "Show me chart_1 in detail"
  • "Create a new chart for building an API"
  • "Add an action step to chart_1"
  • "What's the progress on chart_2?"
  • "Search for charts related to documentation"

Development

Building

npm run build

Watch Mode

npm run dev

Testing

npm test

Troubleshooting

"Unauthorized" Error

  • Verify COAIAN_API_TOKEN matches the token from visualizer startup
  • Check that token is properly set in environment/config

"Connection Refused"

  • Ensure COAIA Visualizer is running
  • Verify COAIAV_API_URL is correct
  • Check firewall/network settings

"Chart not found"

  • Verify chart ID exists using list_charts
  • Check memory file has data

Security

  • API token is required for all requests
  • Token is auto-generated if not set (dev only)
  • Local-only by default (no CORS)
  • All operations create backups before modification

License

MIT