mcp

package
v0.4.4 Latest Latest
Warning

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

Go to latest
Published: Sep 25, 2025 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Overview

Package mcp creates an MCP server for managing the tasks.

Index

Constants

This section is empty.

Variables

View Source
var PromptInstructions string

Functions

This section is empty.

Types

type ArchiveParams added in v0.2.5

type ArchiveParams struct {
	ID string `json:"id" jsonschema:"Required. The ID of the task to archive."`
}

type ListCreateParams added in v0.2.5

type ListCreateParams struct {
	Tasks []core.CreateTaskParams `json:"new_tasks"`
}

type Server

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

Server wraps the MCP server with backlog-specific functionality

func NewServer

func NewServer(store TaskStore, autoCommit bool) (*Server, error)

NewServer creates a new MCP server configured for backlog

func (*Server) RunHTTP

func (s *Server) RunHTTP(port int) error

RunHTTP starts the server with streamable HTTP transport

func (*Server) RunStdio

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

RunStdio starts the server with stdio transport

type TaskStore

type TaskStore interface {
	Get(id string) (core.Task, error)
	Create(params core.CreateTaskParams) (core.Task, error)
	Update(task *core.Task, params core.EditTaskParams) error
	List(params core.ListTasksParams) (core.ListResult, error)
	Path(t core.Task) string
	Archive(id core.TaskID) (string, error)
}

TaskStore interface matches the one expected by the MCP handlers

type ToolCall added in v0.4.2

type ToolCall struct {
	Name      string `json:"name"`
	Arguments any    `json:"arguments"`
}

ToolCall represents a structured MCP tool call that can be marshaled to JSON

type ViewParams added in v0.2.5

type ViewParams struct {
	ID string `json:"id" jsonschema:"Required. The ID of the task."`
}

Jump to

Keyboard shortcuts

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