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.1.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.1-py3-none-any.whl (4.0 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: agentpromocode_mcp-0.2.1.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.1.tar.gz
Algorithm Hash digest
SHA256 89ede545306c31896b275ab9ac2a41795b0c880bdc12382eaa5846710466d936
MD5 8f944836a5852fc2120231f63c885248
BLAKE2b-256 f14384915b4aaba1d21cc1cb1dcedd696efc7333861f3dcca73bd0c6194da09c

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for agentpromocode_mcp-0.2.1-py3-none-any.whl
Algorithm Hash digest
SHA256 60a79c166e9c4cc8640659896f603cf0f9855c70ca4d5b2deb6ccbc673bbb2bf
MD5 706e25030d26a1e0127847e9d81d39c5
BLAKE2b-256 fb9021bc26240f432d52a090ee4a3e388b15cd4f78ebb2c1c5828a9e8bc26adf

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