Skip to content
Grok

agentfit for Grok

io.github.mukundakatta/agentfit

Token-aware message truncation: fit a chat history into your model's context budget.

client:Grok transport:stdio runtime:npm

Install agentfit in Grok

.mcp.json (in your project root)

{
  "mcpServers": {
    "agentfit": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "@mukundakatta/agentfit-mcp"
      ]
    }
  }
}

Grok Build reads Claude Code's .mcp.json and Claude Desktop's config unchanged, so a server you have already set up there needs nothing new. The Grok web app and X integration do not take custom servers. Grok docs

agentfit in other clients