mcp-transport-sse-setup

Solid

Configure HTTP/SSE transport for web-based MCP servers with proper endpoints, authentication, and CORS.

AI & Automation 814 stars 53 forks Updated today MIT

Install

View on GitHub

Quality Score: 95/100

Stars 20%
97
Recency 20%
100
Frontmatter 20%
70
Documentation 15%
100
Issue Health 10%
50
License 10%
100
Description 5%
100

Skill Content

# MCP Transport SSE Setup Configure HTTP/SSE transport for web-based MCP servers. ## Capabilities - Configure SSE transport for MCP servers - Set up HTTP endpoints for MCP communication - Implement authentication middleware - Configure CORS for browser clients - Set up health check endpoints - Implement connection management ## Usage Invoke this skill when you need to: - Set up web-based MCP server transport - Configure SSE for real-time communication - Implement authentication for MCP endpoints - Enable CORS for browser-based clients ## Inputs | Parameter | Type | Required | Description | |-----------|------|----------|-------------| | language | string | Yes | Target language (typescript, python) | | framework | string | No | Web framework (express, fastify, fastapi) | | auth | object | No | Authentication configuration | | cors | object | No | CORS configuration | ## Generated Patterns ### TypeScript Express SSE Transport ```typescript import express from 'express'; import cors from 'cors'; import { Server } from '@modelcontextprotocol/sdk/server/index.js'; import { SSEServerTransport } from '@modelcontextprotocol/sdk/server/sse.js'; const app = express(); // CORS configuration app.use(cors({ origin: process.env.ALLOWED_ORIGINS?.split(',') || '*', credentials: true, })); app.use(express.json()); // Store active connections const connections = new Map<string, SSEServerTransport>(); // SSE endpoint app.get('/sse', async (req, res) => { const connectionId...

Details

Author
a5c-ai
Repository
a5c-ai/babysitter
Created
4 months ago
Last Updated
today
Language
JavaScript
License
MIT

Integrates with

Related Skills