Skip to content

fix(mcp): add viem as a direct dependency to resolve mppx's required peer (#118) - #247

Merged
Eras256 merged 1 commit into
mainfrom
fix/issue-118-mcp-viem-direct-dep
Nov 4, 2026
Merged

Eras256 merged 1 commit into
mainfrom
fix/issue-118-mcp-viem-direct-dep

Conversation

@Eras256

@Eras256 Eras256 commented Nov 4, 2026

Copy link
Copy Markdown
Collaborator

Summary

Closes #118. mppx declares viem as a non-optional peer dependency (>=2.51.0 - confirmed via npm view mppx peerDependenciesMeta, where hono/elysia/express are marked optional: true and viem is not), so a clean npm install leaves it unresolved and nirium-mcp crashes at startup with ERR_MODULE_NOT_FOUND: viem.

Adds viem (pinned to the current latest, ^2.57.16) directly to packages/mcp/package.json, plus a one-line README note explaining why it's there.

Replaces #124 (same root-cause diagnosis - credit to @maxx-GENIUS for finding it). That PR was opened against an older main and, merged as-is, would have regressed @stellar/mpp entirely and downgraded @modelcontextprotocol/sdk and @stellar/stellar-sdk. This PR only adds the one missing line.

Verification

  • npm install --legacy-peer-deps in packages/mcp resolves cleanly, npm ls viem shows it deduped under mppx.
  • npm run build (tsc) passes with no errors.
  • The separate @stellar/mpp / @stellar/stellar-sdk peer mismatch this surfaces is pre-existing on main and already known/handled - mcp-ci.yml and sdk-test.yml already install with --legacy-peer-deps for exactly this reason, so no new workaround needed here.

Co-Authored-By: Claude Sonnet 5 noreply@anthropic.com

…peer (#118)

mppx declares viem as a non-optional peer (>=2.51.0, confirmed via
npm view mppx peerDependenciesMeta - unlike hono/elysia/express, viem
has no optional:true entry), so a clean npm install leaves it
unresolved and nirium-mcp crashes at startup with
ERR_MODULE_NOT_FOUND: viem.

Supersedes #124 (same diagnosis, credit to maxx-GENIUS), which was
opened against an older main and, if merged as-is, would have
regressed @stellar/mpp entirely plus downgraded
@modelcontextprotocol/sdk and @stellar/stellar-sdk. This PR only adds
the one missing dependency line, verified with a clean install and a
successful tsc build.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
@Eras256
Eras256 merged commit c955c6f into main Nov 4, 2026
4 checks passed
@Eras256
Eras256 deleted the fix/issue-118-mcp-viem-direct-dep branch November 4, 2026 00:25
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.

nirium-mcp needs viem installed by hand (missing peer of mppx, not covered by peerDependenciesMeta)

1 participant