mirror of
https://github.com/zenlm/engine.git
synced 2026-10-30 15:00:05 +00:00
* Add builtin mcp client * Use async loader * Add headers * Handle sse * More flexible search request * Add tool callbacks with tools, for mcp * Add bearer token support * Add websocket support * Update docs * Add python api * Clippy * Add http api, docs * Tests pass * Make these configs actually work * Add docs * Make mistralrs-mcp * Refactor examples * Update examples * Add defaults * Add defaults * Add defaults * Update docs * Improved docs * Add -y to npx usages * Even better examples
64 lines
1.7 KiB
JSON
64 lines
1.7 KiB
JSON
{
|
|
"_comment": "MCP Client Configuration Reference for mistral.rs",
|
|
|
|
"servers": [
|
|
{
|
|
"_comment": "HTTP/HTTPS Server Example - Hugging Face MCP",
|
|
"id": "http_server",
|
|
"name": "Hugging Face MCP",
|
|
"source": {
|
|
"type": "Http",
|
|
"url": "https://hf.co/mcp",
|
|
"timeout_secs": 30,
|
|
"headers": {
|
|
"User-Agent": "mistral-rs/0.6.0"
|
|
}
|
|
},
|
|
"enabled": false,
|
|
"tool_prefix": "hf",
|
|
"resources": null,
|
|
"bearer_token": "hf_xxx"
|
|
},
|
|
{
|
|
"_comment": "Local Process Server Example - Filesystem (Default)",
|
|
"id": "process_server",
|
|
"name": "Filesystem Tools",
|
|
"source": {
|
|
"type": "Process",
|
|
"command": "npx",
|
|
"args": ["@modelcontextprotocol/server-filesystem", "."],
|
|
"work_dir": null,
|
|
"env": {
|
|
"LOG_LEVEL": "info"
|
|
}
|
|
},
|
|
"enabled": true,
|
|
"tool_prefix": "fs",
|
|
"resources": ["file://**"],
|
|
"bearer_token": null
|
|
},
|
|
{
|
|
"_comment": "WebSocket Server Example",
|
|
"id": "websocket_server",
|
|
"name": "WebSocket MCP Server",
|
|
"source": {
|
|
"type": "WebSocket",
|
|
"url": "wss://api.example.com/mcp",
|
|
"timeout_secs": 30,
|
|
"headers": {
|
|
"Origin": "https://mistral.rs"
|
|
}
|
|
},
|
|
"enabled": false,
|
|
"tool_prefix": "ws",
|
|
"resources": null,
|
|
"bearer_token": "your-websocket-token"
|
|
}
|
|
],
|
|
|
|
"_comment_defaults": "Global settings with recommended defaults:",
|
|
"auto_register_tools": true,
|
|
"tool_timeout_secs": 30,
|
|
"max_concurrent_calls": 5,
|
|
"_comment_note": "To install filesystem server: npx @modelcontextprotocol/server-filesystem . -y"
|
|
} |