mcp

package
v0.7.0 Latest Latest
Warning

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

Go to latest
Published: Jun 1, 2026 License: MIT Imports: 18 Imported by: 0

Documentation

Overview

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 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 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 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 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 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