Skip to content

chore(release): 0.12.0 — ship MCP SDK with the bin - #43

Merged
rrader26 merged 1 commit into
mainfrom
fix/pack-mcp-sdk-as-dep
May 13, 2026
Merged

chore(release): 0.12.0 — ship MCP SDK with the bin#43
rrader26 merged 1 commit into
mainfrom
fix/pack-mcp-sdk-as-dep

Conversation

@rrader26

Copy link
Copy Markdown
Contributor

Summary

Why this is urgent

@thinkfleet/agentmark@0.11.0 on npm is currently unusable. Smoke test:

$ npx -y @thinkfleet/agentmark agentmark-mcp --version
Error: Cannot find module '@modelcontextprotocol/sdk/server/index.js'

The SDK was listed in peerDependenciesMeta with optional: true, which means
npm i and npx -y skip it. But the only thing this package ships is an
MCP server — the SDK is not optional in practice.

Fold the dep into dependencies, drop the duplicate from devDependencies,
clean up the meta entry. The MCP SDK has minimal transitive deps so package
size barely changes.

After merge

Tag + npm publish 0.12.0. Once it's live, ThinkFleet desktop's "AM" status
pill will flip from red → green because its npx -y @thinkfleet/agentmark agentmark-mcp install --dry-run
probe will start working end-to-end.

Tests

  • npm run build — clean
  • npm test519 passed, 10 skipped (42 files)
  • node dist/src/mcp/cli.js --help — full subcommand help renders
  • node dist/src/mcp/cli.js install --dry-run — successfully detected & dry-wired Claude Code, Claude Desktop, Cursor, Windsurf on this machine

Follow-up bug noticed

Codex CLI errors in dry-run because its config file is TOML, not JSON:

✗  Codex CLI [error]   /Users/ryanrader/.codex/config.toml
   ...exists but is not valid JSON: Unexpected token 'm'...

PR #38's clients.ts treats every client config as JSON. I'll open a follow-up
to either (a) skip Codex when its config is TOML or (b) teach the writer to
handle TOML. Not blocking this release.

🤖 Generated with Claude Code

The published 0.11.0 tarball can't even start: it has @modelcontextprotocol/sdk
in peerDependenciesMeta as optional, so consumers who install via `npx -y` or
plain `npm i` never get the SDK, and the bin crashes immediately with
`Cannot find module '@modelcontextprotocol/sdk/server/index.js'`.

It was never really optional — the only thing this package ships is an MCP
server. Move it to dependencies so it's always installed alongside the bin,
and bump to 0.12.0 to reflect the new CLI surface that landed in #38#42
(install/setup/uninstall/doctor subcommands + npx setup alias).

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
@rrader26
rrader26 merged commit 2d57102 into main May 13, 2026
5 checks passed
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.

2 participants