Expand description
Schema Exposure Architecture for MCP Built-in Servers.
This module implements the Three-Layer Schema Model:
- Layer 1: Source Schema (original API specification)
- Layer 2: Exposure Policies (what gets exposed)
- Layer 3: Derived Schemas (computed views)
See SCHEMA_EXPOSURE_ARCHITECTURE.md for full design documentation.
Structs§
- Code
Mode Exposure Policy - Code Mode exposure policy.
- Derivation
Metadata - Metadata about schema derivation.
- Derivation
Stats - Statistics about schema derivation.
- Derived
Schema - Derived schema for a specific exposure context.
- Filtered
Operation - An operation that was filtered during derivation.
- Global
Blocklist - Global blocklist - these operations are never exposed.
- McpExposure
Policy - Complete exposure policy configuration.
- Method
Exposure Policy - Per-method-type exposure policy.
- Operation
- Normalized operation model that works across all schema formats.
- Operation
Parameter - Operation parameter.
- Schema
Deriver - Derives schemas from source + policy.
- Schema
Metadata - Metadata about the source schema.
- Tool
Exposure Policy - Tool exposure policy.
- Tool
Override - Per-operation customization for tools.
Enums§
- Exposure
Mode - Exposure mode determines how allowlist/blocklist are interpreted.
- Filter
Reason - Why an operation was filtered.
- GraphQL
Operation Type - GraphQL operation type.
- Operation
Category - Operation category for filtering.
- Operation
Details - Format-specific operation details.
- Operation
Risk Level - Risk level for an operation.
- Schema
Format - Schema format identifier.
- Schema
Source - Where the schema came from.
- SqlStatement
Type - SQL statement type.
Functions§
- pattern_
matches - Check if a pattern matches a string using glob-style wildcards. Supports: * (match any characters)