register

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Feb 17, 2026 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DeriveServerName

func DeriveServerName(binaryPath string) string

DeriveServerName strips the -mcp suffix and .exe extension from a binary name.

func Run

func Run(info ServerInfo, args []string)

Run executes the register subcommand. args is os.Args[2:] (everything after "register").

Types

type ServerInfo

type ServerInfo struct {
	Name string // e.g. "rest-api" (without -mcp suffix)
}

ServerInfo holds the identity of the MCP server being registered.

Jump to

Keyboard shortcuts

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