Skip to content

Publish @nodespaceai/mcp to npm: MCP server exposing nodespace CLI as AI tools #1185

Closed

Description

@malibio

Overview

Package and publish @nodespaceai/mcp to npm — a thin MCP server that wraps the nodespace CLI and exposes NodeSpace knowledge graph operations as MCP tools. Enables any MCP-compatible agent (Claude desktop, Cline, Cursor, etc.) to use NodeSpace via standard MCP configuration.

Problem Statement

MCP is the dominant tool-access standard for non-PTY AI agents. Claude desktop, Cline, and many others support MCP but not PTY-based skills. Without an MCP server, NodeSpace is inaccessible to this large class of agents. This issue reintroduces MCP as a thin CLI wrapper — not an in-process service — so it requires no gRPC dependency and works as long as nodespace is on $PATH.

Proposed Solution

A minimal MCP server (@nodespaceai/mcp) that:

  1. Speaks the MCP stdio protocol
  2. Translates MCP tool calls into nodespace CLI invocations
  3. Returns CLI output as MCP tool results

Install and configure

# Automatic (via onboarding wizard #1180 or settings panel #1181)
# Manual:
npx @nodespaceai/mcp install

Writes to ~/Library/Application Support/Claude/claude_desktop_config.json:

{
  "mcpServers": {
    "nodespace": {
      "command": "npx",
      "args": ["@nodespaceai/mcp"]
    }
  }
}

MCP tools exposed

  • nodespace_create_node — create a node with content and type
  • nodespace_get_node — retrieve a node by ID
  • nodespace_search — semantic search across the knowledge graph
  • nodespace_list_nodes — list nodes by type
  • nodespace_update_node — update node content or properties
  • nodespace_delete_node — delete a node

Acceptance Criteria

  • @nodespaceai/mcp published to npm (public, under @nodespaceai org)
  • MCP server speaks stdio protocol compatible with Claude desktop and Cline
  • All six tools implemented as CLI wrappers (no direct gRPC)
  • npx @nodespaceai/mcp starts the server — no global install required
  • npx @nodespaceai/mcp install writes correct entry to claude_desktop_config.json (safe merge)
  • npx @nodespaceai/mcp uninstall removes the entry
  • Assumes nodespace CLI is on $PATH — clear error message if not found
  • Submitted to MCP marketplaces (mcp.so, Smithery, mcpmarket.com, Cline) for discoverability
  • CI/CD release workflow publishes on release tag
  • bun run quality:fix passes

Technical Specifications

Reference Files

  • packages/mcp/ — new package directory
  • packages/mcp/src/server.ts — MCP stdio server using @modelcontextprotocol/sdk
  • packages/mcp/src/tools.ts — tool definitions and CLI invocation logic
  • packages/mcp/src/install.ts — install/uninstall CLI script
  • packages/mcp/package.json — name: "@nodespaceai/mcp", bin: { "nodespace-mcp": "src/server.ts" }

Tool implementation pattern

server.tool("nodespace_search", { query: z.string(), limit: z.number().optional() },
  async ({ query, limit }) => {
    const result = await execa("nodespace", ["search", query, "--limit", String(limit ?? 10)]);
    return { content: [{ type: "text", text: result.stdout }] };
  }
);

MCP marketplace submission

After publish, submit to:

  • mcp.so (GitHub PR to their registry)
  • Smithery (smithery.ai/submit)
  • mcpmarket.com (submit form)
  • Cline marketplace (github.com/cline/mcp-marketplace PR)

Dependencies

Related Issues

Non-Goals

Activity

  1. changed the title [-]Publish @nodespace/mcp to npm: MCP server exposing nodespace CLI as AI tools[/-] [+]Publish @nodespaceai/mcp to npm: MCP server exposing nodespace CLI as AI tools[/+] on May 19, 2026
  2. malibio commented on May 19, 2026

    @malibio
    CollaboratorAuthor

    Frontend baseline: 4 failed | 125 passed (129 files), 93 failed | 3828 passed (3921 tests) — pre-existing failures

  3. self-assigned this
    on May 19, 2026
  4. added 2 commits that reference this issue on May 19, 2026
    51f9cee
    3db6743
  5. added a commit that references this issue on Jun 22, 2026
    8f9369e
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions