Skip to content
Skills Library
AI & agents · Building & coding

deploy-mcp-gateway

/deploy-mcp-gateway

Deploy MCP Gateway — build MCP server with tool definitions, resource handlers, transport (stdio/HTTP/SSE), input validation, sandboxing. Use when: deploy, build MCP server.

Repository
frootai ↗
Licence
MIT
Last repository change
26.10.2026

Assessment and security

100/ 100Class: good
Format25 / 25
Frontmatter with name and description, valid name, description up to 1,024 characters, name matching the folder.
Discoverability25 / 25
Description explains when to use the skill, has a reasonable length and uses third person.
Content35 / 35
At least 150 words and at most 500 lines, headings, step lists, examples or code.
Hygiene15 / 15
No placeholders such as TODO, no Windows paths, with a licence.
Riskno signals detected in the scan
Files in this package
3
Scripts
0
HTML comments
0
URLs in SKILL.md
0
Deprecation

No signals detected. Repository changed on 26.10.2026, without references to retired models or APIs.

Licence

MIT, open: use and modify while retaining author attribution.

What it does and when to use it

Deploy MCP Gateway — build MCP server with tool definitions, resource handlers, transport (stdio/HTTP/SSE), input validation, sandboxing. Use when: deploy, build MCP server.

Original author description

Deploy MCP Gateway — build MCP server with tool definitions, resource handlers, transport (stdio/HTTP/SSE), input validation, sandboxing. Use when: deploy, build MCP server.

How it works

  1. When to Use
  2. Prerequisites
  3. Step 1: Define Server Structure
  4. Step 2: Implement Tool Definitions
  5. Step 3: Configure Transport
  6. Step 4: Input Validation & Security
  7. Step 5: Expose Resources
  8. Step 6: Deploy
  9. Step 7: Register in VS Code
  10. Post-Deployment Verification
Original SKILL.md headings · 98 lines, 466 words
SKILL.md preview
---
name: deploy-mcp-gateway
description: "Deploy MCP Gateway — build MCP server with tool definitions, resource handlers, transport (stdio/HTTP/SSE), input validation, sandboxing. Use when: deploy, build MCP server."
---

# Deploy MCP Gateway

## When to Use
- Build a custom MCP server wrapping your APIs as AI-callable tools
- Configure transport (stdio for local, HTTP for remote)
- Define tool schemas with input validation
- Expose resources and prompts via MCP protocol
- Deploy as reusable AI tooling service

## Prerequisites
1. Node.js 18+ or Python 3.10+ (MCP runtime)
2. Target APIs/services to wrap as MCP tools
3. MCP SDK: `npm install @modelcontextprotocol/sdk`

## Step 1: Define Server Structure
```
mcp-gateway/
├── src/
│   ├── index.ts          # Server entry point
│   ├── tools/            # Tool handlers
│   ├── resources/        # Resource providers
│   └── prompts/          # Prompt templates
├── package.json
└── tsconfig.json
```

## Step 2: Implement Tool Definitions
```typescript
server.setRequestHandler(ListToolsRequestSchema, async () => ({
  tools: [{
    name: "search_knowledge_base",
    description: "Search internal KB for documents matching query",
    inputSchema: {
      type: "object",
      properties: {
        query: { type: "string", description: "Search query" },
        top_k: { type: "number", default: 5 }
      },
      required: ["query"]
    }
  }]
}));
```

## Step 3: Configure Transport
| Transport | Use Case | Config |
|-----------|----------|--------|
| stdio | Local dev, VS Code | `"type": "stdio"` |
| HTTP Stream | Remote servers | `"type": "http", "url": "..."` |
| SSE | Legacy clients | `"type": "sse"` |

## Step 4: Input Validation & Security
| Check | Purpose |
|-------|---------|
| JSON Schema validation | Prevent malformed requests |
| Input sanitization | Prevent injection attacks |
| Rate limiting (60/min) | Prevent abuse |
| Domain allowlist | Limit API scope |
| Output size limit (10KB) | Prevent context overflow |

## Step 5: Expose Resources
```typescript
server.setRequestHandler(ListResourcesRequestSchema, async () => ({
  resources: [{ uri: "config://settings", name: "Config", mimeType: "application/json" }]
}));
```

## Step 6: Deploy
```bash
# Local: npx ts-node src/index.ts
# Remote: docker build + az containerapp create
```

## Step 7: Register in VS Code
```json
{ "servers": { "myGateway": { "command": "npx", "args": ["ts-node", "src/index.ts"] } } }
```

## Post-Deployment Verification
- [ ] Server lists tools correctly
- [ ] Tool invocations return expected results
- [ ] Input validation blocks malformed requests
- [ ] Resources accessible via MCP
- [ ] Transport working (stdio or HTTP)
- [ ] Errors return structured responses

## Troubleshooting

| Issue | Cause | Fix |
|-------|-------|-----|
| Tools not appearing | Server not in mcp.json | Add to .vscode/mcp.json |
| Tool fails silently | No error handler | Add try/catch with MCP error |
| LLM calls wrong tool | Description unclear | Improve tool description |
| Response too large | No output limit | Truncate to 10KB |
| Transport drops | HTTP timeout | Add keepalive |
| Input injection | No validation | Add JSON Schema |
Files in this package (3)
  • SKILL.lean.md 3 KB
  • SKILL.md 3 KB
  • agents/openai.yaml 1 KB

Versions

The database has no other skills named deploy-mcp-gateway.

Database snapshot: 13.11.2026 · package version f753152c6220 (SHA-256 digest of the entire package)

Downloads in the last 30 days: 0 · ranking

: harmful content, incorrect descriptions or an author’s removal request.

Similar skills

  • 100mcp-ops
    Model Context Protocol server development, tool design, resource handling, and transport configuration. Use for: mcp, model context protocol, mcp server, mcp tool, mcp resource, fastmcp, mcp transport, stdio, sse, streamable http, mcp inspector, tool handler, mcp prompt.
  • 100quarkus-mcp-server-sse
    Quarkus and MCP Server with HTTP SSE transport development standards and instructions Triggers on: *
  • 100mcp-server
    This skill should be used when the user asks to "create an MCP server", "build MCP tools", "define MCP prompts", "register MCP resources", "implement Model Context Protocol", or mentions the mcp gem, MCP::Server, MCP::Tool, JSON-RPC transport, stdio transport, or streamable HTTP…
  • 100mcp-gateway
    Set up an MCP gateway that connects MCP servers over STDIO, HTTP, or SSE and serves all their tools from one /mcp endpoint to Claude Code, Cursor, Claude Desktop, and other MCP clients, using Bifrost, the open-source AI gateway by Maxim AI. Covers per-key tool filtering,…
  • 95mcp-integration
    This skill should be used when the user asks to "add MCP server", "integrate MCP", "configure MCP in plugin", "use .mcp.json", "set up Model Context Protocol", "connect external service", mentions "${CLAUDE_PLUGIN_ROOT} with MCP", or discusses MCP server types (SSE, stdio, HTTP,…
  • 100mcp-developer
    Use when building, debugging, or extending MCP servers or clients that connect AI systems with external tools and data sources. Invoke to implement tool handlers, configure resource providers, set up stdio/HTTP/SSE transport layers, validate schemas with Zod or Pydantic, debug…

Feedback and reports

Your message goes to Bartosz Sokoliński. An email address is needed only for a reply. See the privacy policy.