MCPcopy Create free account

hub / github.com/PaloAltoNetworks/pan-mcp-relay / functions

Functions304 in github.com/PaloAltoNetworks/pan-mcp-relay

Functionfailing_tool
Create tool that intentionally fails or throws exceptions.
tests/test_tool_registry.py:107
Functionfixed_response_tool
Create tool that returns fixed preset results.
tests/test_tool_registry.py:80
Functionformat_env_help
Format Click Option Help Text
src/pan_mcp_relay/main.py:147
Methodgenerate_aliases
(self, field_name: str)
src/pan_mcp_relay/configuration.py:58
Functionget_app_dir
()
src/pan_mcp_relay/utils.py:73
Functionhandle_streamable_http
MCP Streamable HTTP Request Handler
src/pan_mcp_relay/server/server.py:118
Functionhttp_server_lifespan
Context manager for session manager.
src/pan_mcp_relay/server/server.py:123
Functionjson_schema
Print Configuration File JSON Schema, optionally to a file.
src/pan_mcp_relay/main.py:389
Functionmock_config
Fixture for McpRelayConfig.
tests/test_pan_security_relay.py:35
Functionmock_echo_tool
Create mock echo tool that returns input.
tests/test_downstream_mcp_client.py:75
Functionmock_error_all_tool
Create mock tool that always returns errors.
tests/test_downstream_mcp_client.py:89
Functionmock_external_tools_list
Create list of all external simulated tools for testing.
tests/test_downstream_mcp_client.py:187
Functionmock_failing_tool
Create mock tool that intentionally fails or throws exceptions.
tests/test_downstream_mcp_client.py:162
Functionmock_fixed_response_tool
Create mock tool that returns fixed preset results.
tests/test_downstream_mcp_client.py:124
Functionmock_mcp_servers_config
Fixture for mcp_servers_config.
tests/test_pan_security_relay.py:44
Functionmock_passthrough_tool
Create mock tool that does nothing and returns directly.
tests/test_downstream_mcp_client.py:149
Functionmock_slow_response_tool
Create mock latency simulator tool.
tests/test_downstream_mcp_client.py:102
Methodmodel_post_init
Post-initialization hook for tool registry.
src/pan_mcp_relay/tool_registry.py:59
Methodmodel_post_init
(self, context: Any)
src/pan_mcp_relay/configuration.py:141
Methodmodel_post_init
(self, context: Any)
src/pan_mcp_relay/configuration.py:184
Methodmodel_post_init
(self, context: Any)
src/pan_mcp_relay/configuration.py:285
Methodmodel_post_init
(self, context: Any, /)
src/pan_mcp_relay/configuration.py:329
Methodmodel_post_init
(self, context: Any, /)
src/pan_mcp_relay/tool.py:62
Methodmodel_post_init
(self, context: Any, /)
src/pan_mcp_relay/security_scanner.py:84
Functionpassthrough_tool
Create tool that does nothing and returns directly.
tests/test_tool_registry.py:95
Functionperformance_server_config
Create performance test server configuration.
tests/test_downstream_mcp_client.py:59
Functionrelay
Fixture for PanSecurityRelay instance.
tests/test_pan_security_relay.py:53
Functionrun_http_server
Run the server using StreamableHTTP transport.
src/pan_mcp_relay/server/server.py:55
Functionrun_server
Run the MCP Relay Server.
src/pan_mcp_relay/main.py:349
Functionrun_stdio_server
Run the server with stdio transport.
src/pan_mcp_relay/server/server.py:40
Functionsample_tool_list
Create list of sample tools for testing.
tests/test_tool_registry.py:122
Methodserver_lifespan
Manage server startup and shutdown lifecycle.
src/pan_mcp_relay/pan_security_relay.py:151
Methodset_type_if_missing
(cls, data: Any)
src/pan_mcp_relay/configuration.py:166
Functionshow_config
Print MCP Relay Configuration and exit.
src/pan_mcp_relay/main.py:360
Functionside_effect
(*args, **kwargs)
tests/test_downstream_mcp_client.py:759
Functionsignal_handler
(scope: anyio.CancelScope)
src/pan_mcp_relay/main.py:434
Functionslow_response_tool
Create latency simulator tool.
tests/test_tool_registry.py:65
Functionslow_response_tool_data
Create slow_response_tool data for relay testing.
tests/test_tool.py:421
Functionsse_server_config
Create SSE server configuration for testing.
tests/test_downstream_mcp_client.py:69
Functiontest_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
Functiontest_api_rate_limit_error
Test api rate limit error
tests/test_security_scanner.py:271
Functiontest_base_tool_creation_full_echo_tool
Test BaseTool creation with all fields for comprehensive echo tool.
tests/test_tool.py:82
Functiontest_base_tool_creation_minimal_echo_tool
Test BaseTool creation with minimal required fields for basic echo tool.
tests/test_tool.py:66
Functiontest_base_tool_extra_fields_allowed
Test that BaseTool allows extra fields for extensibility.
tests/test_tool.py:213
Functiontest_base_tool_field_validation_for_state
Test field type validation for tool state.
tests/test_tool.py:227
Functiontest_base_tool_inheritance_from_mcp_tool
Test that BaseTool properly inherits from types.Tool.
tests/test_tool.py:240
Functiontest_base_tool_validation_missing_server_info
Test BaseTool validation with missing required server information.
tests/test_tool.py:203
Functiontest_base_tool_with_annotations
Test BaseTool with tool annotations.
tests/test_tool.py:109
Functiontest_base_tool_with_different_states
Test BaseTool creation with different tool states for compliance.
tests/test_tool.py:93
Methodtest_call_tool_not_found
Test calling a tool that does not exist.
tests/test_pan_security_relay.py:189
Methodtest_call_tool_security_block
Test a tool call blocked by security scan.
tests/test_pan_security_relay.py:200
Methodtest_call_tool_success
Test a successful tool call.
tests/test_pan_security_relay.py:165
Functiontest_check_initialized_when_session_exists
Test _check_initialized when server session exists.
tests/test_downstream_mcp_client.py:650
Functiontest_check_initialized_when_session_none
Test _check_initialized when server session is None.
tests/test_downstream_mcp_client.py:659
Functiontest_cleanup_server_connection
Test cleanup of server connection resources.
tests/test_downstream_mcp_client.py:668
Functiontest_cleanup_server_with_exception
Test cleanup handling exceptions during server cleanup.
tests/test_downstream_mcp_client.py:684
Functiontest_clear_registry
Test clearing the registry.
tests/test_tool_registry.py:517
Functiontest_clear_registry_logging
Test that clear registry logs information.
tests/test_tool_registry.py:538
Functiontest_concurrent_cleanup_calls
Test concurrent cleanup calls using cleanup lock.
tests/test_downstream_mcp_client.py:700
Functiontest_concurrent_updates_scenario
Test scenario with multiple registry updates.
tests/test_tool_registry.py:621
Methodtest_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
Methodtest_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
Methodtest_config__with_empty_data__creates_default_config
Tests that an empty Config object has a default mcp_relay config.
tests/test_configuration.py:256
Methodtest_config__with_full_data__parses_correctly
Tests parsing of a full configuration structure.
tests/test_configuration.py:265
Functiontest_contains_operator
Test __contains__ operator for registry.
tests/test_tool_registry.py:557
Functiontest_downstream_mcp_client_initialization
Test DownstreamMcpClient initialization with test server configuration.
tests/test_downstream_mcp_client.py:206
Functiontest_downstream_mcp_client_initialization_logging
Test that client initialization logs configuration information.
tests/test_downstream_mcp_client.py:229
Functiontest_downstream_mcp_client_initialization_sse
Test DownstreamMcpClient initialization with SSE server configuration.
tests/test_downstream_mcp_client.py:217
Functiontest_error_all_tool_scenario
Test error_all_tool that always returns errors.
tests/test_downstream_mcp_client.py:816
Functiontest_execute_tool_echo_success
Test successful execution of echo tool.
tests/test_downstream_mcp_client.py:412
Functiontest_execute_tool_fixed_response_success
Test successful execution of fixed response tool.
tests/test_downstream_mcp_client.py:446
Functiontest_execute_tool_server_error_with_retry
Test tool execution error handling with retry mechanism.
tests/test_downstream_mcp_client.py:523
Functiontest_execute_tool_server_not_initialized
Test tool execution when server is not initialized.
tests/test_downstream_mcp_client.py:507
Functiontest_execute_tool_slow_response_success
Test successful execution of slow response tool.
tests/test_downstream_mcp_client.py:478
Functiontest_external_server_complete_workflow
Test complete workflow with external server from initialization to tool execution.
tests/test_downstream_mcp_client.py:716
Functiontest_external_tool_complex_workflow_simulation
Test complex workflow with multiple external tools.
tests/test_tool.py:1013
Functiontest_external_tool_concurrent_access_simulation
Test external tool behavior under simulated concurrent access.
tests/test_tool.py:1242
Functiontest_external_tool_conversion_compatibility_for_integration
Test compatibility between different tool types for integration.
tests/test_tool.py:643
Functiontest_external_tool_cross_server_compatibility
Test external tool compatibility across different servers.
tests/test_tool.py:986
Functiontest_external_tool_edge_cases_handling
Test external tool handling of edge cases.
tests/test_tool.py:891
Functiontest_external_tool_error_recovery
Test error recovery scenarios for external tools.
tests/test_tool.py:1171
Functiontest_external_tool_hash_collision_resistance
Test hash collision resistance for external tools.
tests/test_tool.py:1195
Functiontest_external_tool_inheritance_chain_for_distributed_systems
Test the inheritance chain of tool classes for distributed systems.
tests/test_tool.py:704
Functiontest_external_tool_internationalization_support
Test external tool support for international characters and formats.
tests/test_tool.py:1303
Functiontest_external_tool_memory_efficiency
Test memory efficiency with many external tool instances.
tests/test_tool.py:1214
Functiontest_external_tool_performance_with_large_schemas
Test external tool performance with large input schemas.
tests/test_tool.py:853
Functiontest_external_tool_schema_validation
Test input schema validation for external tools.
tests/test_tool.py:1148
Functiontest_external_tool_serialization_and_deserialization_for_storage
Test tool serialization and deserialization for database storage.
tests/test_tool.py:673
Functiontest_external_tool_serialization_edge_cases
Test serialization edge cases for external tools.
tests/test_tool.py:1270
Functiontest_external_tool_special_characters_handling
Test external tool handling of special characters in various fields.
tests/test_tool.py:919
Functiontest_external_tool_state_transitions
Test external tool state transitions and validation.
tests/test_tool.py:949
Functiontest_external_tool_validation_scenarios
Test various validation scenarios for external tools.
tests/test_tool.py:1108
Functiontest_external_tool_workflow_scenario
Test complete workflow scenario with external tools.
tests/test_tool.py:732
Methodtest_extract_text_content
Test the extract_text_content helper function.
tests/test_pan_security_relay.py:211
Functiontest_extract_text_content_direct_string_data
Test text extraction from direct string data.
tests/test_downstream_mcp_client.py:640
Functiontest_extract_text_content_list_of_responses
Test text extraction from list of response content.
tests/test_downstream_mcp_client.py:586
Functiontest_extract_text_content_mcp_embedded_resource
Test text extraction from MCP EmbeddedResource.
tests/test_downstream_mcp_client.py:569
Functiontest_extract_text_content_mcp_text_content
Test text extraction from MCP TextContent.
tests/test_downstream_mcp_client.py:552
Functiontest_extract_text_content_object_with_input_value_attribute
Test text extraction from object with input_value attribute.
tests/test_downstream_mcp_client.py:625
Functiontest_extract_text_content_object_with_text_attribute
Test text extraction from object with text attribute.
tests/test_downstream_mcp_client.py:610
← previousnext →101–200 of 304, ranked by callers