mcp

package
v0.2.26 Latest Latest
Warning

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

Go to latest
Published: Mar 4, 2026 License: MIT Imports: 14 Imported by: 0

Documentation

Overview

Package mcp provides an MCP (Model Context Protocol) server for workflow tools. This allows Claude to directly signal task completion and request input instead of relying on text parsing.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Server

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

Server is an MCP server that provides workflow tools to Claude.

func NewServer

func NewServer(database *db.DB, taskID int64) *Server

NewServer creates a new MCP server for a specific task.

func (*Server) Run

func (s *Server) Run() error

Run starts the MCP server and processes requests until EOF.

func (*Server) SetCallbacks

func (s *Server) SetCallbacks(onComplete func(), onNeedsInput func(question string))

SetCallbacks sets the callbacks for task state changes.

Jump to

Keyboard shortcuts

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