Files
mcp/doc.go
T

18 lines
904 B
Go
Raw Normal View History

// Package mcp hosts the Einherjar Model Context Protocol server: a remote
// streamable-HTTP service that gives AI assistants accurate, structured
// knowledge about the Einherjar framework.
//
// The server exposes tools for browsing modules, looking up symbols and
// architectural decision records, fetching canonical examples, and validating
// user code against framework conventions. Knowledge is built at deploy time
// by cmd/indexer (which walks the sibling Einherjar modules) and embedded
// into the server binary as a JSON index.
//
// Sub-packages:
// - cmd/server — streamable HTTP MCP server entry point
// - cmd/indexer — produces data/index.json from a local Einherjar checkout
// - internal/index — index types and embedded loader
// - internal/tools — one file per MCP tool
// - internal/rules — lightweight pattern-match rules for validate_snippet
package mcp