mitmproxy-mcp MCP Server

extract_json_fields

Extract specific fields from JSON content in a flow using JSONPath expressions

Input Schema

NameRequiredDescriptionDefault
content_typeYesWhether to extract from request or response content
flow_indexYesThe index of the flow
json_pathsYesJSONPath expressions to extract (e.g. ['$.data.users', '$.metadata.timestamp'])
session_idYesThe ID of the session

Input Schema (JSON Schema)

{ "properties": { "content_type": { "description": "Whether to extract from request or response content", "enum": [ "request", "response" ], "type": "string" }, "flow_index": { "description": "The index of the flow", "type": "integer" }, "json_paths": { "description": "JSONPath expressions to extract (e.g. ['$.data.users', '$.metadata.timestamp'])", "items": { "type": "string" }, "type": "array" }, "session_id": { "description": "The ID of the session", "type": "string" } }, "required": [ "session_id", "flow_index", "content_type", "json_paths" ], "type": "object" }