mcpserver

package
v0.55.9 Latest Latest
Warning

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

Go to latest
Published: Nov 30, 2026 License: Apache-2.0 Imports: 9 Imported by: 1 module, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Package mcpserver builds a Model Context Protocol (MCP) server for aeman's board operations, with transport chosen by the caller. Its tool set is a 1:1 projection of the /api/v1 resource API (Board/Card/Note resources, actions, LIST selectors), calling the boardservice layer — the same logic behind the HTTP handlers — not proxying GitHub directly.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(cfg Config) *mcp.Server

New builds an MCP server with the aeman tool set.

func Serve

func Serve(ctx context.Context, s *mcp.Server) error

Serve runs an MCP server over stdio until ctx is cancelled or the client disconnects.

Types

type Config

type Config struct {
	// Board is the default board — the name of its primary repository.
	Board string
	// Lock pins the board, ignoring per-tool overrides.
	Lock bool
	// Version is reported to MCP clients.
	Version string
	// ResolveLogin returns the caller's own login, used to scope the default
	// (unspecified-view) list to their own Me board. Optional: when nil
	// or it errors, an unspecified list falls back to the Me view for
	// everyone in the active sprint rather than one person's.
	ResolveLogin func(ctx context.Context) (string, error)
	// Backend is the board backend every tool call runs on — the server's
	// shared store, so MCP writes update the cache and reach watch clients
	// like every other write; the caller's identity and rights ride the
	// call's context.
	Backend boardservice.Backend
}

Config configures the MCP server.

Jump to

Keyboard shortcuts

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