Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions packages/mcp/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
# Changelog — @affitor/mcp

## 0.2.2
- Listed in the Official MCP Registry as `com.affitor/mcp`: `mcpName` in package.json and a `server.json` (npm, stdio, the three environment variables). No change to tools or behaviour.

## 0.2.1
- `affitor_track_sale` and `affitor_track_refund` are only registered when `AFFITOR_MCP_WRITE=1`. Without it the server offers 5 tools, none of which can create a sale or reverse a commission. **If you call `affitor_track_sale` from an agent today, add `AFFITOR_MCP_WRITE=1` to the server's `env`.**
- Every tool carries MCP annotations (`readOnlyHint`, `destructiveHint`, `idempotentHint`, `openWorldHint`); the two money tools are marked destructive.
Expand Down
8 changes: 5 additions & 3 deletions packages/mcp/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
{
"name": "@affitor/mcp",
"version": "0.2.1",
"description": "Model Context Protocol (MCP) stdio server for Affitor — lets AI agents (Claude Desktop, Cursor, …) call Affitor affiliate-tracking capabilities as tools.",
"mcpName": "com.affitor/mcp",
"version": "0.2.2",
"description": "Model Context Protocol (MCP) stdio server for Affitor. Lets AI agents (Claude Desktop, Cursor and more) call Affitor affiliate-tracking tools.",
"type": "module",
"main": "./dist/index.js",
"types": "./dist/index.d.ts",
Expand All @@ -15,7 +16,8 @@
"affitor-mcp": "./dist/index.js"
},
"files": [
"dist"
"dist",
"server.json"
],
"scripts": {
"build": "tsc",
Expand Down
39 changes: 39 additions & 0 deletions packages/mcp/server.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
{
"$schema": "https://static.modelcontextprotocol.io/schemas/2025-12-11/server.schema.json",
"name": "com.affitor/mcp",
"title": "Affitor",
"description": "Track affiliate clicks, leads and sales and check program readiness on Affitor.",
"websiteUrl": "https://affitor.com",
"repository": {
"url": "https://github.com/Affitor/cli",
"source": "github",
"subfolder": "packages/mcp"
},
"version": "0.2.2",
"packages": [
{
"registryType": "npm",
"identifier": "@affitor/mcp",
"version": "0.2.2",
"transport": { "type": "stdio" },
"environmentVariables": [
{
"name": "AFFITOR_API_KEY",
"description": "Your Affitor program API key. Server-side only.",
"isRequired": true,
"isSecret": true
},
{
"name": "AFFITOR_API_URL",
"description": "API base override. Defaults to https://api.affitor.com.",
"isRequired": false
},
{
"name": "AFFITOR_MCP_WRITE",
"description": "Set to 1 to register the two tools that move money (track sale, track refund). Off by default.",
"isRequired": false
}
]
}
]
}
Loading