Skip to main content
Glama

@aihu/mcp

Aihu — agentic discovery and interaction, for human purpose.

MCP server for aihu — exposes aihu_example and aihu_validate tools via stdio transport.

Status: Publish-ready — rides the next release cut. The aihu_example index is generated from the cookbook/ corpus (scripts/build-cookbook-index.ts) and CI-guarded against staleness (check:cookbook).

Exposes two tools over the Model Context Protocol's stdio transport:

  • aihu_example — returns a canonical .aihu SFC snippet from the generated cookbook index that best matches a natural-language intent, optionally narrowed by keyword tags.

  • aihu_validate — compiles a .aihu SFC source string with the aihu Rust compiler and returns either the compiled TypeScript or structured diagnostics (code, message, line/col).

Usage

Programmatic:

import { createServer, startServer } from '@aihu/mcp'

await startServer()
// or, to configure the transport yourself:
const server = createServer()

CLI — this package ships a serve bin that starts the stdio server and runs until the host closes stdin:

npx serve
# or, from an aihu project that depends on this package:
aihu mcp serve

Related MCP server: mcp-gerrit-code-review

Install

npm install @aihu/mcp
# or
bun add @aihu/mcp

Auto-generated against @aihu/mcp@0.2.1.

Package facts

Version

0.2.1

Tier

C — Agent surface — MCP server (aihu_example cookbook retrieval + aihu_validate)

Published files

3 entries

License

MIT

Auto-generated against @aihu/mcp@0.2.1.

Exports

Subpath

ESM

CJS

.

./dist/index.js

Auto-generated against @aihu/mcp@0.2.1.

Dependencies

Dependencies:

  • @aihu/compiler^1.3.6

  • @modelcontextprotocol/sdk^1.0.0

Auto-generated against @aihu/mcp@0.2.1.

See also

Auto-generated against @aihu/mcp@0.2.1.

License

MIT — see LICENSE.

Auto-generated against @aihu/mcp@0.2.1.

Related MCP Connectors

Related MCP Servers