Skip to content

Conversation

@0hmX
Copy link
Contributor

@0hmX 0hmX commented Aug 27, 2025

/claim #2

This commit migrates the MCP server from the deprecated STDIO transport to the new Streamable HTTP transport, as required by the Smithery platform.

The main changes include:

  • Updating smithery.yaml to use the typescript runtime.
  • Refactoring src/index.ts to export a createServer function for the Smithery CLI, while maintaining backward compatibility with STDIO for local development.
  • Updating package.json with the new dependencies and scripts for building and running the server in both HTTP and STDIO modes.

We now have the following commands

to start in legacy

npm run start:studio

and for the new HTTP transport layer

npm run start:http
2025-08-29.10-55-38.mp4

to test this locally with gemini cli the mcp
This is for legacy STDIO

   "mcpServers": {
     "supadata-local": {
       "command": "node",
       "args": [
         "/home/ohmx/Documents/Projects/mcp/dist/index.js"
       ],
       "env": {
         "RUN_STDIO": "true",
         "SUPADATA_API_KEY": "XXX"
       }
     }
   }

for the new http

   "mcpServers": {
     "supadata-local-http": {
       "command": "node",
       "args": [
         "/home/ohmx/Documents/Projects/mcp/dist/index.js"
       ],
       "env": {
         "SUPADATA_API_KEY": "XXX"
       }
     }
   }

This commit migrates the MCP server from the deprecated STDIO transport to the new Streamable HTTP transport, as required by the Smithery platform.

The main changes include:
 - Updating `smithery.yaml` to use the `typescript` runtime.
 - Refactoring `src/index.ts` to export a `createServer` function for the Smithery CLI, while maintaining backward compatibility with STDIO for
 local development.
 - Updating `package.json` with the new dependencies and scripts for building and running the server in both HTTP and STDIO modes.
@algora-pbc algora-pbc bot mentioned this pull request Aug 27, 2025
2 tasks
@rafalzawadzki rafalzawadzki merged commit 6ad9cb3 into supadata-ai:main Aug 30, 2025
1 check passed
@rafalzawadzki
Copy link
Contributor

LGTM 🚀 thanks!

This was referenced Aug 30, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants