Documentation
¶
Overview ¶
Package mcp implements a Model Context Protocol server that exposes the Hostim public REST API as tools, so a coding agent can list, inspect and — only when explicitly allowed — provision Hostim resources.
Read tools are always registered. Write tools are registered only when the caller opts in (hostim mcp --allow-write), so a server started without the flag physically cannot mutate anything.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Options ¶
type Options struct {
// Client is the authenticated Hostim API client. Required.
Client *api.ClientWithResponses
// AllowWrite registers the create/update/delete tools. Off by default.
AllowWrite bool
// Version is reported to the MCP client as the server version.
Version string
}
Options configures the server.
Click to show internal directories.
Click to hide internal directories.