package
Version:
v0.1.1
Opens a new window with list of versions in this module.
Published: Aug 21, 2026
License: MIT
Opens a new window with license information.
Imports: 4
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
Package namespace constructs collision-safe MCP identities.
-
func Prefix(componentName, configured string) (string, error)
-
func Prompt(prefix, localName string) (string, error)
-
func Resource(prefix, original string) (string, error)
-
func ResourceTemplate(prefix, original string) (string, error)
-
func Tool(prefix, localName string) (string, error)
Prefix returns an explicitly configured prefix or a sanitized component name.
Prompt constructs an exposed prompt identity, namespaced when prefix is non-empty.
Resource constructs an exposed resource URI, namespaced when prefix is non-empty.
ResourceTemplate constructs an exposed URI template, namespaced when prefix is non-empty.
Tool constructs an exposed tool identity, namespaced when prefix is non-empty.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.