Affiliate programs in AI tools: read partners, commissions and payouts; track clicks and sales.
Setup
Choose your client, copy the config, then fill in any required environment variables.
Local
claude mcp add affitor --env AFFITOR_API_KEY='<AFFITOR_API_KEY>' -- npx -y @affitor/mcp~/.codex/config.toml
[mcp_servers.affitor]
command = "npx"
args = ["-y", "@affitor/mcp"]
env = { AFFITOR_API_KEY = "<AFFITOR_API_KEY>" }
# codex mcp add affitor --env AFFITOR_API_KEY='<AFFITOR_API_KEY>' -- npx -y @affitor/mcp~/.cursor/mcp.json
{
"mcpServers": {
"affitor": {
"command": "npx",
"args": [
"-y",
"@affitor/mcp"
],
"env": {
"AFFITOR_API_KEY": "<AFFITOR_API_KEY>"
}
}
}
}.vscode/mcp.json
{
"servers": {
"affitor": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"@affitor/mcp"
],
"env": {
"AFFITOR_API_KEY": "<AFFITOR_API_KEY>"
}
}
}
}~/.gemini/settings.json
{
"mcpServers": {
"affitor": {
"command": "npx",
"args": [
"-y",
"@affitor/mcp"
],
"env": {
"AFFITOR_API_KEY": "<AFFITOR_API_KEY>"
}
}
}
}claude_desktop_config.json
{
"mcpServers": {
"affitor": {
"command": "npx",
"args": [
"-y",
"@affitor/mcp"
],
"env": {
"AFFITOR_API_KEY": "<AFFITOR_API_KEY>"
}
}
}
}.trae/mcp.json
{
"mcpServers": {
"affitor": {
"command": "npx",
"args": [
"-y",
"@affitor/mcp"
],
"env": {
"AFFITOR_API_KEY": "<AFFITOR_API_KEY>"
}
}
}
}Remote
claude mcp add --transport http affitor https://mcp.affitor.com/mcp~/.codex/config.toml
[mcp_servers.affitor]
url = "https://mcp.affitor.com/mcp"
# codex mcp add affitor --url https://mcp.affitor.com/mcp~/.cursor/mcp.json
{
"mcpServers": {
"affitor": {
"url": "https://mcp.affitor.com/mcp"
}
}
}.vscode/mcp.json
{
"servers": {
"affitor": {
"type": "http",
"url": "https://mcp.affitor.com/mcp"
}
}
}~/.gemini/settings.json
{
"mcpServers": {
"affitor": {
"httpUrl": "https://mcp.affitor.com/mcp"
}
}
}claude_desktop_config.json · Customize › Connectors › Add custom connector
{
"mcpServers": {
"affitor": {
"command": "npx",
"args": [
"-y",
"mcp-remote",
"https://mcp.affitor.com/mcp"
]
}
}
}.trae/mcp.json
{
"mcpServers": {
"affitor": {
"url": "https://mcp.affitor.com/mcp"
}
}
}Environment variables
AFFITOR_API_KEY
Replace the placeholders with your own credentials and keep them out of version control.