feat(mcp-server): support env var AGENT_TOOLS_ONLY (#145)

This commit is contained in:
sigoden
2024-12-12 12:42:23 +08:00
committed by GitHub
parent 3584b5c31f
commit e8ffb414c4
3 changed files with 22 additions and 7 deletions
+9 -5
View File
@@ -8,10 +8,10 @@ Let LLM-functions tools/agents be used through the Model Context Protocol.
{
"mcpServers": {
"tools": {
"command": "node",
"command": "npx",
"args": [
"<path-to-llm-functions>/mcp/server/index.js",
"<path-to-llm-functions>"
"mcp-llm-functions",
"<llm-functions-dir>"
]
}
}
@@ -26,11 +26,15 @@ Let LLM-functions tools/agents be used through the Model Context Protocol.
"<agent-name>": {
"command": "node",
"args": [
"<path-to-llm-functions>/mcp/server/index.js",
"<path-to-llm-functions>",
"mcp-llm-functions",
"<llm-functions-dir>"
"<agent-name>",
]
}
}
}
```
## Environment Variables
- `AGENT_TOOLS_ONLY`: Set to `true` or `1` to ignore shared tools and display only agent tools.