Interface McpOrBuilder
- All Superinterfaces:
com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder
- All Known Implementing Classes:
Mcp,Mcp.Builder
public interface McpOrBuilder
extends com.google.protobuf.MessageOrBuilder
-
Method Summary
Modifier and TypeMethodDescriptionbooleanWhen set to true, the filter will clear the route cache after setting dynamic metadata.com.google.protobuf.UInt32ValueMaximum size of the request body to buffer for JSON-RPC validation.com.google.protobuf.UInt32ValueOrBuilderMaximum size of the request body to buffer for JSON-RPC validation.Parser configuration, this provide the attribute extraction override.Parser configuration, this provide the attribute extraction override.Configures how the filter handles non-MCP traffic.intConfigures how the filter handles non-MCP traffic.booleanMaximum size of the request body to buffer for JSON-RPC validation.booleanParser configuration, this provide the attribute extraction override.Methods inherited from interface com.google.protobuf.MessageLiteOrBuilder
isInitializedMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDefaultInstanceForType, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getTrafficModeValue
int getTrafficModeValue()Configures how the filter handles non-MCP traffic.
.envoy.extensions.filters.http.mcp.v3.Mcp.TrafficMode traffic_mode = 1 [(.validate.rules) = { ... }- Returns:
- The enum numeric value on the wire for trafficMode.
-
getTrafficMode
Mcp.TrafficMode getTrafficMode()Configures how the filter handles non-MCP traffic.
.envoy.extensions.filters.http.mcp.v3.Mcp.TrafficMode traffic_mode = 1 [(.validate.rules) = { ... }- Returns:
- The trafficMode.
-
getClearRouteCache
boolean getClearRouteCache()When set to true, the filter will clear the route cache after setting dynamic metadata. This allows the route to be re-selected based on the MCP metadata (e.g., method, params). Defaults to false.
bool clear_route_cache = 2;- Returns:
- The clearRouteCache.
-
hasMaxRequestBodySize
boolean hasMaxRequestBodySize()Maximum size of the request body to buffer for JSON-RPC validation. If the request body exceeds this size, the request is rejected with ``413 Payload Too Large``. This limit applies to both ``REJECT_NO_MCP`` and ``PASS_THROUGH`` modes to prevent unbounded buffering. It defaults to 8KB (8192 bytes) and the maximum allowed value is 10MB (10485760 bytes). Setting it to 0 would disable the limit. It is not recommended to do so in production.
.google.protobuf.UInt32Value max_request_body_size = 3 [(.validate.rules) = { ... }- Returns:
- Whether the maxRequestBodySize field is set.
-
getMaxRequestBodySize
com.google.protobuf.UInt32Value getMaxRequestBodySize()Maximum size of the request body to buffer for JSON-RPC validation. If the request body exceeds this size, the request is rejected with ``413 Payload Too Large``. This limit applies to both ``REJECT_NO_MCP`` and ``PASS_THROUGH`` modes to prevent unbounded buffering. It defaults to 8KB (8192 bytes) and the maximum allowed value is 10MB (10485760 bytes). Setting it to 0 would disable the limit. It is not recommended to do so in production.
.google.protobuf.UInt32Value max_request_body_size = 3 [(.validate.rules) = { ... }- Returns:
- The maxRequestBodySize.
-
getMaxRequestBodySizeOrBuilder
com.google.protobuf.UInt32ValueOrBuilder getMaxRequestBodySizeOrBuilder()Maximum size of the request body to buffer for JSON-RPC validation. If the request body exceeds this size, the request is rejected with ``413 Payload Too Large``. This limit applies to both ``REJECT_NO_MCP`` and ``PASS_THROUGH`` modes to prevent unbounded buffering. It defaults to 8KB (8192 bytes) and the maximum allowed value is 10MB (10485760 bytes). Setting it to 0 would disable the limit. It is not recommended to do so in production.
.google.protobuf.UInt32Value max_request_body_size = 3 [(.validate.rules) = { ... } -
hasParserConfig
boolean hasParserConfig()Parser configuration, this provide the attribute extraction override.
.envoy.extensions.filters.http.mcp.v3.ParserConfig parser_config = 4;- Returns:
- Whether the parserConfig field is set.
-
getParserConfig
ParserConfig getParserConfig()Parser configuration, this provide the attribute extraction override.
.envoy.extensions.filters.http.mcp.v3.ParserConfig parser_config = 4;- Returns:
- The parserConfig.
-
getParserConfigOrBuilder
ParserConfigOrBuilder getParserConfigOrBuilder()Parser configuration, this provide the attribute extraction override.
.envoy.extensions.filters.http.mcp.v3.ParserConfig parser_config = 4;
-