mcp

package
v0.13.0 Latest Latest
Warning

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

Go to latest
Published: Jul 18, 2026 License: MIT Imports: 25 Imported by: 0

Documentation

Overview

Package mcp implements the Model Context Protocol server for visionspec.

Package mcp implements the Model Context Protocol server for visionspec.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AlignArgs added in v0.10.0

type AlignArgs struct {
	Project       string `json:"project" jsonschema:"description=Project name"`
	GenerateTruth bool   `json:"generate_truth,omitempty" jsonschema:"description=Generate current-truth.md document"`
}

AlignArgs contains align command arguments.

type ApproveArgs

type ApproveArgs struct {
	Project  string `json:"project" jsonschema:"description=Project name"`
	SpecType string `json:"spec_type" jsonschema:"description=Spec type"`
	Approver string `json:"approver,omitempty" jsonschema:"description=Approver identifier"`
}

ApproveArgs contains approve command arguments.

type DraftArgs

type DraftArgs struct {
	Project  string `json:"project" jsonschema:"description=Project name"`
	SpecType string `json:"spec_type" jsonschema:"description=Spec type (mrd, prd, uxd)"`
}

DraftArgs contains draft operation arguments.

type ExecutionContextArgs added in v0.10.0

type ExecutionContextArgs struct {
	Project     string `json:"project" jsonschema:"description=Project name"`
	IncludeSpec bool   `json:"include_spec,omitempty" jsonschema:"description=Include full spec content"`
	IncludeTRD  bool   `json:"include_trd,omitempty" jsonschema:"description=Include technical requirements"`
}

ExecutionContextArgs contains arguments for get_execution_context.

type ExecutionStatus added in v0.10.0

type ExecutionStatus struct {
	Project      string                       `json:"project"`
	UpdatedAt    time.Time                    `json:"updated_at"`
	Requirements map[string]RequirementStatus `json:"requirements"`
}

ExecutionStatus tracks implementation progress.

type ExecutionStatusArgs added in v0.10.0

type ExecutionStatusArgs struct {
	Project string `json:"project" jsonschema:"description=Project name"`
}

ExecutionStatusArgs contains arguments for get_execution_status.

type ExecutionSummary added in v0.10.0

type ExecutionSummary struct {
	Total       int     `json:"total"`
	Implemented int     `json:"implemented"`
	InProgress  int     `json:"in_progress"`
	Blocked     int     `json:"blocked"`
	Pending     int     `json:"pending"`
	Progress    float64 `json:"progress_pct"`
}

ExecutionSummary provides aggregate execution statistics.

type ExportArgs

type ExportArgs struct {
	Project string `json:"project" jsonschema:"description=Project name"`
	Target  string `json:"target" jsonschema:"description=Target (speckit, gsd, gastown, gascity)"`
}

ExportArgs contains export command arguments.

type GetWorkflowArgs added in v0.11.0

type GetWorkflowArgs struct {
	Project        string `json:"project" jsonschema:"description=Project name"`
	IncludeMermaid bool   `json:"include_mermaid,omitempty" jsonschema:"description=Include Mermaid diagram in response"`
	Format         string `json:"format,omitempty" jsonschema:"description=Output format: json (default), mermaid, or dot"`
}

GetWorkflowArgs contains arguments for get_workflow.

type ProjectArgs

type ProjectArgs struct {
	Project string `json:"project" jsonschema:"description=Project name"`
}

ProjectArgs contains a project name argument.

type ProjectSpecArgs

type ProjectSpecArgs struct {
	Project  string `json:"project" jsonschema:"description=Project name"`
	SpecType string `json:"spec_type" jsonschema:"description=Spec type (mrd, prd, uxd, trd, etc.)"`
}

ProjectSpecArgs contains project and spec type arguments.

type RequirementStatus added in v0.10.0

type RequirementStatus struct {
	ID        string    `json:"id"`
	Status    string    `json:"status"` // pending, in_progress, implemented, blocked
	UpdatedAt time.Time `json:"updated_at"`
	Evidence  []string  `json:"evidence,omitempty"`
	Notes     string    `json:"notes,omitempty"`
}

RequirementStatus tracks a single requirement's implementation status.

type Server

type Server struct {
	// contains filtered or unexported fields
}

Server implements the MCP server for visionspec.

func NewServer

func NewServer() *Server

NewServer creates a new MCP server.

func (*Server) Serve

func (s *Server) Serve(ctx context.Context) error

Serve starts the MCP server on stdio transport.

type StartDraftArgs

type StartDraftArgs struct {
	Project  string `json:"project" jsonschema:"description=Project name"`
	SpecType string `json:"spec_type" jsonschema:"description=Spec type (mrd, prd, uxd)"`
}

StartDraftArgs contains start_draft arguments.

type TrackRequirementArgs added in v0.10.0

type TrackRequirementArgs struct {
	Project       string `json:"project" jsonschema:"description=Project name"`
	RequirementID string `json:"requirement_id" jsonschema:"description=Requirement identifier (e.g., REQ-001)"`
	Status        string `json:"status" jsonschema:"description=New status: pending, in_progress, implemented, blocked"`
	Evidence      string `json:"evidence,omitempty" jsonschema:"description=Implementation evidence (file paths, commit refs)"`
	Notes         string `json:"notes,omitempty" jsonschema:"description=Implementation notes"`
}

TrackRequirementArgs contains arguments for track_requirement.

type UpdateDraftArgs

type UpdateDraftArgs struct {
	Project  string `json:"project" jsonschema:"description=Project name"`
	SpecType string `json:"spec_type" jsonschema:"description=Spec type (mrd, prd, uxd)"`
	Content  string `json:"content" jsonschema:"description=Updated draft content (full markdown document)"`
}

UpdateDraftArgs contains update_draft arguments.

Jump to

Keyboard shortcuts

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