Docs
affiliatespy.io ↗
Connect a client

Codex

Codex CLI supports remote MCP servers with custom headers. One block in config.toml and the agent can read your creator roster.

Configure

Add to ~/.codex/config.toml, with your key from Settings → API & agents in an environment variable rather than inline:

# ~/.codex/config.toml
[mcp_servers.affiliatespy]
url = "https://affiliatespy.io/api/mcp"
http_headers = { Authorization = "Bearer asp_live_YOUR_KEY" }

Restart Codex; the affiliatespy server shows in the MCP list.

Verify

What plan am I on and how many contact reveals do I have left this month?

Codex should call get_account. An unauthorized error means the key is wrong, revoked, or the env var is not set in the shell that launched Codex.

REST instead

If you would rather let the agent write code against a REST API, every tool is POST /api/v1/tools/{name} with the same bearer header, described by /openapi.json. The skills explain the recruitment workflow either way.