diff --git a/packages/mcp/CHANGELOG.md b/packages/mcp/CHANGELOG.md index fef934f..4f08621 100644 --- a/packages/mcp/CHANGELOG.md +++ b/packages/mcp/CHANGELOG.md @@ -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. diff --git a/packages/mcp/package.json b/packages/mcp/package.json index 5f3a957..ee3c100 100644 --- a/packages/mcp/package.json +++ b/packages/mcp/package.json @@ -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", @@ -15,7 +16,8 @@ "affitor-mcp": "./dist/index.js" }, "files": [ - "dist" + "dist", + "server.json" ], "scripts": { "build": "tsc", diff --git a/packages/mcp/server.json b/packages/mcp/server.json new file mode 100644 index 0000000..88b3035 --- /dev/null +++ b/packages/mcp/server.json @@ -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 + } + ] + } + ] +}