AI-SLOT Management

v0.1.3
io.github.iannil/ai-slot-management-mcp Checked 4 days ago Published 1 month ago

实验性本地 stdio 管理服务;需先启动 127.0.0.1:4194 管理端,内容发布仍需人工审批。

Values you need

VariableWhat it is
AI_SLOT_AGENT_TOKENrequired secret 本地管理服务配置的 Agent 令牌;不得使用 Owner 令牌。

npm (npx) discovery passed

Requires Node.js 18+

Run in a terminal
claude mcp add ai-slot-management-mcp -e 'AI_SLOT_AGENT_TOKEN=<AI_SLOT_AGENT_TOKEN>' -- npx -y --package=@ai-slot/mcp@0.1.3 ai-slot-management-mcp
Add to claude_desktop_config.json
{
  "mcpServers": {
    "ai-slot-management-mcp": {
      "args": [
        "-y",
        "--package=@ai-slot/mcp@0.1.3",
        "ai-slot-management-mcp"
      ],
      "command": "npx",
      "env": {
        "AI_SLOT_AGENT_TOKEN": "<AI_SLOT_AGENT_TOKEN>"
      }
    }
  }
}
Add to ~/.cursor/mcp.json
{
  "mcpServers": {
    "ai-slot-management-mcp": {
      "args": [
        "-y",
        "--package=@ai-slot/mcp@0.1.3",
        "ai-slot-management-mcp"
      ],
      "command": "npx",
      "env": {
        "AI_SLOT_AGENT_TOKEN": "<AI_SLOT_AGENT_TOKEN>"
      }
    }
  }
}
Add to .vscode/mcp.json
{
  "inputs": [
    {
      "description": "AI_SLOT_AGENT_TOKEN",
      "id": "ai-slot-agent-token",
      "password": true,
      "type": "promptString"
    }
  ],
  "servers": {
    "ai-slot-management-mcp": {
      "args": [
        "-y",
        "--package=@ai-slot/mcp@0.1.3",
        "ai-slot-management-mcp"
      ],
      "command": "npx",
      "env": {
        "AI_SLOT_AGENT_TOKEN": "${input:ai-slot-agent-token}"
      },
      "type": "stdio"
    }
  }
}
Add to ~/.codex/config.toml
[mcp_servers.ai-slot-management-mcp]
command = "npx"
args = ["-y", "--package=@ai-slot/mcp@0.1.3", "ai-slot-management-mcp"]
env = { "AI_SLOT_AGENT_TOKEN" = "<AI_SLOT_AGENT_TOKEN>" }

For AI agents

  1. Ask the user for: AI_SLOT_AGENT_TOKEN. Never invent or guess these values; secrets go into the client config, not into chat logs.
  2. 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).
  3. Restart or reload the client so it starts the server.
  4. Verify: the server should expose these tools: list_slots, read_slot, create_draft, preview_draft, publish_draft, get_status, rollback_slot.
  5. If it fails, check that the required runtime is installed (Node.js 18+) and that the values above are set.

Machine-readable: install.md · manifest.json