MCP
v0.1.0 — Model Context Protocol (MCP) adapter for Hyper.
$ hyper add mcp
Copies 3 files into src/hyper/mcp/ and updates hyper.lock.json.
DEPS
- registry: core
FILES
- mcp/audit.ts
- mcp/index.ts
- mcp/server.ts
README
@hyper/mcp
Model Context Protocol (MCP) adapter for Hyper — turn any Hyper app into an MCP server.
Install
Components are installed as source into your repo, not pulled from npm:
bunx hyper add mcp
Wires the alias @hyper/mcp to src/hyper/mcp/ (configurable in hyper.config.json). See hyperjs.ai for the full registry.
Usage
import { Hyper, ok } from "@hyper/core"
import { mcpServer } from "@hyper/mcp"
const app = new Hyper().get("/ping", () => ok({ pong: true }))
const server = mcpServer(app)
Bun.serve({ port: 5174, fetch: server.handle })
Docs
See the main README and docs/ for guides and integration recipes.
License
MIT
MANIFEST
- /r/mcp.json — latest
- /r/mcp@0.1.0.json — immutable