Back to Home
Palald icon

mcp-sdk-typescript

Verified Safe

by Palald

Overview

Develop and deploy Model Context Protocol (MCP) compatible servers that expose tools to AI models, handling communication, session management, and type-safe tool execution.

Installation

Run Command
bun examples/calculator.ts

Security Notes

The code does not use 'eval' or obvious obfuscation. Network risks are mitigated by a default 'localhost' binding for the HTTP server and an `isValidOrigin` check (currently allowing only localhost/127.0.0.1) for CORS. There are no hardcoded secrets identified. JSON-RPC message parsing and Zod validation are used, which are generally robust. Proper error handling for tool execution and message parsing is in place. The `sendResponse` method has a fallback mechanism to broadcast if a specific session is not found, which could leak information if not carefully managed in production.

Similar Servers

Stats

Interest Score0
Security Score9
Cost ClassLow
Avg Tokens300
Stars0
Forks0
Last Update2026-01-19

Tags

mcpai-toolstypescriptbunreal-time