muster

command module
v5.34.18 Latest Latest
Warning

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

Go to latest
Published: Oct 2, 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 and parallel steps 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"]
    }
  }
}

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.
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).
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.
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.
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.
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.
services
Package services provides the service abstraction layer for muster.
Package services provides the service abstraction layer for muster.
ssetransport
Package ssetransport keeps a closed server-sent-events response from holding an MCP call on a reused HTTP/1 connection.
Package ssetransport keeps a closed server-sent-events response from holding an MCP call on a reused HTTP/1 connection.
ssetransport/ssetest
Package ssetest serves the frame that holds an MCP call on a reused HTTP/1 connection when its client is not wrapped by ssetransport, so the clients built on mcp-go can each prove they are.
Package ssetest serves the frame that holds an MCP call on a reused HTTP/1 connection when its client is not wrapped by ssetransport, so the clients built on mcp-go can each prove they are.
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.
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.
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