Directories
¶
| Path | Synopsis |
|---|---|
|
cmd
|
|
|
plugit
command
Command plugit turns a REST API spec into a curated, safe MCP server.
|
Command plugit turns a REST API spec into a curated, safe MCP server. |
|
internal
|
|
|
cli
Package cli holds the thin cobra command handlers for the plugit binary.
|
Package cli holds the thin cobra command handlers for the plugit binary. |
|
clients
Package clients installs PlugIt into MCP client configs (SPEC T13): JSON files edited in place (Claude Desktop, Cursor, VS Code, Windsurf, Gemini CLI, LM Studio) and clients that own their config and are driven through their CLI (Claude Code, Codex).
|
Package clients installs PlugIt into MCP client configs (SPEC T13): JSON files edited in place (Claude Desktop, Cursor, VS Code, Windsurf, Gemini CLI, LM Studio) and clients that own their config and are driven through their CLI (Claude Code, Codex). |
|
config
Package config owns PlugIt's on-disk layout and files: platform config paths, API directory names, owner-only atomic writes, plugit.yaml loading and validation (SPEC §3.6), and the manifest.json parse cache.
|
Package config owns PlugIt's on-disk layout and files: platform config paths, API directory names, owner-only atomic writes, plugit.yaml loading and validation (SPEC §3.6), and the manifest.json parse cache. |
|
curate
Package curate turns a parsed manifest and a toolset from plugit.yaml into the active toolset: which tools are served, under which names and descriptions, with which per-tool policy.
|
Package curate turns a parsed manifest and a toolset from plugit.yaml into the active toolset: which tools are served, under which names and descriptions, with which per-tool policy. |
|
httpx
Package httpx provides PlugIt's hardened HTTP client (SPEC §5.3: T8, T9, T12).
|
Package httpx provides PlugIt's hardened HTTP client (SPEC §5.3: T8, T9, T12). |
|
isolate
Package isolate runs spec parsing in a child process (SPEC §5.3, T2).
|
Package isolate runs spec parsing in a child process (SPEC §5.3, T2). |
|
jsonpick
Package jsonpick keeps selected fields of a JSON value (SPEC M6 design note: response field filtering).
|
Package jsonpick keeps selected fields of a JSON value (SPEC M6 design note: response field filtering). |
|
lint
Package lint checks an API's toolsets for quality and safety problems (SPEC 4, rules L001-L019).
|
Package lint checks an API's toolsets for quality and safety problems (SPEC 4, rules L001-L019). |
|
mcpserver
Package mcpserver serves tools over MCP (SPEC §3.7).
|
Package mcpserver serves tools over MCP (SPEC §3.7). |
|
model
Package model is PlugIt's canonical intermediate representation of an API (SPEC §3.4).
|
Package model is PlugIt's canonical intermediate representation of an API (SPEC §3.4). |
|
naming
Package naming turns operations into MCP tool names, IDs and descriptions (SPEC §3.5 rules 1 and 2).
|
Package naming turns operations into MCP tool names, IDs and descriptions (SPEC §3.5 rules 1 and 2). |
|
oauth
Package oauth gets OAuth 2.0 access tokens for an API (SPEC M6 design note: OAuth2): the client credentials grant, and the device authorization grant (RFC 8628) whose refresh token is kept by a Store (the OS keyring).
|
Package oauth gets OAuth 2.0 access tokens for an API (SPEC M6 design note: OAuth2): the client credentials grant, and the device authorization grant (RFC 8628) whose refresh token is kept by a Store (the OS keyring). |
|
openapi
Package openapi turns an OpenAPI 3.0/3.1 or Swagger 2.0 document into a model.Manifest (SPEC §3.4, §3.5).
|
Package openapi turns an OpenAPI 3.0/3.1 or Swagger 2.0 document into a model.Manifest (SPEC §3.4, §3.5). |
|
policy
Package policy decides whether a tool call may run (SPEC §3.7 step 2, T5).
|
Package policy decides whether a tool call may run (SPEC §3.7 step 2, T5). |
|
proxy
Package proxy turns validated tool arguments into an HTTP request and the upstream response into a tool result (SPEC §3.7 steps 5-8).
|
Package proxy turns validated tool arguments into an HTTP request and the upstream response into a tool result (SPEC §3.7 steps 5-8). |
|
redact
Package redact masks secrets before anything derived from a request or response reaches logs, the TUI or an error result.
|
Package redact masks secrets before anything derived from a request or response reaches logs, the TUI or an error result. |
|
schema
Package schema turns a tool's raw parameters and body into the argument set the model sees, and builds the MCP input schema from it (SPEC §3.5 rules 3, 6 and 7).
|
Package schema turns a tool's raw parameters and body into the argument set the model sees, and builds the MCP input schema from it (SPEC §3.5 rules 3, 6 and 7). |
|
secrets
Package secrets parses and resolves value references (SPEC §3.6, T10):
|
Package secrets parses and resolves value references (SPEC §3.6, T10): |
|
spec
Package spec loads raw API spec bytes from a file or an http(s) URL, with size and time limits (SPEC §5.3, T2).
|
Package spec loads raw API spec bytes from a file or an http(s) URL, with size and time limits (SPEC §5.3, T2). |
|
store
Package store is PlugIt's call log (SPEC §3.6 data/plugit.db, §3.7 step 9): one row of redacted metadata per tool call, kept for the API's log.retention, read by `plugit logs` and `plugit stats`.
|
Package store is PlugIt's call log (SPEC §3.6 data/plugit.db, §3.7 step 9): one row of redacted metadata per tool call, kept for the API's log.retention, read by `plugit logs` and `plugit stats`. |
|
tokens
Package tokens estimates how many tokens a toolset costs in the model's context (SPEC §10 Q2: a calibrated heuristic).
|
Package tokens estimates how many tokens a toolset costs in the model's context (SPEC §10 Q2: a calibrated heuristic). |
|
tui
Package tui holds PlugIt's terminal screens (SPEC §2.3), built on Bubble Tea.
|
Package tui holds PlugIt's terminal screens (SPEC §2.3), built on Bubble Tea. |
Click to show internal directories.
Click to hide internal directories.
