Repository navigation
Description
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:
- Speaks the MCP stdio protocol
- Translates MCP tool calls into
nodespaceCLI invocations - Returns CLI output as MCP tool results
Install and configure
# Automatic (via onboarding wizard #1180 or settings panel #1181)
# Manual:
npx @nodespaceai/mcp installWrites 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 typenodespace_get_node— retrieve a node by IDnodespace_search— semantic search across the knowledge graphnodespace_list_nodes— list nodes by typenodespace_update_node— update node content or propertiesnodespace_delete_node— delete a node
Acceptance Criteria
-
@nodespaceai/mcppublished to npm (public, under@nodespaceaiorg) - MCP server speaks stdio protocol compatible with Claude desktop and Cline
- All six tools implemented as CLI wrappers (no direct gRPC)
-
npx @nodespaceai/mcpstarts the server — no global install required -
npx @nodespaceai/mcp installwrites correct entry toclaude_desktop_config.json(safe merge) -
npx @nodespaceai/mcp uninstallremoves the entry - Assumes
nodespaceCLI 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:fixpasses
Technical Specifications
Reference Files
packages/mcp/— new package directorypackages/mcp/src/server.ts— MCP stdio server using@modelcontextprotocol/sdkpackages/mcp/src/tools.ts— tool definitions and CLI invocation logicpackages/mcp/src/install.ts— install/uninstall CLI scriptpackages/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
- Publish @nodespaceai/agent-tools as first npm package under @nodespaceai scope #1183 (@nodespaceai/agent-tools must be published first to establish the org)
- Bundle nodespaced and nodespace CLI in Tauri DMG with launchd agent registration #1179 or Shell installer: curl-based headless install for nodespaced and nodespace CLI #1182 (nodespace CLI must be installed for MCP server to work)
Related Issues
- Publish @nodespaceai/agent-tools as first npm package under @nodespaceai scope #1183 (@nodespaceai/agent-tools)
- Publish @nodespaceai/skill to npm: distributable skill package for PTY agent marketplaces #1184 (@nodespaceai/skill)
- First-launch onboarding wizard: opt-in PATH, MCP, and skill setup #1180 (onboarding wizard configures MCP automatically)
- Settings: Integrations panel for PATH and skill configuration #1181 (settings panel configures MCP)
Non-Goals
- Direct gRPC connection from MCP server (CLI wrapper only)
- HTTP/SSE transport (stdio only at launch)
- Authentication between MCP server and nodespaced (UDS handles this via Switch nodespaced IPC transport from TCP to Unix Domain Sockets #1176)
Activity
[-]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[/+]malibio commentedon May 19, 2026
Frontend baseline: 4 failed | 125 passed (129 files), 93 failed | 3828 passed (3921 tests) — pre-existing failures
Add @nodespaceai/mcp: MCP server exposing NodeSpace as AI tools (closes
Add @nodespaceai/mcp: MCP server exposing NodeSpace as AI tools (#1190)
Add @nodespaceai/mcp: MCP server exposing NodeSpace as AI tools (#1190)