@pikku/modelcontextprotocol
v0.12.19
Published
A Pikku MCP server runtime using the official MCP SDK
Downloads
6,915
Readme
@pikku/modelcontextprotocol
MCP server runtime for Pikku, built on the official @modelcontextprotocol/sdk.
Exposes your Pikku wirings as MCP tools and resources over stdio.
Install
npm install @pikku/modelcontextprotocolUsage
Generate the MCP schema and bootstrap first:
npx pikku mcpThen start the server:
import { PikkuMCPServer } from '@pikku/modelcontextprotocol'
import './.pikku/mcp-bootstrap.gen.js'
const server = new PikkuMCPServer(
{
name: 'my-pikku-server',
version: '1.0.0',
mcpJsonPath: './mcp.json',
capabilities: { tools: {} },
},
singletonServices,
createWireServices
)
await server.init()
await server.start()Point an MCP client at the built entry file:
{
"mcpServers": {
"pikku-server": { "command": "node", "args": ["./dist/server.js"] }
}
}Docs
https://pikku.dev/docs
