From ecf6aae5e73ea36dd6509029878795d15d560351 Mon Sep 17 00:00:00 2001 From: sonpiaz Date: Wed, 14 Oct 2026 21:17:50 -0700 Subject: [PATCH 1/3] feat: list @affitor/mcp in the Official MCP Registry (0.2.2) mcpName com.affitor/mcp in package.json and a server.json (npm, stdio, the three environment variables), shipped in the npm files. Validated with mcp-publisher validate against registry.modelcontextprotocol.io. No change to tools or behaviour. Co-Authored-By: Claude Opus 5.5 (1M context) --- packages/mcp/CHANGELOG.md | 3 +++ packages/mcp/package.json | 8 +++++--- packages/mcp/server.json | 39 +++++++++++++++++++++++++++++++++++++++ 3 files changed, 47 insertions(+), 3 deletions(-) create mode 100644 packages/mcp/server.json 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..83bc1ec 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 \u2014 lets AI agents (Claude Desktop, Cursor, \u2026) call Affitor affiliate-tracking capabilities as 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 + } + ] + } + ] +} From 3780c28889abc9491b830a189aaa087522fa6d90 Mon Sep 17 00:00:00 2001 From: sonpiaz Date: Wed, 14 Oct 2026 21:20:55 -0700 Subject: [PATCH 2/3] chore: keep the literal em dash and ellipsis in the @affitor/mcp description Co-Authored-By: Claude Opus 5.5 (1M context) --- packages/mcp/package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/mcp/package.json b/packages/mcp/package.json index 83bc1ec..2ec25f1 100644 --- a/packages/mcp/package.json +++ b/packages/mcp/package.json @@ -2,7 +2,7 @@ "name": "@affitor/mcp", "mcpName": "com.affitor/mcp", "version": "0.2.2", - "description": "Model Context Protocol (MCP) stdio server for Affitor \u2014 lets AI agents (Claude Desktop, Cursor, \u2026) call Affitor affiliate-tracking capabilities as tools.", + "description": "Model Context Protocol (MCP) stdio server for Affitor — lets AI agents (Claude Desktop, Cursor, …) call Affitor affiliate-tracking capabilities as tools.", "type": "module", "main": "./dist/index.js", "types": "./dist/index.d.ts", From a58684bb1530be20212ec4c60f54260487cb48b5 Mon Sep 17 00:00:00 2001 From: sonpiaz Date: Wed, 14 Oct 2026 21:22:08 -0700 Subject: [PATCH 3/3] chore: plain @affitor/mcp description (no em dash or ellipsis) Co-Authored-By: Claude Opus 5.5 (1M context) --- packages/mcp/package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/mcp/package.json b/packages/mcp/package.json index 2ec25f1..ee3c100 100644 --- a/packages/mcp/package.json +++ b/packages/mcp/package.json @@ -2,7 +2,7 @@ "name": "@affitor/mcp", "mcpName": "com.affitor/mcp", "version": "0.2.2", - "description": "Model Context Protocol (MCP) stdio server for Affitor — lets AI agents (Claude Desktop, Cursor, …) call Affitor affiliate-tracking capabilities as tools.", + "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",