MCPcopy Create free account

hub / github.com/awslabs/threat-modeling-mcp-server / functions

Functions448 in github.com/awslabs/threat-modeling-mcp-server

↓ 1 callersFunctionperform_threat_model_validation
Perform threat model validation against code. This function is designed to be called both from the MCP tool and internally by other compo
threat_modeling_mcp_server/tools/threat_model_validator.py:187
↓ 1 callersFunctionread_code_files
Read code files from a directory. Args: directory: Directory to read files from file_patterns: Optional list of file patterns
threat_modeling_mcp_server/tools/threat_model_validator.py:19
↓ 1 callersFunctionremove_component_from_zone_impl
Remove a component from a trust zone. Args: ctx: MCP context for logging and error handling zone_id: ID of the trust zone
threat_modeling_mcp_server/tools/trust_boundary_analyzer.py:302
↓ 1 callersFunctionremove_connection_from_crossing_point_impl
Remove a connection from a crossing point. Args: ctx: MCP context for logging and error handling crossing_point_id: ID of the
threat_modeling_mcp_server/tools/trust_boundary_analyzer.py:654
↓ 1 callersFunctionreset_asset_flows_impl
Reset assets and flows to the default set. Args: ctx: MCP context for logging and error handling Returns: A conf
threat_modeling_mcp_server/tools/asset_flow_analyzer.py:865
↓ 1 callersFunctionreset_threat_actors_impl
Reset the threat actors to the default set. Args: ctx: MCP context for logging and error handling Returns: A con
threat_modeling_mcp_server/tools/threat_actor_analyzer.py:494
↓ 1 callersFunctionrun_integration_tests
()
tests/test_batch_integration.py:41
↓ 1 callersFunctionscan_code_for_security_controls
Generate prompts for LLM to analyze code files for security controls. Args: code_files: Dictionary mapping file paths to file content
threat_modeling_mcp_server/tools/code_security_validator.py:214
↓ 1 callersFunctionset_business_context_with_features_impl
Set the business context description and all features in one call. Args: ctx: MCP context for logging and error handling desc
threat_modeling_mcp_server/tools/business_context.py:292
↓ 1 callersFunctionset_threat_actor_priority_impl
Set the priority of a threat actor. Args: ctx: MCP context for logging and error handling id: ID of the threat actor
threat_modeling_mcp_server/tools/threat_actor_analyzer.py:326
↓ 1 callersFunctionset_threat_actor_relevance_impl
Set the relevance of a threat actor. Args: ctx: MCP context for logging and error handling id: ID of the threat actor
threat_modeling_mcp_server/tools/threat_actor_analyzer.py:297
↓ 1 callersFunctionvalidate_business_context_completeness_impl
Validate that all business context features are set before proceeding to next phase. Args: ctx: MCP context for logging and error han
threat_modeling_mcp_server/tools/business_context.py:536
↓ 1 callersFunctionvalidate_code_security
Generate prompts for LLM to validate code security. Args: code_files: Dictionary mapping file paths to file content threats:
threat_modeling_mcp_server/tools/code_security_validator.py:304
↓ 1 callersFunctionvalidate_instructions_against_tools
Validate that instructions match registered tools. Args: instructions: The instructions string modules: List of tool modules
threat_modeling_mcp_server/validation/instruction_validator.py:65
↓ 1 callersFunctionvalidate_server_instructions
Validate that all tools are properly documented in instructions. Args: mcp: The MCP server instance to validate. Returns
threat_modeling_mcp_server/server.py:199
Method__init__
(self)
threat_modeling_mcp_server/utils/state_collector.py:20
Functionadd_asset
Add a new asset to the system. Supports batch operations via the 'items' parameter. This tool adds one or more assets to the system.
threat_modeling_mcp_server/tools/asset_flow_analyzer.py:897
Functionadd_assumption
Add a new assumption to the threat model. Supports batch operations via the 'items' parameter. Assumptions are statements that we accept as t
threat_modeling_mcp_server/tools/assumption_manager.py:195
Functionadd_component
Add a new component to the architecture. Supports batch operations via the 'items' parameter. This tool adds one or more components to the sy
threat_modeling_mcp_server/tools/architecture_analyzer.py:803
Functionadd_component_to_zone
Add a component to a trust zone. Supports batch operations via the 'items' parameter. This tool adds one or more components to trust zones in
threat_modeling_mcp_server/tools/trust_boundary_analyzer.py:1421
Functionadd_component_to_zone_impl
Add a component to a trust zone. Args: ctx: MCP context for logging and error handling zone_id: ID of the trust zone
threat_modeling_mcp_server/tools/trust_boundary_analyzer.py:267
Functionadd_conn_to_crossing
Add a connection to a crossing point. Supports batch operations via the 'items' parameter. This tool adds one or more connections to crossing
threat_modeling_mcp_server/tools/trust_boundary_analyzer.py:1602
Functionadd_connection
Add a new connection to the architecture. Supports batch operations via the 'items' parameter. This tool adds one or more connections between
threat_modeling_mcp_server/tools/architecture_analyzer.py:925
Functionadd_connection_impl
Add a new connection to the architecture. Args: ctx: MCP context for logging and error handling source_id: ID of the source c
threat_modeling_mcp_server/tools/architecture_analyzer.py:219
Functionadd_connection_to_crossing_point_impl
Add a connection to a crossing point. Args: ctx: MCP context for logging and error handling crossing_point_id: ID of the cros
threat_modeling_mcp_server/tools/trust_boundary_analyzer.py:624
Functionadd_crossing_point
Add a new crossing point. Supports batch operations via the 'items' parameter. This tool adds one or more crossing points between trust zones
threat_modeling_mcp_server/tools/trust_boundary_analyzer.py:1470
Functionadd_crossing_point_impl
Add a new crossing point. Args: ctx: MCP context for logging and error handling source_zone_id: ID of the source trust zone
threat_modeling_mcp_server/tools/trust_boundary_analyzer.py:336
Functionadd_data_store
Add a new data store to the architecture. Supports batch operations via the 'items' parameter. This tool adds one or more data stores to the
threat_modeling_mcp_server/tools/architecture_analyzer.py:1043
Functionadd_data_store_impl
Add a new data store to the architecture. Args: ctx: MCP context for logging and error handling name: Name of the data store
threat_modeling_mcp_server/tools/architecture_analyzer.py:417
Functionadd_flow
Add a new asset flow to the system. Supports batch operations via the 'items' parameter. This tool adds one or more asset flows to the system
threat_modeling_mcp_server/tools/asset_flow_analyzer.py:1049
Functionadd_flow_impl
Add a new asset flow to the system. Args: ctx: MCP context for logging and error handling asset_id: ID of the asset being tra
threat_modeling_mcp_server/tools/asset_flow_analyzer.py:298
Functionadd_mitigation
Add a new mitigation to the model. Supports batch operations via the 'items' parameter. This tool adds one or more mitigations to the threat
threat_modeling_mcp_server/tools/threat_generator.py:820
Functionadd_threat
Add a new threat to the model. Supports batch operations via the 'items' parameter. This tool adds one or more threats to the threat model.
threat_modeling_mcp_server/tools/threat_generator.py:656
Functionadd_threat_actor
Add a new threat actor. Supports batch operations via the 'items' parameter. This tool adds one or more threat actors to the threat model.
threat_modeling_mcp_server/tools/threat_actor_analyzer.py:543
Functionadd_threat_actor_impl
Add a new threat actor. Args: ctx: MCP context for logging and error handling name: Name of the threat actor type: Ty
threat_modeling_mcp_server/tools/threat_actor_analyzer.py:27
Functionadd_trust_boundary
Add a new trust boundary. Supports batch operations via the 'items' parameter. This tool adds one or more trust boundaries to the system arch
threat_modeling_mcp_server/tools/trust_boundary_analyzer.py:1651
Functionadd_trust_boundary_impl
Add a new trust boundary. Args: ctx: MCP context for logging and error handling name: Name of the trust boundary type
threat_modeling_mcp_server/tools/trust_boundary_analyzer.py:688
Functionadd_trust_zone
Add a new trust zone. Supports batch operations via the 'items' parameter. This tool adds one or more trust zones to the system architecture.
threat_modeling_mcp_server/tools/trust_boundary_analyzer.py:1301
Functionadvance_phase
Advance to the next phase of the threat modeling process. This tool advances to the next phase of the threat modeling process. Args:
threat_modeling_mcp_server/tools/step_orchestrator.py:940
Functionanalyze_threat_actors
Analyze the threat actors. This tool analyzes the threat actors in the threat model and provides recommendations. Args:
threat_modeling_mcp_server/tools/threat_actor_analyzer.py:733
Functionclear_architecture
Clear the architecture. This tool clears all components, connections, and data stores from the architecture. Args: ctx:
threat_modeling_mcp_server/tools/architecture_analyzer.py:1178
Functionclear_asset_flows
Clear all assets and flows from the system. This tool clears all assets and flows from the system. Args: ctx: MCP contex
threat_modeling_mcp_server/tools/asset_flow_analyzer.py:1232
Functionclear_business_context
Clear the business context. This tool clears the business context, description, and clarification questions. Args: ctx:
threat_modeling_mcp_server/tools/business_context.py:647
Functionclear_global_state
Clear global state before each test.
tests/test_threat_generator.py:41
Functionclear_state
Clear global state before each test.
tests/test_batch_operations.py:45
Functionclear_threat_actors
Clear all threat actors. This tool clears all threat actors from the threat model. Args: ctx: MCP context for logging an
threat_modeling_mcp_server/tools/threat_actor_analyzer.py:765
Functionclear_trust_boundaries
Clear all trust boundaries. This tool clears all trust boundaries, crossing points, and trust zones from the system architecture. Ar
threat_modeling_mcp_server/tools/trust_boundary_analyzer.py:1798
Functionctx
Create a mock context.
tests/test_batch_operations.py:39
Functiondelete_asset
Delete an asset from the system. Supports batch operations via the 'ids' parameter. This tool deletes one or more assets from the system. Ass
threat_modeling_mcp_server/tools/asset_flow_analyzer.py:1027
Functiondelete_asset_impl
Delete an asset from the system. Args: ctx: MCP context for logging and error handling id: ID of the asset to delete
threat_modeling_mcp_server/tools/asset_flow_analyzer.py:267
Functiondelete_assumption
Delete an assumption from the threat model. Supports batch operations via the 'ids' parameter. For single item: provide the id directly.
threat_modeling_mcp_server/tools/assumption_manager.py:293
Functiondelete_assumption_impl
Delete an assumption from the threat model. Args: ctx: MCP context for logging and error handling id: ID of the assumption to del
threat_modeling_mcp_server/tools/assumption_manager.py:164
Functiondelete_component
Delete a component from the architecture. Supports batch operations via the 'ids' parameter. This tool deletes one or more components from th
threat_modeling_mcp_server/tools/architecture_analyzer.py:903
Functiondelete_component_impl
Delete a component from the architecture. Args: ctx: MCP context for logging and error handling id: ID of the component to de
threat_modeling_mcp_server/tools/architecture_analyzer.py:187
Functiondelete_connection
Delete a connection from the architecture. Supports batch operations via the 'ids' parameter. This tool deletes one or more connections from
threat_modeling_mcp_server/tools/architecture_analyzer.py:1021
Functiondelete_connection_impl
Delete a connection from the architecture. Args: ctx: MCP context for logging and error handling id: ID of the connection to
threat_modeling_mcp_server/tools/architecture_analyzer.py:390
Functiondelete_crossing_point
Delete a crossing point. Supports batch operations via the 'ids' parameter. This tool deletes one or more crossing points from the system arc
threat_modeling_mcp_server/tools/trust_boundary_analyzer.py:1580
Functiondelete_crossing_point_impl
Delete a crossing point. Args: ctx: MCP context for logging and error handling id: ID of the crossing point to delete
threat_modeling_mcp_server/tools/trust_boundary_analyzer.py:587
Functiondelete_data_store
Delete a data store from the architecture. Supports batch operations via the 'ids' parameter. This tool deletes one or more data stores from
threat_modeling_mcp_server/tools/architecture_analyzer.py:1139
Functiondelete_data_store_impl
Delete a data store from the architecture. Args: ctx: MCP context for logging and error handling id: ID of the data store to
threat_modeling_mcp_server/tools/architecture_analyzer.py:569
Functiondelete_flow
Delete an asset flow from the system. Supports batch operations via the 'ids' parameter. This tool deletes one or more asset flows from the s
threat_modeling_mcp_server/tools/asset_flow_analyzer.py:1193
Functiondelete_flow_impl
Delete an asset flow from the system. Args: ctx: MCP context for logging and error handling id: ID of the flow to delete
threat_modeling_mcp_server/tools/asset_flow_analyzer.py:599
Functiondelete_mitigation
Delete a mitigation from the model. Supports batch operations via the 'ids' parameter. This tool deletes one or more mitigations from the thr
threat_modeling_mcp_server/tools/threat_generator.py:940
Functiondelete_threat
Delete a threat from the model. Supports batch operations via the 'ids' parameter. This tool deletes one or more threats from the threat mode
threat_modeling_mcp_server/tools/threat_generator.py:798
Functiondelete_threat_actor
Delete a threat actor. Supports batch operations via the 'ids' parameter. This tool deletes one or more threat actors from the threat model.
threat_modeling_mcp_server/tools/threat_actor_analyzer.py:671
Functiondelete_threat_actor_impl
Delete a threat actor. Args: ctx: MCP context for logging and error handling id: ID of the threat actor to delete
threat_modeling_mcp_server/tools/threat_actor_analyzer.py:270
Functiondelete_trust_boundary
Delete a trust boundary. Supports batch operations via the 'ids' parameter. This tool deletes one or more trust boundaries from the system ar
threat_modeling_mcp_server/tools/trust_boundary_analyzer.py:1759
Functiondelete_trust_boundary_impl
Delete a trust boundary. Args: ctx: MCP context for logging and error handling id: ID of the trust boundary to delete
threat_modeling_mcp_server/tools/trust_boundary_analyzer.py:923
Functiondelete_trust_zone
Delete a trust zone. Supports batch operations via the 'ids' parameter. This tool deletes one or more trust zones from the system architectur
threat_modeling_mcp_server/tools/trust_boundary_analyzer.py:1399
Functiondelete_trust_zone_impl
Delete a trust zone. Args: ctx: MCP context for logging and error handling id: ID of the trust zone to delete Re
threat_modeling_mcp_server/tools/trust_boundary_analyzer.py:230
Functionexecute_code_validation_step
Execute the complete code validation step (Phase 7.5) automatically. This tool automates the code validation step, analyzing the codebase to
threat_modeling_mcp_server/tools/step_orchestrator.py:861
Functionexecute_final_export_step
Execute the complete final export step (Phase 9) automatically. This tool automates the final export step, generating all required documentat
threat_modeling_mcp_server/tools/step_orchestrator.py:877
Functionexport_comprehensive_threat_model
Export comprehensive threat model with all global variables to Threat Composer JSON format. This tool exports the complete threat model inclu
threat_modeling_mcp_server/tools/threat_generator.py:1003
Functionexport_comprehensive_threat_model_markdown
Export comprehensive threat model to markdown format. Args: output_path: Path to save the exported threat model Returns:
threat_modeling_mcp_server/utils/comprehensive_exporter.py:430
Functionexport_comprehensive_threat_model_with_extended_data
Export comprehensive threat model with all extended data to a separate file. This function creates a separate export with all the extended da
threat_modeling_mcp_server/utils/comprehensive_exporter.py:834
Functionexport_threat_model_with_remediation_status
Export the threat model with remediation status. This tool exports the threat model with information about which threats are already
threat_modeling_mcp_server/tools/threat_model_validator.py:313
Functionextract_enum_class_from_annotation
Extract the enum class from a type annotation. Args: field_type: The field type annotation Returns: The enum cla
threat_modeling_mcp_server/validation/enum_validator.py:71
Functionfollow_threat_modeling_plan
Follow the threat modeling plan. This tool guides the user through the threat modeling process step by step, following the plan gener
threat_modeling_mcp_server/tools/step_orchestrator.py:909
Functionformat_remediation_report_markdown
Format a remediation report as markdown. Args: report: The remediation report threats: List of threats for reference
threat_modeling_mcp_server/tools/threat_model_validator.py:123
Functiongenerate_remediation_report
Generate a prompt for LLM to create a comprehensive remediation report. This tool generates a prompt for LLM to create a report showing which
threat_modeling_mcp_server/tools/code_security_validator.py:499
Functiongenerate_remediation_report_from_results
Generate a remediation report from validation results. Args: threats: List of identified threats mitigations: List of propose
threat_modeling_mcp_server/tools/threat_model_validator.py:49
Functionget_architecture_analysis_plan
Get a comprehensive architecture analysis plan. This tool returns a detailed plan for analyzing system architecture for security concerns
threat_modeling_mcp_server/tools/architecture_analyzer.py:1161
Functionget_asset
Get details about a specific asset. This tool retrieves details about a specific asset in the system. Args: ctx: MCP con
threat_modeling_mcp_server/tools/asset_flow_analyzer.py:1009
Functionget_asset_flow_analysis_plan
Get a comprehensive asset flow analysis plan. This tool returns a detailed plan for analyzing asset flows for security concerns using
threat_modeling_mcp_server/tools/asset_flow_analyzer.py:1215
Functionget_assumption
Get details about a specific assumption. Args: ctx: MCP context for logging and error handling id: ID of the assumpti
threat_modeling_mcp_server/tools/assumption_manager.py:244
Functionget_business_context
Get the business context. This tool returns the business context created from the answers to the clarification questions. Args:
threat_modeling_mcp_server/tools/business_context.py:631
Functionget_business_context_features
Get all business context features with descriptions. This tool returns all available features of the business context with descriptions of wh
threat_modeling_mcp_server/tools/business_context.py:663
Functionget_crossing_point
Get details about a specific crossing point. This tool retrieves details about a specific crossing point in the system architecture.
threat_modeling_mcp_server/tools/trust_boundary_analyzer.py:1562
Functionget_data_model_types
Get available types for a data model. This tool returns the available types for a specified data model. Args: ctx: MCP c
threat_modeling_mcp_server/tools/data_model_types.py:112
Functionget_flow
Get details about a specific asset flow. This tool retrieves details about a specific asset flow in the system. Args: ct
threat_modeling_mcp_server/tools/asset_flow_analyzer.py:1175
Functionget_mitigation
Get details about a specific mitigation. This tool retrieves details about a specific mitigation in the threat model. Args:
threat_modeling_mcp_server/tools/threat_generator.py:880
Functionget_phase_1_guidance
Get detailed guidance for Phase 1: Business Context Analysis. This tool provides step-by-step guidance for conducting business context analys
threat_modeling_mcp_server/tools/step_orchestrator.py:669
Functionget_phase_2_guidance
Get detailed guidance for Phase 2: Architecture Analysis. This tool provides step-by-step guidance for conducting architecture analysis,
threat_modeling_mcp_server/tools/step_orchestrator.py:685
Functionget_phase_3_guidance
Get detailed guidance for Phase 3: Threat Actor Analysis. This tool provides step-by-step guidance for conducting threat actor analysis,
threat_modeling_mcp_server/tools/step_orchestrator.py:701
Functionget_phase_4_guidance
Get detailed guidance for Phase 4: Trust Boundary Analysis. This tool provides step-by-step guidance for conducting trust boundary analysis,
threat_modeling_mcp_server/tools/step_orchestrator.py:717
Functionget_phase_5_guidance
Get detailed guidance for Phase 5: Asset Flow Analysis. This tool provides step-by-step guidance for conducting asset flow analysis,
threat_modeling_mcp_server/tools/step_orchestrator.py:733
Functionget_phase_6_guidance
Get detailed guidance for Phase 6: Threat Identification. This tool provides step-by-step guidance for conducting threat identification,
threat_modeling_mcp_server/tools/step_orchestrator.py:749
Functionget_phase_7_5_guidance
Get detailed guidance for Phase 7.5: Code Validation Analysis. This tool provides step-by-step guidance for conducting code validation analys
threat_modeling_mcp_server/tools/step_orchestrator.py:813
Functionget_phase_7_guidance
Get detailed guidance for Phase 7: Mitigation Planning. This tool provides step-by-step guidance for conducting mitigation planning,
threat_modeling_mcp_server/tools/step_orchestrator.py:765
Functionget_phase_8_guidance
Get detailed guidance for Phase 8: Residual Risk Analysis. This tool provides step-by-step guidance for conducting residual risk analysis,
threat_modeling_mcp_server/tools/step_orchestrator.py:829
← previousnext →101–200 of 448, ranked by callers