Documentation
¶
Overview ¶
Package mcp is the Dexaflow Model Context Protocol server (ADR 0050). It exposes the control plane to an LLM agent as read tools over the official modelcontextprotocol/go-sdk, talking to /api/v2 only through pkg/client — it imports no other internal/ package and holds no privilege of its own (the caller's token is passed through by the client).
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewServer ¶
func NewServer(api *apiclient.ClientWithResponses, serverURL, version string, requireBearer bool) *mcpsdk.Server
NewServer builds a read-only Dexaflow MCP server. api is the base control-plane client; serverURL is the control-plane URL used to build per-request clients. requireBearer selects the identity policy (true for the HTTP transport, where each request carries its own token; false for stdio) — see handlers. It registers the read tools + resources; the caller runs it over a transport (stdio for Lite dev, Streamable HTTP for Pro). Tools that mutate state are deliberately absent (ADR 0050 D7).
Types ¶
This section is empty.