{
  "$schema": "https://mcpkg.dev/schemas/install-manifest/v1.json",
  "name": "io.github.sepehr071/bale-mcp",
  "slug": "bale-mcp",
  "title": "Bale Bot",
  "summary": "Private, local Bale bot for agents: read, search and answer messages, ask and wait, files.",
  "version": "0.3.2",
  "serverKey": "bale-mcp",
  "pageUrl": "https://mcpkglabs.com/tool/bale-mcp",
  "installMdUrl": "https://mcpkglabs.com/tool/bale-mcp/install.md",
  "trust": {
    "score": 88,
    "grade": "A",
    "smokeStatus": "works",
    "status": "active",
    "verifiedAt": "2026-12-01T19:22:17.875582504Z"
  },
  "methods": [
    {
      "id": "pypi",
      "label": "PyPI (uvx)",
      "transport": "stdio",
      "command": "uvx",
      "args": [
        "bale-mcp==0.3.2"
      ],
      "clients": [
        {
          "client": "claude-code",
          "label": "Claude Code",
          "kind": "cli",
          "content": "claude mcp add bale-mcp -e 'BALE_BOT_TOKEN=<BALE_BOT_TOKEN>' -- uvx bale-mcp==0.3.2"
        },
        {
          "client": "claude-desktop",
          "label": "Claude Desktop",
          "kind": "json",
          "location": "claude_desktop_config.json",
          "content": "{\n  \"mcpServers\": {\n    \"bale-mcp\": {\n      \"args\": [\n        \"bale-mcp==0.3.2\"\n      ],\n      \"command\": \"uvx\",\n      \"env\": {\n        \"BALE_BOT_TOKEN\": \"<BALE_BOT_TOKEN>\"\n      }\n    }\n  }\n}"
        },
        {
          "client": "cursor",
          "label": "Cursor",
          "kind": "json",
          "location": "~/.cursor/mcp.json",
          "content": "{\n  \"mcpServers\": {\n    \"bale-mcp\": {\n      \"args\": [\n        \"bale-mcp==0.3.2\"\n      ],\n      \"command\": \"uvx\",\n      \"env\": {\n        \"BALE_BOT_TOKEN\": \"<BALE_BOT_TOKEN>\"\n      }\n    }\n  }\n}"
        },
        {
          "client": "vscode",
          "label": "VS Code",
          "kind": "json",
          "location": ".vscode/mcp.json",
          "content": "{\n  \"inputs\": [\n    {\n      \"description\": \"BALE_BOT_TOKEN\",\n      \"id\": \"bale-bot-token\",\n      \"password\": true,\n      \"type\": \"promptString\"\n    }\n  ],\n  \"servers\": {\n    \"bale-mcp\": {\n      \"args\": [\n        \"bale-mcp==0.3.2\"\n      ],\n      \"command\": \"uvx\",\n      \"env\": {\n        \"BALE_BOT_TOKEN\": \"${input:bale-bot-token}\"\n      },\n      \"type\": \"stdio\"\n    }\n  }\n}"
        },
        {
          "client": "codex",
          "label": "Codex CLI",
          "kind": "toml",
          "location": "~/.codex/config.toml",
          "content": "[mcp_servers.bale-mcp]\ncommand = \"uvx\"\nargs = [\"bale-mcp==0.3.2\"]\nenv = { \"BALE_BOT_TOKEN\" = \"<BALE_BOT_TOKEN>\" }"
        }
      ],
      "requires": [
        "uv (https://docs.astral.sh/uv/)"
      ]
    }
  ],
  "env": [
    {
      "name": "BALE_BOT_TOKEN",
      "required": true,
      "secret": true,
      "description": "Bot token from @botfather in Bale (https://ble.ir/botfather).",
      "help": "Bot token from @botfather in Bale (https://ble.ir/botfather).",
      "placeholder": "<BALE_BOT_TOKEN>"
    },
    {
      "name": "BALE_ALLOWED_CHATS",
      "required": false,
      "secret": false,
      "description": "Comma-separated chat ids or @usernames the bot may read and message; all other chats are ignored. Recommended.",
      "help": "Comma-separated chat ids or @usernames the bot may read and message; all other chats are ignored. Recommended.",
      "placeholder": "<BALE_ALLOWED_CHATS>"
    },
    {
      "name": "BALE_MCP_DB",
      "required": false,
      "secret": false,
      "description": "Local message history file (default ~/.bale-mcp/messages.db); ':memory:' keeps nothing on disk.",
      "help": "Local message history file (default ~/.bale-mcp/messages.db); ':memory:' keeps nothing on disk.",
      "placeholder": "<BALE_MCP_DB>"
    },
    {
      "name": "BALE_MCP_SEND_DIRS",
      "required": false,
      "secret": false,
      "description": "Folders bot_send_file may upload local files from (os.pathsep-separated); default is the download folder and the working directory.",
      "help": "Folders bot_send_file may upload local files from (os.pathsep-separated); default is the download folder and the working directory.",
      "placeholder": "<BALE_MCP_SEND_DIRS>"
    },
    {
      "name": "BALE_MCP_PROXY",
      "required": false,
      "secret": false,
      "description": "Optional HTTP proxy URL for every request; system proxy settings are ignored.",
      "help": "Optional HTTP proxy URL for every request; system proxy settings are ignored.",
      "placeholder": "<BALE_MCP_PROXY>"
    }
  ],
  "expectedTools": [
    "bot_get_me",
    "bot_get_chat",
    "bot_get_webhook_info",
    "bot_send_message",
    "bot_send_file",
    "bot_edit_message",
    "bot_delete_message",
    "bot_get_new_messages",
    "bot_list_chats",
    "bot_read_chat",
    "bot_search_messages",
    "bot_wait_for_reply",
    "bot_download_file"
  ],
  "agentSteps": [
    "Ask the user for: BALE_BOT_TOKEN. Never invent or guess these values; secrets go into the client config, not into chat logs.",
    "Pick the user's MCP client and apply the matching config from the first install method (it is the one verified by the smoke test when available).",
    "Restart or reload the client so it starts the server.",
    "Verify: the server should expose these tools: bot_get_me, bot_get_chat, bot_get_webhook_info, bot_send_message, bot_send_file, bot_edit_message, bot_delete_message, bot_get_new_messages, ….",
    "If it fails, check that the required runtime is installed (uv (https://docs.astral.sh/uv/)) and that the values above are set."
  ],
  "generatedAt": "2026-12-01T19:22:17.875582504Z"
}
