apiadapter

command
v0.0.0-...-7c75ef6 Latest Latest
Warning

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

Go to latest
Published: Nov 27, 2026 License: Apache-2.0 Imports: 10 Imported by: 0 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

Command apiadapter is ap-api-adapter: a declarative HTTP→MCP adapter. It reads an API config from AP_SIDECAR_CONFIG, serves one MCP tool per configured operation over Streamable-HTTP, and executes each call against the upstream API with one injected credential.

It runs no user code: the config is data, never a script. See pkg/tools/apiadapter for the engine (config parsing, param binding, SSRF-guarded HTTP client) this binary wraps.

server.go turns one apiadapter.Config into an MCP tool surface: one tool per configured operation, its schema derived from the operation's own params, and a call routed straight through the engine (Task 1, pkg/tools/apiadapter) to the upstream API. This file never reads an environment variable — main.go owns the env contract and hands this Server an already-parsed Config and an already-resolved credential.

Jump to

Keyboard shortcuts

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