mcpserver

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Mar 25, 2026 License: MIT Imports: 6 Imported by: 0

Documentation

Overview

Package mcpserver provides the Model Context Protocol server for aperturecli. It exposes the admin API operations as typed MCP tools over stdio JSON-RPC, enabling direct integration with agent frameworks.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewServer

func NewServer(client adminrpc.AdminClient,
	version string) *gomcp.Server

NewServer creates a new MCP server with all aperturecli tools registered. The version parameter is injected from the CLI's build version to avoid import cycles.

func Run

func Run(ctx context.Context, client adminrpc.AdminClient,
	version string) error

Run starts the MCP server on the stdio transport and blocks until the context is cancelled or the transport closes.

Types

This section is empty.

Jump to

Keyboard shortcuts

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