alias

package
v0.7.1 Latest Latest
Warning

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

Go to latest
Published: May 5, 2025 License: MIT Imports: 4 Imported by: 0

Documentation

Overview

Package alias implements server alias functionality for MCP.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetConfigPath

func GetConfigPath() (string, error)

GetConfigPath returns the path to the aliases configuration file.

func GetServerCommand

func GetServerCommand(aliasName string) (string, bool)

GetServerCommand retrieves the server command for a given alias.

func Save

func Save(aliases Aliases) error

Save saves server aliases to the configuration file.

Types

type Aliases

type Aliases map[string]ServerAlias

Aliases stores command aliases for MCP servers.

func Load

func Load() (Aliases, error)

Load loads server aliases from the configuration file.

type ServerAlias

type ServerAlias struct {
	Command string `json:"command"`
}

ServerAlias represents a single server command alias.

Jump to

Keyboard shortcuts

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