Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .changeset/lovely-sloths-help.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@sei-js/mcp-server": patch
---

Explicitly use node-fetch instead of relying on users node version to have fetch
Binary file modified .yarn/install-state.gz
Binary file not shown.
2 changes: 2 additions & 0 deletions packages/mcp-server/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
"devDependencies": {
"@types/cors": "^2.8.17",
"@types/express": "^5.0.0",
"@types/node-fetch": "^2.6.13",
Comment thread
codebycarson marked this conversation as resolved.
"typescript": "^5.8.3"
},
"dependencies": {
Expand All @@ -29,6 +30,7 @@
"dotenv": "^16.5.0",
"express": "^4.21.2",
"jest": "^30.0.3",
"node-fetch": "^2.7.0",
"trieve-ts-sdk": "^0.0.121",
"tsx": "^4.20.3",
"viem": "^2.30.5",
Expand Down
1 change: 1 addition & 0 deletions packages/mcp-server/src/docs/server.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import type { McpServer } from '@modelcontextprotocol/sdk/server/mcp.js';
import { z } from 'zod';
import fetch from 'node-fetch';
import type { SeiSearchResponse } from '../mintlify/types';

const DOCS_SEARCH_URL = 'https://docs.sei-apis.io/search';
Expand Down
1 change: 1 addition & 0 deletions packages/mcp-server/src/mintlify/search.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import type { McpServer } from '@modelcontextprotocol/sdk/server/mcp.js';
import { TrieveSDK } from 'trieve-ts-sdk';
import { z } from 'zod';
import fetch from 'node-fetch';

import { DEFAULT_BASE_URL, SERVER_URL, SUBDOMAIN } from './config.js';
import type { MintlifySearchConfig, SeiSearchResponse, TrieveResponse, TrieveSearchResult } from './types.js';
Expand Down
Loading