Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/awslabs/threat-modeling-mcp-server
/ functions
Functions
448 in github.com/awslabs/threat-modeling-mcp-server
⨍
Functions
448
◇
Types & classes
110
↳
Endpoints
4
↓ 1 callers
Function
perform_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 callers
Function
read_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 callers
Function
remove_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 callers
Function
remove_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 callers
Function
reset_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 callers
Function
reset_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 callers
Function
run_integration_tests
()
tests/test_batch_integration.py:41
↓ 1 callers
Function
scan_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 callers
Function
set_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 callers
Function
set_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 callers
Function
set_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 callers
Function
validate_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 callers
Function
validate_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 callers
Function
validate_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 callers
Function
validate_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
Function
add_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
Function
add_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
Function
add_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
Function
add_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
Function
add_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
Function
add_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
Function
add_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
Function
add_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
Function
add_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
Function
add_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
Function
add_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
Function
add_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
Function
add_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
Function
add_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
Function
add_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
Function
add_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
Function
add_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
Function
add_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
Function
add_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
Function
add_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
Function
add_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
Function
add_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
Function
advance_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
Function
analyze_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
Function
clear_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
Function
clear_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
Function
clear_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
Function
clear_global_state
Clear global state before each test.
tests/test_threat_generator.py:41
Function
clear_state
Clear global state before each test.
tests/test_batch_operations.py:45
Function
clear_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
Function
clear_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
Function
ctx
Create a mock context.
tests/test_batch_operations.py:39
Function
delete_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
Function
delete_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
Function
delete_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
Function
delete_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
Function
delete_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
Function
delete_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
Function
delete_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
Function
delete_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
Function
delete_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
Function
delete_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
Function
delete_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
Function
delete_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
Function
delete_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
Function
delete_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
Function
delete_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
Function
delete_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
Function
delete_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
Function
delete_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
Function
delete_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
Function
delete_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
Function
delete_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
Function
delete_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
Function
execute_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
Function
execute_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
Function
export_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
Function
export_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
Function
export_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
Function
export_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
Function
extract_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
Function
follow_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
Function
format_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
Function
generate_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
Function
generate_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
Function
get_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
Function
get_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
Function
get_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
Function
get_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
Function
get_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
Function
get_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
Function
get_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
Function
get_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
Function
get_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
Function
get_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
Function
get_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
Function
get_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
Function
get_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
Function
get_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
Function
get_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
Function
get_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
Function
get_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
Function
get_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
Function
get_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
← previous
next →
101–200 of 448, ranked by callers