Back to Home
zuplo icon

mcp

by zuplo

Overview

A TypeScript SDK for building and interacting with Model Context Protocol (MCP) servers, facilitating AI agent interaction through exposed tools, prompts, and resources via JSON-RPC over HTTP/SSE.

Installation

Run Command
npm install && npm run build && npm start

Environment Variables

  • NODE_ENV
  • BASE_URL
  • NODE_OPTIONS

Security Notes

The `HTTPStreamableTransport` in `src/transport/httpstreamable.ts` contains a critical vulnerability where the `isValidOrigin` function always returns `true`. This disables all origin validation, making the server susceptible to DNS rebinding attacks and other origin-based spoofing if exposed publicly. Additionally, the `CustomValidator` and `ResourceReader` types are designed to be user-implemented; if developers do not implement robust input sanitization and access controls for these components (e.g., restricting file paths in a `ResourceReader`), they could inadvertently introduce severe vulnerabilities such as arbitrary file access.

Similar Servers

Stats

Interest Score40
Security Score3
Cost ClassMedium
Avg Tokens500
Stars19
Forks4
Last Update2025-11-25

Tags

MCPJSON-RPCSDKAI AgentsTools