Skip to content

fix(mcp-server): point types metadata to emitted declarations#147

Draft
miguelangaranocurrents wants to merge 3 commits into
mainfrom
cursor/fix-mcp-types-metadata-106a
Draft

fix(mcp-server): point types metadata to emitted declarations#147
miguelangaranocurrents wants to merge 3 commits into
mainfrom
cursor/fix-mcp-types-metadata-106a

Conversation

@miguelangaranocurrents

@miguelangaranocurrents miguelangaranocurrents commented Jun 10, 2026

Copy link
Copy Markdown
Collaborator

Summary

Cherry-picks the substantive changes from #146 without the unrelated package-lock.json churn.

  • Point package.json types and exports["."].types at emitted dist/api.d.mts (tsdown does not emit api.d.ts)
  • Add pack/install integration coverage that declaration paths exist in the published tarball
  • Resolve npm/npx via the current Node runtime in integration tests for Windows compatibility

Excluded from #146

  • package-lock.json hono downgrade

Validation

  • npm run test:run — 12 files / 385 tests passed

Notes

Credit: based on contribution from @itosa-kazu in #146

Open in Web Open in Cursor 

Update package.json types paths to dist/api.d.mts to match tsdown output,
add pack/install coverage for declaration files, and use Node-resolved
npm/npx in integration tests for Windows compatibility.

Excludes unrelated package-lock.json changes from upstream PR #146.
@coderabbitai

coderabbitai Bot commented Jun 10, 2026

Copy link
Copy Markdown

Important

Review skipped

Draft detected.

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro

Run ID: 4c51570c-de71-4609-8b67-83bee6912ff8

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch cursor/fix-mcp-types-metadata-106a

Comment @coderabbitai help to get the list of available commands and usage tips.

Keep only the package.json types metadata change and declaration-file
integration test; revert execNpm/spawnNpx and remove test/npm-exec.ts.
Re-add test/npm-exec.ts and npm/npx wrappers for Windows-compatible
integration tests alongside the types metadata fix.
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