mcpserver

package
v0.1.5 Latest Latest
Warning

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

Go to latest
Published: Sep 8, 2026 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(b *broker.Broker) (*mcp.Server, error)

New wraps an already-constructed broker in an MCP server. the broker is built by the command layer (see wiring.NewBroker); this adapter stays out of composition and only registers the transport. a schema-construction failure during registration is returned rather than registered half-built.

func RegisterTools

func RegisterTools(server *mcp.Server, b *broker.Broker) error

Types

type AuditCoverageInput added in v0.1.5

type AuditCoverageInput struct {
	RepoPath   string
	Rubric     string
	IncludeMap bool
}

type CollectReviewInput

type CollectReviewInput struct {
	Project  string
	ReviewID string
}

type CollectReviewOutput

type CollectReviewOutput struct {
	// Reviews is the list branch (collect with no review_id); Review is the
	// single-review branch. each is omitted when its branch is not the one
	// taken, so consumers can tell the branches apart by presence.
	Reviews []broker.ReviewSummary `dd:",+omitempty"`
	Review  *broker.CollectReviewResponse
}

type ErrorOutput

type ErrorOutput struct {
	Code    string
	Message string
	Details map[string]any
	At      string `dd:",+omitempty"`
}

type StartReviewInput

type StartReviewInput struct {
	RepoPath          string
	ChangesetKind     string
	Paths             []string
	Rubric            string
	Qualities         []string
	QualitiesBlocking bool
}

StartReviewInput is the dd-bound input for start_review. no json tags: dd's snake-case default (or an explicit dd name) owns the field mapping, and the explicit input schema owns discovery and validation.

type StartReviewOutput

type StartReviewOutput struct {
	ReviewID       string
	Project        string
	State          string
	Reviewer       string
	StartedAt      string
	StatusPath     string
	MonitorCommand string
	NextAction     string
}

type ToolErrorOutput

type ToolErrorOutput struct {
	Error ErrorOutput
}

ToolErrorOutput is the dd-bound error envelope returned in a tool result's structured content. its shape is {error: {code, message, details, at?}}.

Jump to

Keyboard shortcuts

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