{"repo":"haroldadmin/fastify-mcp","free":true,"listed":false,"github":"https://github.com/haroldadmin/fastify-mcp","clone":"git clone https://github.com/haroldadmin/fastify-mcp.git","description":"A Fastify plugin to run Model Context Protocol (MCP) servers","language":"TypeScript","stars":27,"topics":["ai","fastify","javascript","model-context-protocol"],"license":"Apache-2.0","category":"mcp-servers","readme_excerpt":"fastify-mcp Integrate Model Context Protocol servers with your Fastify app. Supports the Streamable HTTP transport as well as the legacy HTTP+SSE transport. Usage First, define your MCP server. Create a Fastify app and register the plugin. See the examples directory for more detailed examples. Installation Session Management The official MCP TypeScript SDK does not support managing multiple sessions out of the box, and therefore it's the host server's responsibility to do so. This package uses an in-memory mapping of each active session against its session ID to manage multiple sessions, as recommended by the MCP SDK examples. Session Events The Sessions class emits the following events: - connected : Emitted when a new session is added. - terminated : Emitted when a session is removed. - error : Emitted when an asynchronous event handler throws an error. Contributing Please file an issue if you encounter a problem when using this package. Pull requests for new features or bug fixes are also welcome.","default_branch":null,"files":null,"tree":[],"storefront":"/r/haroldadmin","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/haroldadmin/fastify-mcp/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}