mcpserver

package
v0.0.0-...-221c26d Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RegisterPrompts

func RegisterPrompts(s *server.MCPServer)

func RegisterTools

func RegisterTools(s *server.MCPServer)

func StartWithMode

func StartWithMode(mode ServerMode, addr, version string)

StartWithMode starts the MCP server with the specified mode and address mode: "stdio" for standard input/output, "http" for HTTP/SSE addr: address to listen on (only used for HTTP mode, e.g., ":8080") version: version of the MCP server

func TestFileURIToPath

func TestFileURIToPath(t *testing.T)

func TestIsASCIILetter

func TestIsASCIILetter(t *testing.T)

Types

type ServerMode

type ServerMode string

ServerMode defines the transport mode for the MCP server

const (
	ModeStdio ServerMode = "stdio"
	ModeHTTP  ServerMode = "http"
)

Jump to

Keyboard shortcuts

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