mcp

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Apr 24, 2026 License: MIT Imports: 14 Imported by: 0

Documentation

Overview

Package mcp provides an MCP server for AI agent access to tickets.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewServer

func NewServer(store ticket.Store, defaultProject string, centralRoot string) *mcp.Server

NewServer creates an MCP server with all ticket management tools registered. defaultProject scopes tools to a specific project when the caller doesn't provide an explicit project parameter. Empty string means no default (all projects).

Types

type FlexBool

type FlexBool bool

FlexBool is a bool that also accepts JSON strings like "true"/"false"/"1"/"0".

func (*FlexBool) UnmarshalJSON

func (f *FlexBool) UnmarshalJSON(b []byte) error

type FlexInt

type FlexInt int

FlexInt is an integer that also accepts JSON strings containing an integer. LLM clients sometimes send numeric MCP arguments as quoted strings; FlexInt coerces these back to int rather than failing the whole call.

func (*FlexInt) UnmarshalJSON

func (f *FlexInt) UnmarshalJSON(b []byte) error

UnmarshalJSON accepts either a JSON number or a JSON string holding an integer. Trims whitespace; empty strings are treated as absent.

Jump to

Keyboard shortcuts

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