@melandlabs/mcp
v0.3.1
Published
OpenContext · mcp module
Readme
mcp (workspace)
Workspace package. Internal monorepo build artifact; not published to npm. End users install
@melandlabs/opencontext(the facade) instead. Monorepo contributors depend on this package via the workspace protocol.
Stdio MCP server for using local OpenContext Desktop from MCP-capable agent runtimes.
Local Build
Build the MCP server from the OpenContext repository:
pnpm --filter @melandlabs/mcp buildThen point the runtime at the built stdio entrypoint:
{
"mcpServers": {
"opencontext-local": {
"command": "node",
"args": ["/path/to/opencontext/packages/ai/mcp/dist/cli.js"]
}
}
}CLI clients can add the local server with:
codex mcp add opencontext-local -- node "/path/to/opencontext/packages/ai/mcp/dist/cli.js"
claude mcp add --transport stdio --scope user opencontext-local -- node "/path/to/opencontext/packages/ai/mcp/dist/cli.js"On Windows, use an escaped path in JSON, such as
C:\\path\\to\\opencontext\\packages\\ai\\mcp\\dist\\cli.js.
User Flow
- Add the MCP server config in the agent runtime.
- Reload or restart the runtime's MCP servers.
- Run
opencontext_setuporopencontext_statusfirst. - Follow the returned setup guidance if OpenContext Desktop is not ready.
- Use OpenContext memory, RAG, knowledge base, connector, and Loop tools.
Tools
opencontext_setup,opencontext_statusopencontext_memory_searchopencontext_rag_searchopencontext_kb_list_documents,opencontext_kb_get_document,opencontext_kb_statsopencontext_connectors_list_accounts,opencontext_connectors_statusopencontext_loop_state,opencontext_loop_list_decisions
