Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/PaloAltoNetworks/pan-mcp-relay
/ functions
Functions
304 in github.com/PaloAltoNetworks/pan-mcp-relay
⨍
Functions
304
◇
Types & classes
45
↳
Endpoints
28
Function
failing_tool
Create tool that intentionally fails or throws exceptions.
tests/test_tool_registry.py:107
Function
fixed_response_tool
Create tool that returns fixed preset results.
tests/test_tool_registry.py:80
Function
format_env_help
Format Click Option Help Text
src/pan_mcp_relay/main.py:147
Method
generate_aliases
(self, field_name: str)
src/pan_mcp_relay/configuration.py:58
Function
get_app_dir
()
src/pan_mcp_relay/utils.py:73
Function
handle_streamable_http
MCP Streamable HTTP Request Handler
src/pan_mcp_relay/server/server.py:118
Function
http_server_lifespan
Context manager for session manager.
src/pan_mcp_relay/server/server.py:123
Function
json_schema
Print Configuration File JSON Schema, optionally to a file.
src/pan_mcp_relay/main.py:389
Function
mock_config
Fixture for McpRelayConfig.
tests/test_pan_security_relay.py:35
Function
mock_echo_tool
Create mock echo tool that returns input.
tests/test_downstream_mcp_client.py:75
Function
mock_error_all_tool
Create mock tool that always returns errors.
tests/test_downstream_mcp_client.py:89
Function
mock_external_tools_list
Create list of all external simulated tools for testing.
tests/test_downstream_mcp_client.py:187
Function
mock_failing_tool
Create mock tool that intentionally fails or throws exceptions.
tests/test_downstream_mcp_client.py:162
Function
mock_fixed_response_tool
Create mock tool that returns fixed preset results.
tests/test_downstream_mcp_client.py:124
Function
mock_mcp_servers_config
Fixture for mcp_servers_config.
tests/test_pan_security_relay.py:44
Function
mock_passthrough_tool
Create mock tool that does nothing and returns directly.
tests/test_downstream_mcp_client.py:149
Function
mock_slow_response_tool
Create mock latency simulator tool.
tests/test_downstream_mcp_client.py:102
Method
model_post_init
Post-initialization hook for tool registry.
src/pan_mcp_relay/tool_registry.py:59
Method
model_post_init
(self, context: Any)
src/pan_mcp_relay/configuration.py:141
Method
model_post_init
(self, context: Any)
src/pan_mcp_relay/configuration.py:184
Method
model_post_init
(self, context: Any)
src/pan_mcp_relay/configuration.py:285
Method
model_post_init
(self, context: Any, /)
src/pan_mcp_relay/configuration.py:329
Method
model_post_init
(self, context: Any, /)
src/pan_mcp_relay/tool.py:62
Method
model_post_init
(self, context: Any, /)
src/pan_mcp_relay/security_scanner.py:84
Function
passthrough_tool
Create tool that does nothing and returns directly.
tests/test_tool_registry.py:95
Function
performance_server_config
Create performance test server configuration.
tests/test_downstream_mcp_client.py:59
Function
relay
Fixture for PanSecurityRelay instance.
tests/test_pan_security_relay.py:53
Function
run_http_server
Run the server using StreamableHTTP transport.
src/pan_mcp_relay/server/server.py:55
Function
run_server
Run the MCP Relay Server.
src/pan_mcp_relay/main.py:349
Function
run_stdio_server
Run the server with stdio transport.
src/pan_mcp_relay/server/server.py:40
Function
sample_tool_list
Create list of sample tools for testing.
tests/test_tool_registry.py:122
Method
server_lifespan
Manage server startup and shutdown lifecycle.
src/pan_mcp_relay/pan_security_relay.py:151
Method
set_type_if_missing
(cls, data: Any)
src/pan_mcp_relay/configuration.py:166
Function
show_config
Print MCP Relay Configuration and exit.
src/pan_mcp_relay/main.py:360
Function
side_effect
(*args, **kwargs)
tests/test_downstream_mcp_client.py:759
Function
signal_handler
(scope: anyio.CancelScope)
src/pan_mcp_relay/main.py:434
Function
slow_response_tool
Create latency simulator tool.
tests/test_tool_registry.py:65
Function
slow_response_tool_data
Create slow_response_tool data for relay testing.
tests/test_tool.py:421
Function
sse_server_config
Create SSE server configuration for testing.
tests/test_downstream_mcp_client.py:69
Function
test_all_external_tool_types_with_same_data
Test that all tool types can be created with compatible external tool data.
tests/test_tool.py:610
Function
test_api_rate_limit_error
Test api rate limit error
tests/test_security_scanner.py:271
Function
test_base_tool_creation_full_echo_tool
Test BaseTool creation with all fields for comprehensive echo tool.
tests/test_tool.py:82
Function
test_base_tool_creation_minimal_echo_tool
Test BaseTool creation with minimal required fields for basic echo tool.
tests/test_tool.py:66
Function
test_base_tool_extra_fields_allowed
Test that BaseTool allows extra fields for extensibility.
tests/test_tool.py:213
Function
test_base_tool_field_validation_for_state
Test field type validation for tool state.
tests/test_tool.py:227
Function
test_base_tool_inheritance_from_mcp_tool
Test that BaseTool properly inherits from types.Tool.
tests/test_tool.py:240
Function
test_base_tool_validation_missing_server_info
Test BaseTool validation with missing required server information.
tests/test_tool.py:203
Function
test_base_tool_with_annotations
Test BaseTool with tool annotations.
tests/test_tool.py:109
Function
test_base_tool_with_different_states
Test BaseTool creation with different tool states for compliance.
tests/test_tool.py:93
Method
test_call_tool_not_found
Test calling a tool that does not exist.
tests/test_pan_security_relay.py:189
Method
test_call_tool_security_block
Test a tool call blocked by security scan.
tests/test_pan_security_relay.py:200
Method
test_call_tool_success
Test a successful tool call.
tests/test_pan_security_relay.py:165
Function
test_check_initialized_when_session_exists
Test _check_initialized when server session exists.
tests/test_downstream_mcp_client.py:650
Function
test_check_initialized_when_session_none
Test _check_initialized when server session is None.
tests/test_downstream_mcp_client.py:659
Function
test_cleanup_server_connection
Test cleanup of server connection resources.
tests/test_downstream_mcp_client.py:668
Function
test_cleanup_server_with_exception
Test cleanup handling exceptions during server cleanup.
tests/test_downstream_mcp_client.py:684
Function
test_clear_registry
Test clearing the registry.
tests/test_tool_registry.py:517
Function
test_clear_registry_logging
Test that clear registry logs information.
tests/test_tool_registry.py:538
Function
test_concurrent_cleanup_calls
Test concurrent cleanup calls using cleanup lock.
tests/test_downstream_mcp_client.py:700
Function
test_concurrent_updates_scenario
Test scenario with multiple registry updates.
tests/test_tool_registry.py:621
Method
test_config__model_post_init__when_too_many_servers__raises_error
Tests that McpRelayConfigurationError is raised if server count exceeds the limit.
tests/test_configuration.py:320
Method
test_config__with_discriminated_union__parses_server_types_correctly
Tests that server types are correctly discriminated without an explicit 'type' field.
tests/test_configuration.py:297
Method
test_config__with_empty_data__creates_default_config
Tests that an empty Config object has a default mcp_relay config.
tests/test_configuration.py:256
Method
test_config__with_full_data__parses_correctly
Tests parsing of a full configuration structure.
tests/test_configuration.py:265
Function
test_contains_operator
Test __contains__ operator for registry.
tests/test_tool_registry.py:557
Function
test_downstream_mcp_client_initialization
Test DownstreamMcpClient initialization with test server configuration.
tests/test_downstream_mcp_client.py:206
Function
test_downstream_mcp_client_initialization_logging
Test that client initialization logs configuration information.
tests/test_downstream_mcp_client.py:229
Function
test_downstream_mcp_client_initialization_sse
Test DownstreamMcpClient initialization with SSE server configuration.
tests/test_downstream_mcp_client.py:217
Function
test_error_all_tool_scenario
Test error_all_tool that always returns errors.
tests/test_downstream_mcp_client.py:816
Function
test_execute_tool_echo_success
Test successful execution of echo tool.
tests/test_downstream_mcp_client.py:412
Function
test_execute_tool_fixed_response_success
Test successful execution of fixed response tool.
tests/test_downstream_mcp_client.py:446
Function
test_execute_tool_server_error_with_retry
Test tool execution error handling with retry mechanism.
tests/test_downstream_mcp_client.py:523
Function
test_execute_tool_server_not_initialized
Test tool execution when server is not initialized.
tests/test_downstream_mcp_client.py:507
Function
test_execute_tool_slow_response_success
Test successful execution of slow response tool.
tests/test_downstream_mcp_client.py:478
Function
test_external_server_complete_workflow
Test complete workflow with external server from initialization to tool execution.
tests/test_downstream_mcp_client.py:716
Function
test_external_tool_complex_workflow_simulation
Test complex workflow with multiple external tools.
tests/test_tool.py:1013
Function
test_external_tool_concurrent_access_simulation
Test external tool behavior under simulated concurrent access.
tests/test_tool.py:1242
Function
test_external_tool_conversion_compatibility_for_integration
Test compatibility between different tool types for integration.
tests/test_tool.py:643
Function
test_external_tool_cross_server_compatibility
Test external tool compatibility across different servers.
tests/test_tool.py:986
Function
test_external_tool_edge_cases_handling
Test external tool handling of edge cases.
tests/test_tool.py:891
Function
test_external_tool_error_recovery
Test error recovery scenarios for external tools.
tests/test_tool.py:1171
Function
test_external_tool_hash_collision_resistance
Test hash collision resistance for external tools.
tests/test_tool.py:1195
Function
test_external_tool_inheritance_chain_for_distributed_systems
Test the inheritance chain of tool classes for distributed systems.
tests/test_tool.py:704
Function
test_external_tool_internationalization_support
Test external tool support for international characters and formats.
tests/test_tool.py:1303
Function
test_external_tool_memory_efficiency
Test memory efficiency with many external tool instances.
tests/test_tool.py:1214
Function
test_external_tool_performance_with_large_schemas
Test external tool performance with large input schemas.
tests/test_tool.py:853
Function
test_external_tool_schema_validation
Test input schema validation for external tools.
tests/test_tool.py:1148
Function
test_external_tool_serialization_and_deserialization_for_storage
Test tool serialization and deserialization for database storage.
tests/test_tool.py:673
Function
test_external_tool_serialization_edge_cases
Test serialization edge cases for external tools.
tests/test_tool.py:1270
Function
test_external_tool_special_characters_handling
Test external tool handling of special characters in various fields.
tests/test_tool.py:919
Function
test_external_tool_state_transitions
Test external tool state transitions and validation.
tests/test_tool.py:949
Function
test_external_tool_validation_scenarios
Test various validation scenarios for external tools.
tests/test_tool.py:1108
Function
test_external_tool_workflow_scenario
Test complete workflow scenario with external tools.
tests/test_tool.py:732
Method
test_extract_text_content
Test the extract_text_content helper function.
tests/test_pan_security_relay.py:211
Function
test_extract_text_content_direct_string_data
Test text extraction from direct string data.
tests/test_downstream_mcp_client.py:640
Function
test_extract_text_content_list_of_responses
Test text extraction from list of response content.
tests/test_downstream_mcp_client.py:586
Function
test_extract_text_content_mcp_embedded_resource
Test text extraction from MCP EmbeddedResource.
tests/test_downstream_mcp_client.py:569
Function
test_extract_text_content_mcp_text_content
Test text extraction from MCP TextContent.
tests/test_downstream_mcp_client.py:552
Function
test_extract_text_content_object_with_input_value_attribute
Test text extraction from object with input_value attribute.
tests/test_downstream_mcp_client.py:625
Function
test_extract_text_content_object_with_text_attribute
Test text extraction from object with text attribute.
tests/test_downstream_mcp_client.py:610
← previous
next →
101–200 of 304, ranked by callers