{
  "$schema": "https://mcpkg.dev/schemas/install-manifest/v1.json",
  "name": "com.affitor/mcp",
  "slug": "com.affitor.mcp",
  "title": "Affitor",
  "summary": "Affiliate programs in AI tools: read partners, commissions and payouts; track clicks and sales.",
  "version": "0.2.5",
  "serverKey": "mcp",
  "pageUrl": "https://mcpkglabs.com/tool/com.affitor.mcp",
  "installMdUrl": "https://mcpkglabs.com/tool/com.affitor.mcp/install.md",
  "trust": {
    "score": 91,
    "grade": "A",
    "smokeStatus": "works",
    "status": "active",
    "verifiedAt": "2026-12-01T16:04:38.863050124Z"
  },
  "methods": [
    {
      "id": "npm",
      "label": "npm (npx)",
      "transport": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "--package=@affitor/mcp@0.2.4",
        "affitor-mcp"
      ],
      "clients": [
        {
          "client": "claude-code",
          "label": "Claude Code",
          "kind": "cli",
          "content": "claude mcp add mcp -e 'AFFITOR_API_KEY=<AFFITOR_API_KEY>' -- npx -y --package=@affitor/mcp@0.2.4 affitor-mcp"
        },
        {
          "client": "claude-desktop",
          "label": "Claude Desktop",
          "kind": "json",
          "location": "claude_desktop_config.json",
          "content": "{\n  \"mcpServers\": {\n    \"mcp\": {\n      \"args\": [\n        \"-y\",\n        \"--package=@affitor/mcp@0.2.4\",\n        \"affitor-mcp\"\n      ],\n      \"command\": \"npx\",\n      \"env\": {\n        \"AFFITOR_API_KEY\": \"<AFFITOR_API_KEY>\"\n      }\n    }\n  }\n}"
        },
        {
          "client": "cursor",
          "label": "Cursor",
          "kind": "json",
          "location": "~/.cursor/mcp.json",
          "content": "{\n  \"mcpServers\": {\n    \"mcp\": {\n      \"args\": [\n        \"-y\",\n        \"--package=@affitor/mcp@0.2.4\",\n        \"affitor-mcp\"\n      ],\n      \"command\": \"npx\",\n      \"env\": {\n        \"AFFITOR_API_KEY\": \"<AFFITOR_API_KEY>\"\n      }\n    }\n  }\n}"
        },
        {
          "client": "vscode",
          "label": "VS Code",
          "kind": "json",
          "location": ".vscode/mcp.json",
          "content": "{\n  \"inputs\": [\n    {\n      \"description\": \"AFFITOR_API_KEY\",\n      \"id\": \"affitor-api-key\",\n      \"password\": true,\n      \"type\": \"promptString\"\n    }\n  ],\n  \"servers\": {\n    \"mcp\": {\n      \"args\": [\n        \"-y\",\n        \"--package=@affitor/mcp@0.2.4\",\n        \"affitor-mcp\"\n      ],\n      \"command\": \"npx\",\n      \"env\": {\n        \"AFFITOR_API_KEY\": \"${input:affitor-api-key}\"\n      },\n      \"type\": \"stdio\"\n    }\n  }\n}"
        },
        {
          "client": "codex",
          "label": "Codex CLI",
          "kind": "toml",
          "location": "~/.codex/config.toml",
          "content": "[mcp_servers.mcp]\ncommand = \"npx\"\nargs = [\"-y\", \"--package=@affitor/mcp@0.2.4\", \"affitor-mcp\"]\nenv = { \"AFFITOR_API_KEY\" = \"<AFFITOR_API_KEY>\" }"
        }
      ],
      "requires": [
        "Node.js 18+"
      ]
    },
    {
      "id": "remote",
      "label": "Remote (hosted)",
      "transport": "streamable-http",
      "url": "https://mcp.affitor.com/mcp",
      "clients": [
        {
          "client": "claude-code",
          "label": "Claude Code",
          "kind": "cli",
          "content": "claude mcp add --transport http mcp https://mcp.affitor.com/mcp"
        },
        {
          "client": "claude-desktop",
          "label": "Claude Desktop",
          "kind": "json",
          "location": "Settings → Connectors → Add custom connector (or claude_desktop_config.json via mcp-remote)",
          "content": "{\n  \"mcpServers\": {\n    \"mcp\": {\n      \"args\": [\n        \"-y\",\n        \"mcp-remote\",\n        \"https://mcp.affitor.com/mcp\"\n      ],\n      \"command\": \"npx\"\n    }\n  }\n}"
        },
        {
          "client": "cursor",
          "label": "Cursor",
          "kind": "json",
          "location": "~/.cursor/mcp.json",
          "content": "{\n  \"mcpServers\": {\n    \"mcp\": {\n      \"url\": \"https://mcp.affitor.com/mcp\"\n    }\n  }\n}"
        },
        {
          "client": "vscode",
          "label": "VS Code",
          "kind": "json",
          "location": ".vscode/mcp.json",
          "content": "{\n  \"servers\": {\n    \"mcp\": {\n      \"type\": \"http\",\n      \"url\": \"https://mcp.affitor.com/mcp\"\n    }\n  }\n}"
        },
        {
          "client": "codex",
          "label": "Codex CLI",
          "kind": "toml",
          "location": "~/.codex/config.toml",
          "content": "[mcp_servers.mcp]\ncommand = \"npx\"\nargs = [\"-y\", \"mcp-remote\", \"https://mcp.affitor.com/mcp\"]"
        }
      ]
    }
  ],
  "env": [
    {
      "name": "AFFITOR_API_KEY",
      "required": true,
      "secret": true,
      "description": "Your Affitor program API key. Server-side only.",
      "help": "Your Affitor program API key. Server-side only.",
      "placeholder": "<AFFITOR_API_KEY>"
    },
    {
      "name": "AFFITOR_API_URL",
      "required": false,
      "secret": false,
      "description": "API base override. Defaults to https://api.affitor.com.",
      "help": "API base override. Defaults to https://api.affitor.com.",
      "placeholder": "<AFFITOR_API_URL>"
    },
    {
      "name": "AFFITOR_MCP_WRITE",
      "required": false,
      "secret": false,
      "description": "Set to 1 to register the two tools that move money (track sale, track refund). Off by default.",
      "help": "Set to 1 to register the two tools that move money (track sale, track refund). Off by default.",
      "placeholder": "<AFFITOR_MCP_WRITE>"
    }
  ],
  "expectedTools": [
    "affitor_readiness",
    "affitor_track_lead",
    "affitor_track_click",
    "affitor_get_integration_plan",
    "affitor_run_verification"
  ],
  "agentSteps": [
    "Ask the user for: AFFITOR_API_KEY. 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: affitor_readiness, affitor_track_lead, affitor_track_click, affitor_get_integration_plan, affitor_run_verification.",
    "If it fails, check that the required runtime is installed (Node.js 18+) and that the values above are set."
  ],
  "generatedAt": "2026-12-01T16:04:38.863050124Z"
}
