mcp

package
v0.1.2 Latest Latest
Warning

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

Go to latest
Published: Sep 19, 2026 License: MIT Imports: 13 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 mcp exposes a project's requests to AI agents over the Model Context Protocol (stdio), so an agent can discover and call an API without shelling out.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(cfg Config) (*sdk.Server, error)

New builds an MCP server for the project in cfg.Dir.

func Serve

func Serve(ctx context.Context, cfg Config) error

Serve runs the server over stdio until the client disconnects.

Types

type Config

type Config struct {
	Dir     string // project root
	Env     string // default environment
	Version string
}

Config controls the server.

Jump to

Keyboard shortcuts

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