muster

command module
v5.66.2 Latest Latest
Warning

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

Go to latest
Published: Nov 24, 2026 License: Apache-2.0 Imports: 1 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

README

muster

muster

One MCP endpoint for every MCP server your teams run.

Latest release CircleCI Go Report Card Go Reference License Documentation


muster is an aggregating Model Context Protocol server. It connects to the MCP servers an organisation runs (a factory's MES and maintenance system, a service desk and its directory, a CRM and an ERP, Kubernetes and Prometheus, in-house tools) and serves all of their tools through a single MCP endpoint. AI agents connect once, discover tools through a small set of meta-tools instead of loading hundreds of tool definitions, and call them under the identity of the person they work for.

It runs as a single binary on a laptop, bridging an IDE to local and remote MCP servers, and as a Kubernetes service that gives a whole organisation one authenticated, observable tool gateway.

What it does

  • Aggregation. Registered MCP servers (stdio, streamable-http, sse) are connected, health-checked and reconnected; their tools appear as x_<server>_<tool>. Servers that offer the same tools for different targets can form a family and appear as one tool surface with an instance argument.
  • Discovery that fits a context window. Clients see thirteen meta-tools: list_tools, filter_tools, describe_tool, call_tool and their resource and prompt counterparts. Listings are paged and summarised; filter_tools ranks by relevance, so finding the right tool costs a few hundred tokens rather than the whole catalogue.
  • Toolsets. A request declares the tools it may see and call with the X-muster-Toolset header: built-in presets such as read-only, operator-defined presets, and inline selectors by server, pattern, workflow or label. An agent runs with exactly the surface it was given.
  • Authentication and single sign-on. muster protects its endpoint as an OAuth 2.1 resource server in front of Dex, keeps one session per person and forwards the person's identity token to the MCP servers that accept it, so every downstream call is made as that person. Remote servers with their own OAuth get a browser login once per person; AWS-hosted servers can be signed with SigV4.
  • Kubernetes-native. MCPServer, Workflow and WorkflowExecution are custom resources reconciled by muster, with status, conditions and events. The Helm chart ships the CRDs, RBAC, network policies, a Prometheus rule set and a Grafana dashboard.
  • Workflows. Multi-step procedures become deterministic tools (workflow_<name>) with templated arguments, conditions, forEach loops (nested, with bounded parallelism) and parallel steps, paged listings, jq result projection and a durable execution record.
  • Observability. OpenTelemetry traces, Prometheus metrics and structured logs for every session, server and tool call.

How it works

flowchart LR
    subgraph clients [MCP clients]
        IDE["IDE or coding agent<br/>(Cursor, VS Code, Claude Code)"]
        Agent["Platform agents<br/>(kagent, Backstage, custom)"]
    end

    subgraph muster [muster]
        Meta["Meta-tools<br/>list_tools · filter_tools · describe_tool · call_tool"]
        Auth["OAuth 2.1 resource server<br/>sessions · toolsets · SSO"]
        Agg["Aggregator<br/>registry · health · reconnect"]
    end

    subgraph servers [MCP servers]
        K8s["mcp-kubernetes"]
        Prom["mcp-prometheus"]
        GH["GitHub MCP"]
        Own["your own"]
    end

    Dex["Dex (OIDC)"]

    IDE -- "MCP over HTTP" --> Auth
    Agent -- "MCP over HTTP" --> Auth
    Auth --> Meta --> Agg
    Auth -. "login, token validation" .-> Dex
    Agg -- "identity token forwarded" --> K8s
    Agg --> Prom
    Agg --> GH
    Agg --> Own

An MCP client connects to /mcp and receives the meta-tools. filter_tools and describe_tool find and explain a tool; call_tool runs it. muster resolves the name to the server behind it, attaches the session's credentials and forwards the call.

Quick start

Install the latest release. Binaries are signed in CI and verified by muster self-update.

brew trust giantswarm/muster
brew install giantswarm/muster/muster

Without Homebrew, download the binary for the platform:

os="$(uname -s | tr '[:upper:]' '[:lower:]')"
arch="$(uname -m | sed 's/x86_64/amd64/; s/aarch64/arm64/')"
curl -fsSL -o muster "https://github.com/giantswarm/muster/releases/latest/download/muster-${os}-${arch}"
chmod +x muster && sudo mv muster /usr/local/bin/

With a Go toolchain, go install github.com/giantswarm/muster/v5@latest works as well.

Start the aggregator, register an MCP server and call one of its tools:

muster serve                                   # serves http://localhost:8090/mcp

# in a second terminal
muster create mcpserver files --type=stdio --command=npx \
  --args="-y,@modelcontextprotocol/server-filesystem,$HOME" --autoStart=true
muster list mcpserver                          # files   Running   stdio
muster call x_files_list_allowed_directories

Connect an IDE. muster standalone runs the aggregator and a stdio bridge in one process; with a running muster serve, or a remote muster, use muster agent --mcp-server instead.

{
  "mcpServers": {
    "muster": {
      "command": "muster",
      "args": ["standalone"]
    }
  }
}

A remote muster protected by OAuth asks for a sign-in first. muster auth login --endpoint <url> opens a browser (the commands in $BROWSER before the platform default) and stores the session once the browser returns to http://localhost:3000/callback. Where the CLI cannot reach a browser (a remote shell, an agent's session), muster auth login --no-browser prints the sign-in URL to open by hand in a browser on the same machine and waits for the callback. Authenticate the CLI covers both.

The quick start continues from here: exploring the catalogue in the REPL, toolsets and the first workflow.

Deploy on Kubernetes

The chart is published in the Giant Swarm catalog and runs muster in Kubernetes mode, where MCP servers and workflows are custom resources.

helm repo add giantswarm https://giantswarm.github.io/giantswarm-catalog/
helm install muster giantswarm/muster --namespace muster --create-namespace
apiVersion: muster.giantswarm.io/v1alpha1
kind: MCPServer
metadata:
  name: kubernetes
  namespace: muster
spec:
  type: streamable-http
  url: https://mcp-kubernetes.example.com/mcp
  auth:
    type: oauth
    forwardToken: true

The installation guide covers OAuth protection with Dex, Valkey-backed sessions for more than one replica, network policies and metrics.

Documentation

The documentation is published at giantswarm.github.io/muster and lives in docs/; the site's landing page is rendered from overrides/home.html.

Section What you find there
Getting started Quick start, registering servers, the first workflow
How-to guides Connecting clients, authentication, managing servers, Kubernetes, workflows, troubleshooting
Reference Meta-tools and core tools, toolsets, configuration, custom resources, events, HTTP endpoints, CLI
Explanation Architecture, aggregation, orchestration, observability, decision records
Operations Installation, security
Contributing Development setup, the scenario test framework

Contributing

Issues and pull requests are welcome at github.com/giantswarm/muster. The contributing guide explains the development setup, the conventions the linters enforce and the behavioural test suite (muster test) that every change is expected to extend. Commits are signed off under the DCO.

Security issues are reported through Giant Swarm's responsible disclosure process, not as public issues.

License

muster is a Giant Swarm project, released under the Apache License 2.0.

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
hack
gen-cli-docs command
Package main renders the CLI reference in docs/reference/cli from the Cobra command tree, so the reference cannot drift from the commands themselves.
Package main renders the CLI reference in docs/reference/cli from the Cobra command tree, so the reference cannot drift from the commands themselves.
internal
admin
Package admin provides a read-only web UI for inspecting and managing muster sessions.
Package admin provides a read-only web UI for inspecting and managing muster sessions.
agent
Package agent provides comprehensive MCP (Model Context Protocol) client and server implementations for debugging, testing, and integrating with the muster aggregator.
Package agent provides comprehensive MCP (Model Context Protocol) client and server implementations for debugging, testing, and integrating with the muster aggregator.
agent/commands
Package commands provides a shared interface for REPL command implementations.
Package commands provides a shared interface for REPL command implementations.
agent/oauth
Package oauth implements OAuth 2.1 client authentication for the Muster Agent.
Package oauth implements OAuth 2.1 client authentication for the Muster Agent.
aggregator
Package aggregator provides the MCP aggregator server implementation.
Package aggregator provides the MCP aggregator server implementation.
api
Package api provides the central API layer for muster's Service Locator Pattern.
Package api provides the central API layer for muster's Service Locator Pattern.
api/tagstest
Package tagstest builds tag lists for the tests of api's tag rules and of the MCPServer and Workflow tools that apply them.
Package tagstest builds tag lists for the tests of api's tag rules and of the MCPServer and Workflow tools that apply them.
app
Package app provides application bootstrap, lifecycle management, and configuration management for muster.
Package app provides application bootstrap, lifecycle management, and configuration management for muster.
callerwrite
Package callerwrite implements the shared caller-identity write gate for session-initiated CR mutations (issues #1056, #1069).
Package callerwrite implements the shared caller-identity write gate for session-initiated CR mutations (issues #1056, #1069).
chatgptlogin
Package chatgptlogin is OpenAI's device-code sign-in to ChatGPT, the one the Codex CLI runs with `codex login --device-auth`: muster asks for a user code, the person enters it at OpenAI's device page, muster polls until the sign-in is authorized and exchanges the authorization code it is handed, with its PKCE verifier, for the person's tokens.
Package chatgptlogin is OpenAI's device-code sign-in to ChatGPT, the one the Codex CLI runs with `codex login --device-auth`: muster asks for a user code, the person enters it at OpenAI's device page, muster polls until the sign-in is authorized and exchanges the authorization code it is handed, with its PKCE verifier, for the person's tokens.
chatgptlogin/chatgptlogintest
Package chatgptlogintest is a fake of OpenAI's authorization server for the device-code sign-in to ChatGPT: the user code, the poll, the code exchange and the refresh, with a refresh token that rotates on every use as OpenAI's does.
Package chatgptlogintest is a fake of OpenAI's authorization server for the device-code sign-in to ChatGPT: the user code, the poll, the code exchange and the refresh, with a refresh token that rotates on every use as OpenAI's does.
cli
Package cli provides sophisticated command-line interface utilities for the muster application.
Package cli provides sophisticated command-line interface utilities for the muster application.
client
Package client provides a unified client abstraction for accessing muster resources both locally (filesystem) and in-cluster (Kubernetes API).
Package client provides a unified client abstraction for accessing muster resources both locally (filesystem) and in-cluster (Kubernetes API).
client/filesystem
Package filesystem is the filesystem-backed implementation of the unified muster client interface defined in the parent client package.
Package filesystem is the filesystem-backed implementation of the unified muster client interface defined in the parent client package.
clock
Package clock is the source of the current time for muster's timers that measure elapsed time: the reconnect backoff of a remote MCPServer, the orchestrator's retry and health-probe ticks, the aggregator's capability poll and the age of its core catalogue.
Package clock is the source of the current time for muster's timers that measure elapsed time: the reconnect backoff of a remote MCPServer, the orchestrator's retry and health-probe ticks, the aggregator's capability poll and the age of its core catalogue.
config
Package config provides configuration management for muster.
Package config provides configuration management for muster.
context
Package context provides kubectl-style context management for muster CLI.
Package context provides kubectl-style context management for muster CLI.
credprovider
Package credprovider makes muster a credential provider of Substrate's egress gateway, so a workspace Session's git and gh act as the person who started it without the person's token ever reaching the sandbox.
Package credprovider makes muster a credential provider of Substrate's egress gateway, so a workspace Session's git and gh act as the person who started it without the person's token ever reaching the sandbox.
events
Package events provides core infrastructure for generating Kubernetes Events for muster CRD lifecycle operations.
Package events provides core infrastructure for generating Kubernetes Events for muster CRD lifecycle operations.
jq
Package jq compiles and runs the jq programs a workflow step reshapes its result with (the step's `jq` field), on gojq, a pure-Go jq.
Package jq compiles and runs the jq programs a workflow step reshapes its result with (the step's `jq` field), on gojq, a pure-Go jq.
listenfds
Package listenfds hands listening sockets from a parent process to a child as inherited file descriptors, in the systemd socket-activation protocol: descriptors from 3 on, counted by LISTEN_FDS and named by LISTEN_FDNAMES.
Package listenfds hands listening sockets from a parent process to a child as inherited file descriptors, in the systemd socket-activation protocol: descriptors from 3 on, counted by LISTEN_FDS and named by LISTEN_FDNAMES.
mcpserver
Package mcpserver provides MCP (Model Context Protocol) server management functionality.
Package mcpserver provides MCP (Model Context Protocol) server management functionality.
metatools
Package metatools provides server-side meta-tool handlers for the MCP aggregator.
Package metatools provides server-side meta-tool handlers for the MCP aggregator.
musterlogo
Package musterlogo holds the muster logo and advertises it as the MCP icon (serverInfo.icons) of muster's own MCP servers: the aggregator and `muster agent --mcp-server`.
Package musterlogo holds the muster logo and advertises it as the MCP icon (serverInfo.icons) of muster's own MCP servers: the aggregator and `muster agent --mcp-server`.
netdiag
Package netdiag names the processes behind a network failure, so an error such as "address already in use" says who holds the port.
Package netdiag names the processes behind a network failure, so an error such as "address already in use" says who holds the port.
oauth
Package oauth implements OAuth 2.1 proxy functionality for remote MCP server authentication.
Package oauth implements OAuth 2.1 proxy functionality for remote MCP server authentication.
oauth/store
Package store provides per-session authentication and capability stores for the token broker layer.
Package store provides per-session authentication and capability stores for the token broker layer.
orchestrator
Package orchestrator manages the lifecycle of services registered in the shared service registry.
Package orchestrator manages the lifecycle of services registered in the shared service registry.
reconciler
Package reconciler provides a unified reconciliation system for muster resources.
Package reconciler provides a unified reconciliation system for muster resources.
server
Package server provides OAuth 2.1 protection for the Muster Server.
Package server provides OAuth 2.1 protection for the Muster Server.
servericon
Package servericon keeps the icon each MCP server declares in its initialize result, as a data: URI the MCPServer status carries (status.icon).
Package servericon keeps the icon each MCP server declares in its initialize result, as a data: URI the MCPServer status carries (status.icon).
services
Package services provides the service abstraction layer for muster.
Package services provides the service abstraction layer for muster.
signinpage
Package signinpage builds the pages a browser shows at the end of a sign-in to muster or through muster, so the server and the CLI word them alike.
Package signinpage builds the pages a browser shows at the end of a sign-in to muster or through muster, so the server and the CLI word them alike.
ssetest
Package ssetest serves the frame that held an MCP call on a reused HTTP/1 connection for the idle connection's 90s under go1.27.1's net/http (Go issue 81404): an SSE body closed while its reader is blocked in Read, with the stream ending inside the transport's post-close drain.
Package ssetest serves the frame that held an MCP call on a reused HTTP/1 connection for the idle connection's 90s under go1.27.1's net/http (Go issue 81404): an SSE body closed while its reader is blocked in Read, with the stream ending inside the transport's post-close drain.
template
Package template implements the variable substitution and templating engine used by workflow steps.
Package template implements the variable substitution and templating engine used by workflow steps.
testing
## Service Testing - **Lifecycle Management**: Test service creation, management, and deletion - **Dependency Management**: Validate service dependency resolution - **State Transitions**: Test service state changes and event handling - **Integration**: Test service interaction with other system components
## Service Testing - **Lifecycle Management**: Test service creation, management, and deletion - **Dependency Management**: Validate service dependency resolution - **State Transitions**: Test service state changes and event handling - **Integration**: Test service interaction with other system components
testing/fixtures/oauth
Package oauth contains test fixtures for OAuth authentication testing.
Package oauth contains test fixtures for OAuth authentication testing.
testing/fixtures/scale
Package scale is the installation-shaped fixture the scale budgets run on: 87 MCPServers (84 of them session-authenticated, in five families with an instanceArg, on 28 installations; three in-house servers without authentication), 18 distinct capability documents shared by the family members, 282 workflows referencing their tools, and 450 sessions each authenticated to every session-authenticated server -- the shape of a production installation, with every name invented.
Package scale is the installation-shaped fixture the scale budgets run on: 87 MCPServers (84 of them session-authenticated, in five families with an instanceArg, on 28 installations; three in-house servers without authentication), 18 distinct capability documents shared by the family members, 282 workflows referencing their tools, and 450 sessions each authenticated to every session-authenticated server -- the shape of a production installation, with every name invented.
testing/fixtures/scale/gen command
Command gen rewrites the scale fixture's YAML files from the generator, so `go generate ./internal/testing/fixtures/scale/` is the one way to change the committed fixture.
Command gen rewrites the scale fixture's YAML files from the generator, so `go generate ./internal/testing/fixtures/scale/` is the one way to change the committed fixture.
testing/mock
Package mock provides mock MCP server functionality for testing muster components.
Package mock provides mock MCP server functionality for testing muster components.
toolset
Package toolset implements declared toolsets: the selector list an agent sends in the X-Muster-Toolset header (or passes to filter_tools) that bounds which of the gateway's tools its meta-tools can see and call.
Package toolset implements declared toolsets: the selector list an agent sends in the X-Muster-Toolset header (or passes to filter_tools) that bounds which of the gateway's tools its meta-tools can see and call.
update
Package update keeps the muster binary current.
Package update keeps the muster binary current.
valkeyclient
Package valkeyclient builds the Valkey clients muster's stores share: the aggregator's session auth and capability stores and the OAuth server's DPoP replay cache.
Package valkeyclient builds the Valkey clients muster's stores share: the aggregator's session auth and capability stores and the OAuth server's DPoP replay cache.
workflow
Package workflow provides workflow management and execution capabilities for muster.
Package workflow provides workflow management and execution capabilities for muster.
pkg
apis/muster/v1alpha1
Package v1alpha1 contains API Schema definitions for the muster v1alpha1 API group.
Package v1alpha1 contains API Schema definitions for the muster v1alpha1 API group.
logging
Package logging provides a structured logging system for muster with unified log handling and flexible output formatting.
Package logging provides a structured logging system for muster with unified log handling and flexible output formatting.
oauth
Package oauth provides shared OAuth 2.1 types and utilities used by both the Muster Agent and Server.
Package oauth provides shared OAuth 2.1 types and utilities used by both the Muster Agent and Server.
observability
Package observability holds the shared OpenTelemetry identifiers that every muster package emits under, so a single TracerProvider / MeterProvider scope joins spans, metrics, and logs across the codebase.
Package observability holds the shared OpenTelemetry identifiers that every muster package emits under, so a single TracerProvider / MeterProvider scope joins spans, metrics, and logs across the codebase.
project
Package project carries the build identity of the muster binary: its version, git commit and build time, and the names that identify the project in messages.
Package project carries the build identity of the muster binary: its version, git commit and build time, and the names that identify the project in messages.
proto/credproviderpb
Package credproviderpb is Substrate's CredentialProvider gRPC API (credprovider.proto, Apache-2.0, from github.com/agent-substrate/substrate pkg/proto/credproviderpb), vendored so muster can serve FetchSecret to Substrate's egress gateway without depending on the Substrate module.
Package credproviderpb is Substrate's CredentialProvider gRPC API (credprovider.proto, Apache-2.0, from github.com/agent-substrate/substrate pkg/proto/credproviderpb), vendored so muster can serve FetchSecret to Substrate's egress gateway without depending on the Substrate module.
strings
Package strings provides string utility functions for the muster project.
Package strings provides string utility functions for the muster project.
tlsutil
Package tlsutil provides small helpers for building outbound TLS trust from operator-provided CA files.
Package tlsutil provides small helpers for building outbound TLS trust from operator-provided CA files.

Jump to

Keyboard shortcuts

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