Skip to main content

Python MCP server for agentpromocode.com resolve + feedback tools

Project description

agentpromocode-mcp

Python stdio MCP server for agent checkout: resolve plausible public promo offers, then report whether the offer worked.

Install

pip install agentpromocode-mcp

Or run with uvx:

AGENTPROMOCODE_API_KEY=apc_... uvx agentpromocode-mcp

Claude Desktop

{
  "mcpServers": {
    "agentpromocode": {
      "command": "uvx",
      "args": ["agentpromocode-mcp"],
      "env": {
        "AGENTPROMOCODE_API_KEY": "apc_...",
        "AGENTPROMOCODE_API_BASE": "https://api.agentpromocode.com"
      }
    }
  }
}

Tools

  • resolve(domain, basket?, agent_id?)POST /v1/resolve
  • feedback(attribution_token, code?, outcome, basket_value?, geo?)POST /v1/feedback

outcome must be one of worked, expired, ineligible, or error.

Env

  • AGENTPROMOCODE_API_KEY is required.
  • AGENTPROMOCODE_API_BASE defaults to https://api.agentpromocode.com.

Data Contract

/v1/feedback is mandatory. Sustained low feedback-to-resolve ratio can suspend the API key.

ACDP

  • Spec: https://github.com/agentpromocode/acdp
  • OpenAPI: https://api.agentpromocode.com/openapi.json

License

MIT.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

agentpromocode_mcp-0.2.0.tar.gz (2.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

agentpromocode_mcp-0.2.0-py3-none-any.whl (4.0 kB view details)

Uploaded Python 3

File details

Details for the file agentpromocode_mcp-0.2.0.tar.gz.

File metadata

  • Download URL: agentpromocode_mcp-0.2.0.tar.gz
  • Upload date:
  • Size: 2.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for agentpromocode_mcp-0.2.0.tar.gz
Algorithm Hash digest
SHA256 20e31d02960896f6cc40fd56039adc918e5493e6d8ef884c31554f38220ce5cb
MD5 760dcdaa98e3f5099029e4889a44ec6a
BLAKE2b-256 9317ae39de6ae37109618bbfcbcd1060bc0d260f24440edd1f2df3a8026b2a43

See more details on using hashes here.

File details

Details for the file agentpromocode_mcp-0.2.0-py3-none-any.whl.

File metadata

File hashes

Hashes for agentpromocode_mcp-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 f4cd5fdce948cba702bdaa96bb47506606b865ac272dd862069df8494c08bd87
MD5 eb4a98e4e8ea1ab1b72197d8636cdf34
BLAKE2b-256 e777c7813dfc463bed4548eb3beae421815697d24bdb29341e45f6279031f11d

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page