mcpserver

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Jul 24, 2026 License: MIT Imports: 16 Imported by: 0

Documentation

Overview

Package mcpserver exposes the dharma CLI as an MCP server over stdio, for hosts that can't shell out to the CLI directly (ChatGPT desktop, Codex). It re-execs the running binary per tool call, exactly as mcpb/server/index.js shells out to the bundled CLI, so command bodies that print straight to os.Stdout never have to change: MCP stdio owns this process's stdout, and only the subprocess's captured stdout/stderr become tool output.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Serve

func Serve(ctx context.Context, version string) error

Serve runs the dharma MCP server over stdio until ctx is canceled or the client disconnects. A client disconnect is a normal end of session, not an error: it returns nil so the caller exits 0 (see internal/cli/mcp.go).

Types

This section is empty.

Jump to

Keyboard shortcuts

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