About Helper
Helper is an MCP server published by mizchi in the Developer Tools category: mCP development assistant: scaffold MCP servers (Node SDK v2 / Go) with stdio + Streamable HTTP.
The repository has 5 stars and 1 forks, with the last commit a year ago. Six months or more without a commit doesn't mean the server is broken, but check the open issues before depending on it in production.
Install
npx mcp-helperclaude mcp add helper -- npx -y mcp-helpernpx -y mcp-helperThis server has no ConduID identity, so agent calls to it are not receipted. Pin the version you install and review the source before granting it credentials.
Ask AI
Ask AI about Helper
Powered by Claude · Grounded in docs
Security checks
Static checks derived from the repository 6 days ago. Heuristics on the source, not an audit.
- ✓README presentThe repository ships documentation.
- !License declaredNo license file. Legally you have no right to use it in a product.
- ✓Tests presentA test suite exists in the repository.
- ✓Dependencies pinnedA lockfile pins dependency versions.
- ✓No dynamic code executionSource scan found no eval, dynamic Function, or shell execution.
- !Scoped permissionsDoesn't declare a permission scope. Assume it can do anything its process can.
README
@mizchi/mcp-helper
A type-safe helper library for creating Model Context Protocol (MCP) servers in Deno.
Features
- Type-safe MCP server creation with TypeScript
- Zod schema validation for input/output
- In-memory test client for easy testing
- Built-in TypeScript type inference for tools
Installation
import { createToolsServer } from "jsr:@mizchi/mcp-helper";
Usage
Creating an MCP Server
import { createToolsServer } from "jsr:@mizchi/mcp-helper";
import { StdioServerTransport } from "npm:@modelcontextprotocol/sdk@1.5.0/server/stdio.js";
import { z } from "zod";
// Define your tools with Zod schemas
const tools = [
{
name: "getStringLength",
description: "Get length of input string",
inputSchema: z.object({
input: z.string().describe("The input string"),
}),
outputSchema: z.number(),
},
] as const;
// Create the server with type-safe handlers
const server = createToolsServer(
{
name: "my-server",
version: "1.0.0",
},
tools,
// define handlers for all tools
{
getStringLength(params: { input: string }) {
return params.input.length;
},
}
);
await server.connect(new StdioServerTransport());
Testing Your Server
The library provides an in-memory test client for easy testing:
import { createInMemoryTestClient } from "@mizchi/mcp-helper";
// Create a test client
const client = await createInMemoryTestClient<typeof tools>(server);
// Call tools with type safety
const result = await client.callTool("getStringLength", {
input: "Hello, world!",
});
console.log(result); // 13
// Clean up
await client.close();
MCP Configuration
Add your server to the MCP configuration:
{
"mcpServers": {
"mymcp": {
"command": "deno",
"args": ["run", "-A", "server.ts"],
"env": {},
"disabled": false,
"alwaysAllow": []
}
}
}
API
createToolsServer<T extends Tools>(info, tools, handlers)
Creates a new MCP server with type-safe tool definitions.
info: Server information (name and version)tools: Array of tool definitions with Zod schemashandlers: Implementation of tool handlers
createInMemoryTestClient<T extends Tools>(server)
Creates a test client for the given server.
server: The MCP server instance- Returns: A type-safe client for testing tools
CLI (Experimental)
CAUTION: You can not install cli via jsr for dynamic import restrictions.
# Install cli
$ deno install -Afg ./lmcp.ts -A
$ lmcp examples/readUrl.ts readUrl -- --url=https://zenn.dev/mizchi/articles/deno-mcp-server
Add this export for your server impl.
// add this export for impl
export default server;
Development
# Run tests
deno task test
License
MIT
README fetched from the repository 6 days ago. The original is authoritative.