Skip to content

feat: send X-Agent-Ready-Client: mcp-npm on keyless scans#4

Merged
mlava merged 1 commit into
mainfrom
feat/client-source-header
Jul 19, 2026
Merged

feat: send X-Agent-Ready-Client: mcp-npm on keyless scans#4
mlava merged 1 commit into
mainfrom
feat/client-source-header

Conversation

@mlava

@mlava mlava commented Jul 19, 2026

Copy link
Copy Markdown
Owner

npm-MCP leg of the funnel source attribution (mirrors agent-ready-cli#3): the keyless postAnonScan path now sends X-Agent-Ready-Client: mcp-npm so the server can split npm-package scans from browser traffic. Server-side acceptance lands in mlava/agent-ready#196.

Keyed paths (/api/v1/scans) untouched — they're already attributed as api.

Tests: 34 green (header asserted in scan-anon.test.ts), tsc clean.

🤖 Generated with Claude Code

The keyless scan path (postAnonScan → POST /api/scan) shares that endpoint
with the web app, so funnel attribution recorded npm-MCP scans as
source=web. Send X-Agent-Ready-Client: mcp-npm so the server tags them
mcp-npm — distinct from 'mcp' (the hosted keyed /api/v1/mcp endpoint).

Safe to ship in either order: a server that doesn't recognise the value
ignores the header and falls through to web (current behaviour).

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
@mlava
mlava merged commit 1e15aef into main Jul 19, 2026
1 check passed
@mlava
mlava deleted the feat/client-source-header branch July 19, 2026 23:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant