MCP protocol and tools
Discover the contract for your key, read project data and handle bounded responses safely.
MarkdownTransport and discovery
The nekomind-mcp server identifies as 1.0.0. Streamable HTTP uses JSON-RPC 2.0 at /api/mcp/stream with GET, POST and DELETE. Read protocolVersion from the initialize result. The legacy SSE entry is /api/mcp where proxy configuration exposes it. After initialization, inspect tools/list for available names and inputSchema. Schema and discovery reflect your credentials.
{
"jsonrpc": "2.0",
"id": 1,
"method": "tools/list"
}Permissions
Use a Bearer key. When OAuth is enabled and configured, it uses the deployment's issuer and mcp:read or mcp:write scopes. A key's resource scope and the owner's effective ACL both apply. Use a local synthetic project for mutation examples. Start with a read-only key.
Read or create a document
With the relevant tools listed, call list-workspaces with an empty object, list-projects with workspaceId and search-documents with projectId, query and optional mode and limit. Use fulltext for a text search and semantic only with embeddings. Read the matched document using get-document with documentId. The documentId and graph nodeId are distinct. For a local write, create-document accepts projectId, title, body and an idempotencyKey UUID. Reuse that UUID when retrying the same write and read back the returned documentId.
search-documents defaults to fulltext and 10 results, with limit from 1 to 50. Its results contain documentId, title, score and snippet, plus the matching mode. Semantic results can include indexPending while embeddings are still being calculated.
Read a graph in pages
Use get-graph with a projectId, and send nextCursor as cursor on the next call until nextCursor is null. Each page is bounded to 1,000 nodes, 5,000 edges and about 1 MiB of JSON. Compare the delivered counts with totalNodes and totalEdges. If the server reports GRAPH_READ_BUSY, wait for the supplied retryAfter.
Errors and throttling
Check both JSON-RPC errors and tool results marked isError. A 401 means the request needs valid authentication. A 403 or a missing tool can reflect key scope or resource access. For HTTP 429 use Retry-After when present and wait before reading again. Before retrying a write with an uncertain outcome, check the resource or documented idempotency support.
The default pre-authentication rate limits are 120 requests per minute per client address for /api/mcp/stream and 300 for /api/mcp. After authentication, both transports share a limit of 300 requests per minute per user. There is also a 503 response when the route limiter cannot reach Redis.