mcpserver

package
v1.0.3 Latest Latest
Warning

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

Go to latest
Published: Jul 20, 2026 License: MIT Imports: 16 Imported by: 0

Documentation

Overview

Package mcpserver exposes exponential over the Model Context Protocol so AI agents can manage issues with structured tool calls instead of shelling out to the CLI. Tool handlers are thin adapters: every mutation goes through the same internal/exponential Client methods the CLI uses, so business logic is not duplicated across transports.

Index

Constants

View Source
const EnvAgentIdentity = "XPO_AGENT_IDENTITY"

EnvAgentIdentity is the env var consulted first to determine the calling agent's identity. Format: "Name <email>" or any free-form string.

Variables

This section is empty.

Functions

func RegisterTools

func RegisterTools(srv *mcp.Server, cfg *config.Config, httpReq *http.Request, onEvent func(eventType, issueID string))

RegisterTools registers all xpo MCP tools on the given server. When httpReq is non-nil (HTTP transport), the authenticated user identity from the request context is used for event attribution.

func Run

func Run(ctx context.Context, cfg *config.Config) error

Run starts a stdio MCP server backed by the given config. It blocks until stdin is closed (the typical MCP client-disconnect signal), which counts as a clean shutdown.

Types

This section is empty.

Jump to

Keyboard shortcuts

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