mcpserver

package
v0.1.3 Latest Latest
Warning

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

Go to latest
Published: Nov 19, 2026 License: MIT Imports: 21 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 the daemon's tools through the official Go MCP SDK.

Index

Constants

View Source
const (
	DefaultTimeout = 10 * time.Second
)

Variables

This section is empty.

Functions

func NewHTTPHandler

func NewHTTPHandler(endpoint, publicEndpoint string, timeout time.Duration, version, token string) (http.Handler, func(), error)

NewHTTPHandler reuses the same tools for a Streamable HTTP endpoint. Its caller must enforce TLS, the configured Host and Origin policy, and Bearer authentication before dispatching to this handler. This lets the caller use an explicitly configured authority even if its TLS listener binds loopback. endpoint addresses the loopback backend. publicEndpoint is the canonical HTTPS MCP URL returned to remote clients for Job recovery. The returned cleanup closes the daemon client's idle connections.

func RunStdioCommand

func RunStdioCommand(name string, args []string, version string, diagnostics io.Writer) int

RunStdioCommand runs MCP independently of the human CLI's configuration and logs.

func Version

func Version(linkedVersion string) string

Version reports the linker-provided version or the source build identity.

Types

This section is empty.

Jump to

Keyboard shortcuts

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