tasksmcp

package
v0.0.4 Latest Latest
Warning

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

Go to latest
Published: May 21, 2026 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewCoordinatorAssigningTracker

func NewCoordinatorAssigningTracker(base task.Tracker, coordinatorAssignee string) task.Tracker

NewCoordinatorAssigningTracker wraps a tracker so newly created issues are automatically assigned to the configured coordinator assignee.

func NewServer

func NewServer(tracker task.Tracker) (*mcp.Server, error)

NewServer builds the tasks MCP server with tracker-parity tools.

func Run

func Run(ctx context.Context, tracker task.Tracker) error

Run serves the tasks MCP server over stdio.

func RunHTTP

func RunHTTP(ctx context.Context, tracker task.Tracker, addr string) error

RunHTTP serves the tasks MCP server over HTTP using the streamable HTTP transport. It listens on the given address (e.g., "localhost:8080") and serves MCP requests.

Types

type HTTPServerResult

type HTTPServerResult struct {
	// Addr is the actual listen address (e.g., "127.0.0.1:54321").
	Addr string
	// Close shuts down the server.
	Close func() error
}

HTTPServerResult contains the address and cleanup function for an embedded HTTP server.

func StartHTTPServer

func StartHTTPServer(ctx context.Context, tracker task.Tracker, addr string) (*HTTPServerResult, error)

StartHTTPServer starts an HTTP server on the given address and returns immediately. Use ":0" to let the OS assign a random port. The returned HTTPServerResult contains the actual address and a Close function.

type ToolError

type ToolError struct {
	Operation string `json:"operation" jsonschema:"tool name that produced the error"`
	Code      string `json:"code" jsonschema:"stable machine-readable error code"`
	Message   string `json:"message" jsonschema:"human-readable error message"`
}

type ToolOutcome

type ToolOutcome struct {
	OK    bool       `json:"ok" jsonschema:"true when the tool completed successfully"`
	Error *ToolError `json:"error,omitempty" jsonschema:"error details when ok is false"`
}

Jump to

Keyboard shortcuts

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