Documentation
¶
Overview ¶
Package server builds the brainjar MCP server. It's transport-agnostic: the same *mcp.Server is served over stdio (brainjar mcp) or Streamable HTTP (mounted on brainjar serve). All tools share the app layer with the HTTP handlers — no duplicated business logic.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Build ¶
Build constructs a fresh *mcp.Server wired with every brainjar tool. Callers run it on a transport (stdio, Streamable HTTP, in-memory). b is anything satisfying tools.Backend — both LocalBackend and RemoteBackend do.
cat is the active platform's catalog used to canonicalize compose responses' model_prefs.model. Pass nil from multi-tenant transports (HTTP serve) where workspaces may target different platforms; the compose tool will then return model names verbatim.
Types ¶
This section is empty.