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: 0

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