mcptools

package
v0.2.0-beta.5 Latest Latest
Warning

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

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

Documentation

Overview

Package mcptools builds the MCP tool server every levelrail-mcp transport (stdio, network, and the in-process transport an embedded caller like internal/ai uses) shares: one *mcp.Server with every tool registered against the same apiclient.Client. Pulled out of cmd/levelrail-mcp (which cannot be imported, being package main) so a non-CLI caller can build the identical tool server without spawning a subprocess.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewServer

func NewServer(client *apiclient.Client) *mcp.Server

NewServer builds the MCP server and registers every tool against client. Callers can connect to it directly over an in-memory transport (mcp.NewInMemoryTransports), without spawning a real process or touching stdio.

Types

This section is empty.

Jump to

Keyboard shortcuts

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