Skip to content

fix(docs): correct MCP server npx invocation (-p package, not bare bin)#101

Merged
dadachi merged 1 commit into
mainfrom
fix/mcp-npx-invocation
May 24, 2026
Merged

fix(docs): correct MCP server npx invocation (-p package, not bare bin)#101
dadachi merged 1 commit into
mainfrom
fix/mcp-npx-invocation

Conversation

@dadachi
Copy link
Copy Markdown
Contributor

@dadachi dadachi commented May 24, 2026

Bug

#99 documented the MCP server distribution surface as:

npx -y nativeapptemplate-agent-mcp

But there is no npm package named nativeapptemplate-agent-mcp — it's a bin of the nativeapptemplate-agent package (two bins: nativeapptemplate-agent and nativeapptemplate-agent-mcp). npm view nativeapptemplate-agent-mcp404, so the bare npx form fails for every user who copies it.

Fix

Package-scoped invocation, which resolves the bin from the package:

npx -y -p nativeapptemplate-agent nativeapptemplate-agent-mcp

Verified against published 0.2.1 from a clean /tmp dir with a real MCP initialize handshake:

{"result":{"protocolVersion":"2024-11-05","capabilities":{"tools":{"listChanged":true}},
 "serverInfo":{"name":"nativeapptemplate-agent","version":"0.2.1"}},"jsonrpc":"2.0","id":1}

Corrected the three runnable references (README.md, CLAUDE.md, ROADMAP.md). docs/SPEC.md's bin-name mention and ROADMAP.md:89's prose identifier are left as-is — they name the bin, they aren't commands. CLAUDE.md keeps a one-line note on why -p is needed so the mistake isn't reintroduced.

Note

The same corrected form is used in the new plugin's .mcp.json (#100, on epic/claude-code-plugin). If we'd rather the bare npx -y nativeapptemplate-agent-mcp "just work" as originally written, the alternative is publishing a thin nativeapptemplate-agent-mcp shim package — flagged for a separate decision; not done here.

🤖 Generated with Claude Code

#99 documented the MCP server as `npx -y nativeapptemplate-agent-mcp`, but there
is no npm package by that name — it's a *bin* of the `nativeapptemplate-agent`
package, so the bare form 404s. Use the package-scoped form:
`npx -y -p nativeapptemplate-agent nativeapptemplate-agent-mcp`.

Verified against published 0.2.1 from a clean dir with a real MCP initialize
handshake (returns serverInfo nativeapptemplate-agent 0.2.1). Fixes the runnable
references in README, CLAUDE.md, and ROADMAP; SPEC's bin-name mention and the
ROADMAP prose identifier are left as-is (not commands).

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
@dadachi dadachi merged commit 300696f into main May 24, 2026
1 check passed
@dadachi dadachi deleted the fix/mcp-npx-invocation branch May 24, 2026 06:52
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