Skip to main content

Python MCP server for agentpromocode.com resolve + feedback tools

Project description

agentpromocode-mcp

Agents shouldn't pay full price. Python MCP server for the incentive layer for agentic commerce — resolve before checkout, feedback after.

Runs without an API key in the anonymous demo tier. Create a free key at https://agentpromocode.com/start for higher limits and consumer-level feedback health.

Install

pip install agentpromocode-mcp

Or run with uvx:

uvx agentpromocode-mcp

Claude Desktop

{
  "mcpServers": {
    "agentpromocode": {
      "command": "uvx",
      "args": ["agentpromocode-mcp"]
    }
  }
}

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 optional; omit it for anonymous demo tier.
  • AGENTPROMOCODE_API_BASE defaults to https://api.agentpromocode.com.

Data Contract

/v1/feedback is mandatory for serious keyed integrations. Sustained low feedback-to-resolve ratio can suspend an API key.

ACDP

  • Spec: https://agentpromocode.com/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.4.0.tar.gz (53.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.4.0-py3-none-any.whl (5.7 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: agentpromocode_mcp-0.4.0.tar.gz
  • Upload date:
  • Size: 53.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.4.0.tar.gz
Algorithm Hash digest
SHA256 bf79a3a402cb35cc423d9c44cf38cb71ede0d41e3cbb4f1ddb6f6b827043aadf
MD5 453415bfbe3e7e03e8bf0fe3c11bf23e
BLAKE2b-256 4817345892bf992f460d46eae88d2f1483b8432ecad5acae85ada49085dca4c1

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for agentpromocode_mcp-0.4.0-py3-none-any.whl
Algorithm Hash digest
SHA256 809e7d1f1cd1929d2d899c2e6de362808705a52cc9dadbeddce97fa61705a2a3
MD5 77725ee0c505959a2c29575d696a237c
BLAKE2b-256 674479e4651ae3600ae0d795ed99ce0f2dba7be1262f852b595b9cd89be9d11a

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