Help us shape the future of Go! Take the 2026 Go Developer Survey

namespace

package
v0.1.3 Latest Latest
Warning

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

Go to latest
Published: Sep 24, 2026 License: MIT Imports: 4 Imported by: 0

Documentation

Overview

Package namespace constructs collision-safe MCP identities.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Prefix

func Prefix(componentName, configured string) (string, error)

Prefix returns an explicitly configured prefix or a sanitized component name.

func Prompt

func Prompt(prefix, localName string) (string, error)

Prompt constructs an exposed prompt identity, namespaced when prefix is non-empty.

func Resource

func Resource(prefix, original string) (string, error)

Resource constructs an exposed resource URI, namespaced when prefix is non-empty.

func ResourceTemplate

func ResourceTemplate(prefix, original string) (string, error)

ResourceTemplate constructs an exposed URI template, namespaced when prefix is non-empty.

func Tool

func Tool(prefix, localName string) (string, error)

Tool constructs an exposed tool identity, namespaced when prefix is non-empty.

Types

This section is empty.

Jump to

Keyboard shortcuts

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