Skip to main content

Module schema_exposure

Module schema_exposure 

Source
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§

CodeModeExposurePolicy
Code Mode exposure policy.
DerivationMetadata
Metadata about schema derivation.
DerivationStats
Statistics about schema derivation.
DerivedSchema
Derived schema for a specific exposure context.
FilteredOperation
An operation that was filtered during derivation.
GlobalBlocklist
Global blocklist - these operations are never exposed.
McpExposurePolicy
Complete exposure policy configuration.
MethodExposurePolicy
Per-method-type exposure policy.
Operation
Normalized operation model that works across all schema formats.
OperationParameter
Operation parameter.
SchemaDeriver
Derives schemas from source + policy.
SchemaMetadata
Metadata about the source schema.
ToolExposurePolicy
Tool exposure policy.
ToolOverride
Per-operation customization for tools.

Enums§

ExposureMode
Exposure mode determines how allowlist/blocklist are interpreted.
FilterReason
Why an operation was filtered.
GraphQLOperationType
GraphQL operation type.
OperationCategory
Operation category for filtering.
OperationDetails
Format-specific operation details.
OperationRiskLevel
Risk level for an operation.
SchemaFormat
Schema format identifier.
SchemaSource
Where the schema came from.
SqlStatementType
SQL statement type.

Functions§

pattern_matches
Check if a pattern matches a string using glob-style wildcards. Supports: * (match any characters)