agentmcp

package
v0.18.5 Latest Latest
Warning

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

Go to latest
Published: Sep 16, 2026 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Overview

Package agentmcp serves the Encounter engine toolset over the Model Context Protocol so a standalone PicoClaw instance (or any MCP client) can play through the same tools the in-app agent uses.

Index

Constants

View Source
const ServerName = "encx-engine"

ServerName is the implementation name advertised to MCP clients.

Variables

This section is empty.

Functions

func NewElicitConfirmer

func NewElicitConfirmer() agenttools.Confirmer

NewElicitConfirmer returns a Confirmer that puts mutating calls to the MCP client through elicitation. Pass it as agenttools.Options.Confirmer when building a catalog for PolicyApprove.

func NewServer

func NewServer(catalog *agenttools.Catalog, version string) (*mcp.Server, error)

NewServer publishes a catalog as an MCP server.

Under agenttools.PolicyApprove every mutating call is put to the client through MCP elicitation, which is the protocol's equivalent of the in-app confirmation sheet. Clients that do not support elicitation get a refusal rather than a silent mutation.

func ServeStdio

func ServeStdio(ctx context.Context, server *mcp.Server) error

ServeStdio runs the server over stdin/stdout until the client disconnects or ctx is cancelled.

Types

This section is empty.

Jump to

Keyboard shortcuts

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