with-mcp

0.0.14 • Public • Published

A simple middleware that turns your serverless server handler + OpenAPI spec + config into a exposed MCP endpoint following the new stateless MCP principles

See example for how to use this.

Earlier work: https://github.com/janwilmake/openapi-to-mcp

Disclaimer: Please only use this for APIs that are compliant to the MCP Authorization spec, or have no authorization. Also follow good MCP practices for choosing how to shape your tools, prompts, and resources. Do NOT Blindly turn a complex API into an MCP, this is a bad idea.

Work in progress: I'm working on a simpler auth plugin for your handler as well to turn any API into a GitHub Oauth Client & Provider. Eventually it will be MCP compatible. See library here

Please Let me know what you think on X in this thread!

Readme

Keywords

none

Package Sidebar

Install

npm i with-mcp

Weekly Downloads

177

Version

0.0.14

License

none

Unpacked Size

20.3 kB

Total Files

3

Last publish

Collaborators

  • janwilmake