mcpserver

package
v0.63.0 Latest Latest
Warning

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

Go to latest
Published: Jun 9, 2026 License: MIT Imports: 10 Imported by: 0

Documentation

Overview

Package mcpserver exposes devx subcommands as a Model Context Protocol server over stdio. Each tool shells out to the devx binary itself with the appropriate flags, captures stdout/stderr, and returns the result to the agent host. Subprocess isolation keeps the MCP server's own stdout (which is the JSON-RPC transport) free of cobra-generated chatter.

Index

Constants

View Source
const ServerName = "devx"

ServerName is the canonical name advertised to MCP hosts.

Variables

This section is empty.

Functions

func AllToolNames

func AllToolNames() []string

AllToolNames returns the canonical tool names registered by NewServer. Exposed for tests and for `devx mcp serve --list-tools`.

func NewServer

func NewServer(version string) *server.MCPServer

NewServer constructs a fully-registered MCPServer ready to be served over any transport. The version is stamped onto the InitializeResult so MCP hosts can display "devx vX.Y.Z" in their tool listings.

Types

This section is empty.

Jump to

Keyboard shortcuts

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