Back to Home
sceiler icon

toolcall

by sceiler

Overview

Creating and serving custom tools for AI models (LLMs) via the Model Context Protocol (MCP) using a minimal and type-safe API.

Installation

Run Command
npx tsx examples/server.ts

Security Notes

The `McpClient.connect` method in `src/client.ts` uses `child_process.spawn` with an unsanitized `target` string. If this `target` is derived from untrusted user input, it creates a severe command injection vulnerability. The server-side (using `serve`), while robustly validating tool parameters with Zod, does not implement specific mitigations against denial-of-service (DoS) attacks from excessively large or malformed JSON inputs. Furthermore, the overall security highly depends on the safety of the user-provided `execute` functions within the tools, as the framework cannot prevent arbitrary or malicious code within these user-defined functions.

Similar Servers

Stats

Interest Score0
Security Score5
Cost ClassLow
Avg Tokens100
Stars0
Forks0
Last Update2026-01-16

Tags

MCPAI ToolsServer FrameworkTypeScriptZod