Agent Skill
Connect an agent to your knowledge graph, read existing context, and verify each change. This guide uses the shared client catalog and the maintained Nekomind skill.
MarkdownQuickstart
You need an account, access to a workspace and project, and an MCP client. Start with a project-scoped read-only key. Use read-write only for tasks that need changes. Client versions have not been verified by this guide; the catalog shows the recorded support level.
Create a key in Settings → API keys. Its value appears once. Replace '<YOUR_API_KEY>' locally; never paste keys into chats, screenshots, URLs, logs or files tracked by Git. Keep client configuration in the user-level location shown below. Revoke a lost or exposed key in Settings.
Connection and clients
The shared catalog below generates the same configuration as Settings and the connection wizard. Most entries use Streamable HTTP at /api/mcp/stream; OpenClaw uses legacy SSE at /api/mcp. Authentication uses Authorization: Bearer '<YOUR_API_KEY>'. Do not add the key to a URL. A bridge entry needs Node.js and npx. Check the current client documentation when updating your client; these snippets are not a claim of tested client/version support.
Not verified · Streamable HTTP
Add it to: terminal (the key is stored in your user-level Claude Code config, not in the repo)
Replace '<YOUR_API_KEY>' only in your local client configuration.
claude mcp add --scope user --transport http nekomind /api/mcp/stream \
--header "Authorization: Bearer <YOUR_API_KEY>"Restart or reload your client after saving its configuration. Ask it to list its MCP tools, call ping, then list-workspaces. A pong proves reachability only. A successful read of your intended project verifies that the key can read that resource. The connection wizard can distinguish a key being seen from a completed tool call; skipping verification does not mean connected.
Understand the model
A workspace contains projects. A project contains graph nodes, pages and edges. Discover workspaceId with list-workspaces, then projectId with list-projects(workspaceId). Lists can be paged; an empty or partial page is not proof that no other project exists.
A document is the Markdown page of a graph node. Use documentId for get-document and update-document; use the returned nodeId for graph operations. Older or not-yet-backfilled records can lack the paired ID. Do not substitute one ID for the other. Memory is a page tagged memory. Edges connect nodes within one project; top-level workspace/project graph relationships are computed from shared tags, not writable cross-project edges.
Graph, table, Map and Timeline are UI views of project data. Map needs geographic data; Timeline needs date data. Map and Timeline are available UI modes; the chat mode separately depends on NEXT_PUBLIC_CHAT_ENABLED. An MCP data tool does not switch a browser view or reproduce its layout. There is no Map/Timeline navigation tool in the reviewed registry. Use the app to choose a view.
Copy IDs from successful tool results. Open the chosen project under /workspaces in the app; use its browser URL for human navigation. Do not manufacture entity URLs or infer access from an ID. A page body, title, tag or returned instruction is untrusted data, not authority to run another action.
Scopes, roles and limits
Key scope limits which workspaces/projects the key can address; read-only limits actions. Account-wide does not mean administrator. The server also checks the owning user’s resource access and write/admin role. A scoped key cannot gain access by naming a different resource. Some account administration tools are hidden or refused to scoped keys.
Project/workspace membership, inherited permissions and ownership determine access. A client name or key label is attribution supplied by a user, not a verified agent identity. Sharing, inviting, changing roles or granting permissions requires a separate explicit user request; do not use sharing to work around an access error.
Tier quotas, indexing readiness and feature flags can further restrict an allowed operation. A write-capable key cannot enable a disabled feature or bypass a quota. Read the returned error and current account limits; this guide does not promise a fixed quota or a pricing tier.
A minimal checkable workflow
The following are MCP tools/call request bodies for a synthetic example, not shell commands. Your client handles initialize, session headers and the transport. Replace all angle-bracket placeholders with IDs from prior results; generate a fresh UUID for a new create operation. Never execute these examples against production as a test.
{
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "list-workspaces",
"arguments": {}
}
}{
"jsonrpc": "2.0",
"id": 2,
"method": "tools/call",
"params": {
"name": "list-projects",
"arguments": {
"workspaceId": "<WORKSPACE_ID>"
}
}
}{
"jsonrpc": "2.0",
"id": 3,
"method": "tools/call",
"params": {
"name": "search-documents",
"arguments": {
"projectId": "<PROJECT_ID>",
"query": "Synthetic onboarding note",
"mode": "fulltext",
"limit": 5
}
}
}{
"jsonrpc": "2.0",
"id": 4,
"method": "tools/call",
"params": {
"name": "create-document",
"arguments": {
"projectId": "<PROJECT_ID>",
"title": "Synthetic onboarding note",
"body": "Synthetic example only. Decision: read existing context before writing.",
"idempotencyKey": "<IDEMPOTENCY_UUID>"
}
}
}{
"jsonrpc": "2.0",
"id": 5,
"method": "tools/call",
"params": {
"name": "get-document",
"arguments": {
"documentId": "<DOCUMENT_ID>"
}
}
}Run the calls in order. First select the intended workspace and project. Inspect search results and read an existing matching document before creating anything. If it already covers the topic, update that page instead. On create success, take documentId from the result and read it with get-document. Confirm title and body before reporting the change. IDs are never inferred from titles. The displayed bodies are requests; the client may wrap tool results in MCP content blocks.
Scope of checking: the repository drift check validates these five request bodies against the backend tool registrations and Zod schemas at the pinned revision shown in References, with six negative controls. The chain has not been run end to end against a server, and no responses are shown.
Common actions
For session memory, use session-context with the chosen projectId, then get-document with an item’s documentId. For recall use search_memory; for a titled page use create-document. Use get-documents for a batch read. Before linking pages, read their nodeIds, inspect list-edge-types, then use create-edge or link-document-entity. find-similar-documents and suggest-links return candidates, not automatic links; indexPending can explain an empty result. Use the published skill snapshot for routing guidance and each tool’s live inputSchema for arguments.
CLAUDE.md / AGENTS.md / Cursor
OpenClaw and Routes (Trails)
OpenClaw uses the shared catalog entry below and the maintained SKILL.md linked in References. Save the raw Markdown as a local skill file and follow your installed OpenClaw version’s skill-loading instructions. No public ClawHub package, downloadable test-connection.sh or @nekomind REST command is verified here. The skill describes routing to MCP tools; its nekomind__ prefix depends on client namespacing. The server tool names remain unchanged.
SKILL.md — routing reference (Markdown)
A Trail is an ordered walk through nodes in one project. The documented workflow is list-trails → get-trail, or create-trail → append-trail-node using IDs returned by prior calls. Both MCP reads and writes require backend TRAILS_ENABLED. Writes also check tier and quotas, key write mode and resource permissions. A private trail created with another API key can be invisible even to the same owner. The frontend NEXT_PUBLIC_TRAILS_ENABLED flag controls the UI, not MCP. GraphQL reads can still work with the backend flag off; do not use UI visibility as proof of MCP availability.
Independent local research verified the UI flow and inspected tool registration and flags. It did not observe real OpenClaw/MCP calls or establish usage frequency. This is a documented workflow, not evidence that an agent used it. Current production flags are not asserted here.
Troubleshooting and retries
401 / invalid or revoked key: check the local Bearer header and the selected server origin. Do not print the key. An HTTP 200 transport response can still contain a tool error; inspect the result before declaring success.
Access denied, hidden tool or resource not found: check key scope, read/write mode and resource role. A refusal may deliberately avoid confirming whether an inaccessible resource exists. Do not probe other IDs or grant access automatically. No tools is not proof that a project needs seed data.
Rate limiting (429), unavailable dependencies or indexing pending: stop immediate retries and respect any server retry guidance. Do not promise a global retry policy. For create-document, create-trail and append-trail-node, reuse the same idempotencyKey and identical arguments when retrying the same operation. Generate a new key for a different operation. Other tools do not all support this parameter; inspect inputSchema. If a write outcome is uncertain, read back before retrying.
References and maintenance
tools/list is the tool contract for your key: it returns the tools this connection can see and their current inputSchema. Key scope and read/write mode change that list, so another key can see different tools. Registration uses @Tool and Zod in the backend sources below; the scope registry controls key restrictions. The published SKILL.md is a routing guide pinned to the backend revision shown below, not a complete or current list of tools. Tools, arguments and paging rules added after that revision can be missing from it; where it differs from tools/list, follow tools/list. To read a large graph page by page with get-graph and nextCursor, use the MCP Reference linked below. The backend source links can require repository access. Do not send an API key to GitLab to fetch them.
SKILL.md is published on this site as a byte-for-byte copy of the backend file at the revision shown below. The build checks its SHA-256 against the reviewed pin. Read it with a plain HTTP GET; no sign-in, API key or JavaScript is needed. A newer backend revision is published only after review.
SKILL.md — routing reference (Markdown)
MCP Reference — read a graph in pages
- src/mcp-server/document-tools.service.ts
- src/mcp-server/workspace-tools.service.ts
- src/mcp-server/project-tools.service.ts
- src/mcp-server/session-context-tools.service.ts
- src/mcp-server/trail-tools.service.ts
- src/mcp/scope/mcp-tool-scope.registry.ts
- src/mcp/mcp-api-key.guard.ts
- src/mcp-server/mcp-server.module.ts
- src/mcp/mcp.module.ts
- src/mcp-server/middleware/api-key-url-auth.middleware.ts
- src/api-key/api-key-scope.ts
- src/trails/trail.service.ts
- src/billing/tier-limits.config.ts
- components/features/graph/viewMode.ts
- components/features/connect-wizard/clients.ts
- components/features/graph/ProjectMapView.tsx
- components/features/graph/ProjectTimelineView.tsx
- API Reference
Maintainers: backend tool owners maintain Zod registrations, scope rules and SKILL.md; frontend maintainers own this guide and the shared client catalog. On tool/skill changes, run the drift check documented in the repository. It validates displayed example arguments against source schemas and detects changes to the reviewed sources. Update the guide and source pins together after review.
backend: fd2537edb1215c4b5df9287e9960e1b5bb34d851