feat: add mcp server

This commit is contained in:
sigoden
2024-12-11 07:58:18 +08:00
parent 22a87a8753
commit bc50fd23f1
3 changed files with 180 additions and 0 deletions
+36
View File
@@ -0,0 +1,36 @@
# MCP-Server
Let LLM-functions tools/agents be used through the Model Context Protocol.
## Serve tools
```json
{
"mcpServers": {
"tools": {
"command": "node",
"args": [
"<path-to-llm-functions>/mcp/server/index.js",
"<path-to-llm-functions>"
]
}
}
}
```
## Serve the agent
```json
{
"mcpServers": {
"<agent-name>": {
"command": "node",
"args": [
"<path-to-llm-functions>/mcp/server/index.js",
"<path-to-llm-functions>",
"<agent-name>",
]
}
}
}
```