server

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: May 31, 2026 License: MIT Imports: 7 Imported by: ? 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 server provides stdio MCP server bootstrap helpers built on go-sdk.

HTTP, SSE, and streamable transports are provided by go-sdk directly. Build a server with New, register tools, then serve with sdkmcp.NewStreamableHTTPHandler or other go-sdk transports. Mcpkit does not wrap HTTP.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(cfg Config) (*sdkmcp.Server, string, error)

New creates a go-sdk MCP server from config.

func ServeStdio

func ServeStdio(cfg Config) error

ServeStdio runs the MCP server over stdin/stdout until interrupted.

Types

type Config

type Config struct {
	Name         string
	Version      string
	Instructions string
	WorkDir      string
	Register     func(server *sdkmcp.Server, workDir string)
}

Config describes a stdio MCP server instance.

Jump to

Keyboard shortcuts

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