apimcp

package
v0.1.0-beta.2 Latest Latest
Warning

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

Go to latest
Published: Sep 1, 2026 License: MIT Imports: 5 Imported by: 0

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

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

func RunKeychainCommand(args []string, stdin *os.File, output io.Writer) error

RunKeychainCommand runs the user-interactive Keychain enrollment command.

func RunStdio

func RunStdio(ctx context.Context, cfg Config, extensions ...ExtensionTool) error

RunStdio creates the server and serves it over the MCP stdio transport.

Types

type APIProfile

type APIProfile = internal.APIProfile

type APIResponse

type APIResponse = internal.APIResponse

type Config

type Config = internal.Config

func LoadConfigFromArgs

func LoadConfigFromArgs(args []string) (Config, error)

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 ToolInput

type ToolInput = internal.ToolInput

type TruncationInfo

type TruncationInfo = internal.TruncationInfo

Jump to

Keyboard shortcuts

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