dynamic

package
v1.1.2 Latest Latest
Warning

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

Go to latest
Published: Oct 14, 2026 License: Apache-2.0 Imports: 8 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Package dynamic implements the 'dynamic' load mode: instead of exposing the full tool catalog, the server exposes three meta-tools — ionos_search_tools, ionos_describe_tools and ionos_call_tool — for runtime discovery and invocation.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Register

func Register(ctx context.Context, public *mcp.Server, products []Product, scope tools.Scope) (io.Closer, error)

Register builds the private catalog from products and registers the three dynamic meta-tools on the public server. Returns an io.Closer that tears down the catalog connection; main defers it, tests Close it to avoid leaks.

Types

type Product

type Product struct {
	Name     string
	Summary  string
	Register func(s *mcp.Server)
}

Product is one registrable product group (compute, dns, ...). Register adds the product's tools to the given server; it is the same closure the eager path runs, so the catalog stays in lockstep with eager mode.

Jump to

Keyboard shortcuts

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