mcpserver

package
v0.8.0 Latest Latest
Warning

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

Go to latest
Published: Jul 23, 2026 License: MIT Imports: 15 Imported by: 0

Documentation

Overview

Package mcpserver exposes an amoxtli workspace over the Model Context Protocol (stdio), so an LLM agent can search the local corpus.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Server

type Server struct {
	// contains filtered or unexported fields
}

Server bundles a live Codex with an MCP server exposing it.

func New

func New(ctx context.Context, ws *workspace.Workspace, cfg *config.Config) (*Server, error)

New opens the workspace runtime and registers the MCP tools.

func (*Server) Close

func (s *Server) Close() error

Close releases the underlying runtime.

func (*Server) RunHTTP added in v0.0.10

func (s *Server) RunHTTP(ctx context.Context, addr string) error

RunHTTP serves the protocol over the streamable HTTP transport on addr, until the context is cancelled. A single long-lived process handles many concurrent client sessions (the search path is read-only), which is what makes a shared, multi-user deployment possible.

func (*Server) RunStdio added in v0.0.10

func (s *Server) RunStdio(ctx context.Context) error

RunStdio serves the protocol over stdio until the context is cancelled. Use it when the MCP client spawns amoxtli as a subprocess (one process per client).

Jump to

Keyboard shortcuts

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