Discover Packages
github.com/galjos/odh-cli
internal
mcpserver
package
Version:
v0.4.0
Opens a new window with list of versions in this module.
Published: Jun 26, 2026
License: MPL-2.0
Opens a new window with license information.
Imports: 11
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
Documentation
¶
Package mcpserver exposes the curated odh command surface as Model
Context Protocol tools. Every tool executes the corresponding CLI
command in-process and returns its documented JSON output unchanged,
so the JSON contracts in docs/json-contracts.md apply to MCP results
as well.
New builds an MCP server exposing the curated odh tool surface.
Tool calls are executed through exec.
ServeStdio runs the MCP server on stdin/stdout until the client
disconnects or ctx is canceled.
ExecFunc runs one CLI argument vector and returns its process exit
code. Implementations must be safe for concurrent calls.
type ToolInfo struct {
Name string `json:"name"`
Description string `json:"description"`
InputSchema map[string ]any `json:"input_schema"`
}
ToolInfo describes one exposed MCP tool for listings outside an MCP
session, such as odh mcp tools.
Tools returns the exposed tool surface in registration order.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.