mcp

package
v0.8.0 Latest Latest
Warning

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

Go to latest
Published: Jul 10, 2026 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Overview

Package mcp exposes unity-ctx's read-only commands as a Model Context Protocol (MCP) server over stdio, so MCP hosts (Claude Code, etc.) can call them as native tools instead of shelling out. It speaks newline-delimited JSON-RPC 2.0 and implements initialize / tools/list / tools/call.

Only read-only commands are exposed; mutations stay behind the CLI's dry-run-first, --write contract.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Serve

func Serve(svc *app.Service, in io.Reader, out io.Writer) error

Serve runs the MCP server loop, reading newline-delimited JSON-RPC requests from in and writing responses to out, until in is exhausted.

Types

This section is empty.

Jump to

Keyboard shortcuts

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