Skip to main content

Crate forge_manifest

Crate forge_manifest 

Source
Expand description

§forge-manifest

Hierarchical capability manifest for the Forgemax Code Mode Gateway.

The manifest is the queryable index of all tools across all connected MCP servers. It lives in the V8 sandbox (not the LLM context window), enabling progressive discovery without consuming tokens.

§Manifest layers (progressive discovery)

  • Layer 0: Server names + descriptions (~50 tokens returned)
  • Layer 1: Categories per server (~200 tokens returned)
  • Layer 2: Tool list for a category (~500 tokens returned)
  • Layer 3: Full schema for specific tools (~200 tokens per tool)

Re-exports§

pub use live::LiveManifest;

Modules§

live
Lock-free live manifest for dynamic tool discovery.

Structs§

Category
A category grouping related tools within a server.
Manifest
The complete capability manifest across all connected servers.
ManifestBuilder
Builder for constructing manifests.
McpResource
An MCP resource description as returned by resources/list.
McpTool
An MCP tool description as returned by tools/list.
ParamDef
A tool parameter definition.
ResourceEntry
A resource exposed by an MCP server.
ServerBuilder
Builder for constructing server entries.
ServerEntry
A connected MCP server and its capabilities.
ToolEntry
A single tool exposed by an MCP server.

Constants§

FORGE_DTS
TypeScript type definitions for the forge sandbox API.

Functions§

server_entry_from_tools
Build a ServerEntry from raw MCP tools/list responses.
server_entry_from_tools_and_resources
Build a ServerEntry from tools and resources.