Add optional RPC URLS and improve build reliability#284
Conversation
- Add ability to override RPC url for each chain - Increment node-fetch versions to get correct typescript types - Add documentation around these changes
🦋 Changeset detectedLatest commit: 4868746 The changes in this PR will be included in the next version bump. This PR includes changesets to release 1 package
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
…ith node - Removed all uses of node-fetch - Updated docs to explain how to force version 18
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #284 +/- ##
=========================================
Coverage 100.00% 100.00%
=========================================
Files 70 70
Lines 844 846 +2
Branches 139 142 +3
=========================================
+ Hits 844 846 +2 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
- Added valid urls as examples in docs - Added node@18 prompt to claude cli docs - Added variables to .env.example
- Added new docs page for support - Changed module resolution to node - Added dependency for noble hashes to resolve conflicts -
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
There was a problem hiding this comment.
Pull Request Overview
This PR improves build reliability and adds RPC customization capabilities for the MCP server by modernizing the build setup and removing node-fetch dependency in favor of native fetch.
- Replace node-fetch with native fetch (requires Node.js 18+)
- Add environment variable support for custom RPC URLs per chain
- Update TypeScript configuration for Node.js-only environments
- Add comprehensive troubleshooting documentation
Reviewed Changes
Copilot reviewed 13 out of 15 changed files in this pull request and generated 1 comment.
Show a summary per file
| File | Description |
|---|---|
| packages/mcp-server/tsconfig.json | Updated compiler options for Node.js environments |
| packages/mcp-server/package.json | Removed node-fetch dependency and simplified build script |
| packages/mcp-server/src/tests/core/tools.test.ts | Switched from mocking node-fetch to global fetch |
| packages/mcp-server/src/mintlify/search.ts | Removed node-fetch import |
| packages/mcp-server/src/docs/server.ts | Removed node-fetch import |
| packages/mcp-server/src/core/chains.ts | Added environment variable support for RPC URLs |
| packages/mcp-server/.env.example | Added RPC URL environment variables |
| docs/mcp-server/troubleshooting.mdx | Added comprehensive troubleshooting guide |
| docs/mcp-server/setup.mdx | Updated environment variables documentation |
| docs/mcp-server/introduction.mdx | Updated configuration examples |
| docs/mcp-server/tools.mdx | Updated npx command example |
| docs/docs.json | Added troubleshooting page to navigation |
| "sei": { | ||
| "command": "npx", | ||
| "args": ["-y", "@sei-js/mcp-server"], | ||
| "args": ["--node-version=18@18", "@sei-js/mcp-server"], |
There was a problem hiding this comment.
should this be hardcoded to 18? can it just use >18 or LTS?
There was a problem hiding this comment.
Removed this, good catch
Uh oh!
There was an error while loading. Please reload this page.