Documentation
¶
Overview ¶
Package apimcp hosts OpenAPI-backed MCP servers and narrow API-specific workflow extensions while retaining credential, policy, approval, and HTTP ownership in the core runtime.
Index ¶
- Variables
- func CreateServer(ctx context.Context, cfg Config, extensions ...ExtensionTool) (*mcp.Server, error)
- func DecodeInput(req *mcp.CallToolRequest, destination any) error
- func ErrorResponse(message string) *mcp.CallToolResult
- func JSONResponse(message string, result map[string]any) *mcp.CallToolResult
- func RunKeychainCommand(args []string, stdin *os.File, output io.Writer) error
- func RunStdio(ctx context.Context, cfg Config, extensions ...ExtensionTool) error
- type APIProfile
- type APIResponse
- type Config
- type ExtensionBatchItem
- type ExtensionBatchRequest
- type ExtensionBatchResult
- type ExtensionRuntime
- type ExtensionTool
- type PaginationInfo
- type ToolInput
- type TruncationInfo
Constants ¶
This section is empty.
Variables ¶
View Source
var DefaultVersion = internal.DefaultVersion
Functions ¶
func CreateServer ¶
func CreateServer(ctx context.Context, cfg Config, extensions ...ExtensionTool) (*mcp.Server, error)
CreateServer creates an MCP server and registers validated API-specific tools.
func DecodeInput ¶
func DecodeInput(req *mcp.CallToolRequest, destination any) error
DecodeInput strictly decodes an extension tool's arguments.
func ErrorResponse ¶
func ErrorResponse(message string) *mcp.CallToolResult
ErrorResponse returns a model-visible MCP tool error.
func JSONResponse ¶
func JSONResponse(message string, result map[string]any) *mcp.CallToolResult
JSONResponse returns matching text and structured MCP content.
func RunKeychainCommand ¶
RunKeychainCommand runs the user-interactive Keychain enrollment command.
Types ¶
type APIProfile ¶
type APIProfile = internal.APIProfile
type APIResponse ¶
type APIResponse = internal.APIResponse
type Config ¶
func LoadConfigFromArgs ¶
LoadConfigFromArgs loads and normalizes the standard api-mcp configuration.
type ExtensionBatchItem ¶
type ExtensionBatchItem = internal.ExtensionBatchItem
type ExtensionBatchRequest ¶
type ExtensionBatchRequest = internal.ExtensionBatchRequest
type ExtensionBatchResult ¶
type ExtensionBatchResult = internal.ExtensionBatchResult
type ExtensionRuntime ¶
type ExtensionRuntime = internal.ExtensionRuntime
type ExtensionTool ¶
type ExtensionTool = internal.ExtensionTool
type PaginationInfo ¶
type PaginationInfo = internal.PaginationInfo
type TruncationInfo ¶
type TruncationInfo = internal.TruncationInfo
Click to show internal directories.
Click to hide internal directories.