Back to Home
getprobo icon

mcpgen

Verified Safe

by getprobo

Overview

A code generator that builds type-safe Model Context Protocol (MCP) servers in Go from JSON Schema definitions of tools, resources, and prompts.

Installation

Run Command
go run examples/demo/main.go

Security Notes

The `mcpgen` tool itself is a code generator, primarily performing schema parsing (YAML/JSON) and Go code templating. It leverages standard Go libraries for file I/O and code formatting, with no direct execution of arbitrary external code or `eval`-like functions found in its core logic. The generated server code relies on the `modelcontextprotocol/go-sdk` and user-implemented handler logic, which would require separate security audits for runtime safety. As a generator tool, it is designed with type safety in mind, reducing common runtime errors for developers.

Similar Servers

Stats

Interest Score0
Security Score9
Cost ClassLow
Avg Tokens7500
Stars0
Forks0
Last Update2025-11-24

Tags

Code GenerationGoModel Context ProtocolJSON SchemaType Safety