MisakaNet exposes its knowledge base via the Model Context Protocol (MCP). Two server variants are available:
| Server | File | Capabilities |
|---|---|---|
| Base | integrations/mcp-server/server.py |
Tools only |
| Extended | integrations/mcp-server/server_extended.py |
Tools + Resources |
- Transport: stdio (JSON-RPC 2.0, one message per line)
- Protocol version:
2024-11-05 - Server name:
misakanet - Server version:
0.2.0
Search the knowledge base with optional filters.
{
"name": "search_lessons",
"arguments": {
"query": "pip timeout proxy",
"domain": "python",
"tags": "timeout,network",
"top_k": 5
}
}Returns: array of {title, score, domain, path, preview}
Get full lesson content and metadata.
{"name": "get_lesson", "arguments": {"id": "pip-timeout-fix"}}Returns: {id, path, title, domain, tags, content, word_count}
List all knowledge domains with lesson counts.
Returns: [{name, lesson_count}]
List lessons, optionally by domain.
{"name": "list_lessons", "arguments": {"domain": "docker"}}Returns: [{id, path, title, domain}] (max 50)
Static resource listing all domains.
Resource template — resolves to full lesson metadata + content.
Example: misakanet://lessons/pip-timeout-fix
Settings → MCP → Add Server:
{
"mcpServers": {
"misakanet": {
"command": "python3",
"args": ["/path/to/MisakaNet/integrations/mcp-server/server_extended.py"]
}
}
}claude_desktop_config.json:
{
"mcpServers": {
"misakanet": {
"command": "python3",
"args": ["/path/to/MisakaNet/integrations/mcp-server/server_extended.py"]
}
}
}claude mcp add misakanet python3 /path/to/MisakaNet/integrations/mcp-server/server_extended.py.continue/config.json:
{
"experimental": {
"modelContextProtocolServers": [
{
"transport": {"type": "stdio", "command": "python3", "args": ["/path/to/server_extended.py"]}
}
]
}
}| Code | Meaning |
|---|---|
| -32601 | Unknown method or tool |
| -32602 | Invalid params (e.g., unknown resource URI) |
| -32700 | Parse error (malformed JSON) |
- Python 3.10+
misakanet-corepackage (pip install misakanet-core)- MisakaNet repo cloned locally