Files
llm-functions/mcp/server
2024-12-11 08:36:04 +08:00
..
2024-12-11 08:36:04 +08:00
2024-12-11 08:36:04 +08:00
2024-12-11 08:36:04 +08:00

MCP-Server

Let LLM-functions tools/agents be used through the Model Context Protocol.

Serve tools

{
  "mcpServers": {
    "tools": {
      "command": "node",
      "args": [
        "<path-to-llm-functions>/mcp/server/index.js",
        "<path-to-llm-functions>"
      ]
    }
  }
}

Serve the agent

{
  "mcpServers": {
    "<agent-name>": {
      "command": "node",
      "args": [
        "<path-to-llm-functions>/mcp/server/index.js",
        "<path-to-llm-functions>",
        "<agent-name>",
      ]
    }
  }
}