About Hono MCP Generator
Hono MCP Generator is an MCP server published by ambergristle in the Developer Tools category: generate an MCP server for a Hono app using @hono/zod-openapi and openapi-ts.
The repository has 1 stars and 0 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
git clone https://github.com/ambergristle/hono-mcp-generatorThis 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 Hono MCP Generator
Powered by Claude · Grounded in docs
Security checks
Static checks derived from the repository 7 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 presentNo tests found. Behaviour changes may go unnoticed between versions.
- ✓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
Getting Started
To install dependencies:
bun install
To generate OpenAPI spec, along with client SDK and MCP app:
bun client:gen
Then un-comment the mcpApp import and routing in src/index.ts:
import mcpApp from '../sdk/mcp.gen';
// ...
app.route('/mcp', mcpApp);
To run:
bun dev
open http://localhost:3000
To launch MCP inspector:
bun mcp:inspector
Testing
-
Set the MCP Inspector target URL to
http://localhost:3000/mcp. -
Select
Connect, thenList Tools. -
Select the
Get Usertool. -
Add an arbitrary ID value as a path parameter.
-
Select
Run Tool. -
The returned mock User should have the ID value you entered!
Notes
- Client generation fails on any TypeScript errors, so the initial generated MCP import must be commented-out.
- The
@modelcontextprotocol/sdkdependency is only compatible with Zod 3, so theopenapi-tsconfig was updated accordingly. - Paths in the
openapi-tsconfig were updated to be compatible with this project's structure. - The
api-config.tsfile depends on a generated type file, which seems a little fragile, but doesn't cause any compile-time problems. - The
api-config.tsfile was modified to directly includeclientConfig, and project-specific values likeappConfigandApiErrorwere removed for simplicity.
Roadmap
- The
registerToolmethod is recommended overtoolfor more robust use-cases. - It may be helpful to add a
List ToolsMCP endpoint to help clients discover available tools and resources. - Passing auth credentials via MCP is not currently supported.
README fetched from the repository 7 days ago. The original is authoritative.