mcpserver

package
v1.0.1-0...-e2ee9d7 Latest Latest
Warning

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

Go to latest
Published: Oct 9, 2026 License: Apache-2.0 Imports: 10 Imported by: 0 modules, 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 exposes aitk over the Model Context Protocol (docs/spec/integrations.md). Every tool runs the same code path as the CLI (in-process, with --json), so MCP and CLI effects are identical.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(root, version string, exec Exec) *mcp.Server

New builds the server for the project at root.

func ServeHTTP

func ServeHTTP(addr string, s *mcp.Server) error

ServeHTTP serves streamable HTTP on addr.

func ServeStdio

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

ServeStdio serves over stdin/stdout until the client disconnects.

func ToolName

func ToolName(client string) string

ToolName maps MCP client names to aitk tool identifiers.

Types

type Exec

type Exec func(args []string, stdout, stderr *bytes.Buffer) int

Exec runs aitk CLI arguments and writes the JSON envelope to stdout.

Jump to

Keyboard shortcuts

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