Help us shape the future of Go! Take the 2026 Go Developer Survey

mcp

package
v0.5.1 Latest Latest
Warning

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

Go to latest
Published: Oct 6, 2026 License: Apache-2.0 Imports: 10 Imported by: 0

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.

Jump to

Keyboard shortcuts

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