server

package
v0.7.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 2, 2026 License: MIT Imports: 5 Imported by: 0

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL