oterm/docs/tools/mcp.md
Yiorgis Gozadinos 735c011f31 Styling docs
2025-02-25 19:04:13 +01:00

992 B

Model Context Protocol support

oterm has support for Anthropic's open-source Model Context Protocol. While Ollama does not yet directly support the protocol, oterm bridges MCP servers with Ollama by transforming MCP tools into Ollama tools.

To add an MCP server to oterm, simply add the server shim to oterm's config.json. For example for the git MCP server you would add something like the following to the mcpServers section of the oterm configuration file:

{
  ...
  "mcpServers": {
    "git": {
      "command": "docker",
      "args": [
        "run",
        "--rm",
        "-i",
        "--mount",
        "type=bind,src=/Users/ggozad/dev/open-source/oterm,dst=/oterm",
        "mcp/git"
      ]
    }
  }
}

Tool support oterm using the git MCP server to access its own repo.