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
Method
test_create_minimal_threat
Test creating a threat with minimal required fields.
tests/test_models.py:43
Method
test_create_mitigation_link
Test creating a mitigation link.
tests/test_models.py:240
Method
test_create_mitigation_with_all_fields
Test creating a mitigation with all fields populated.
tests/test_models.py:169
Method
test_create_threat_model_with_data
Test creating a threat model with data.
tests/test_models.py:261
Method
test_create_threat_with_all_fields
Test creating a threat with all fields populated.
tests/test_models.py:60
Method
test_data_store_type_case_insensitive
Test that data store type accepts case-insensitive values.
tests/test_models.py:396
Method
test_delete_existing_threat
Test deleting an existing threat.
tests/test_threat_generator.py:311
Method
test_delete_mitigation_removes_links
Test that deleting a mitigation removes associated links.
tests/test_threat_generator.py:636
Method
test_delete_nonexistent_threat
Test deleting a non-existent threat.
tests/test_threat_generator.py:327
Method
test_delete_threat_removes_links
Test that deleting a threat removes associated links.
tests/test_threat_generator.py:604
Method
test_detect_completion_does_not_raise
Test that detect_phase_completion doesn't raise errors.
tests/test_step_orchestrator.py:178
Method
test_discovered_classes_are_enum_subclasses
Test that all discovered classes are Enum subclasses.
tests/test_enum_validator.py:109
Method
test_discovers_component_type_enum
Test that ComponentType enum is discovered.
tests/test_enum_validator.py:99
Method
test_discovers_service_provider_enum
Test that ServiceProvider enum is discovered.
tests/test_enum_validator.py:104
Method
test_discovers_threat_category_enum
Test that ThreatCategory enum is discovered.
tests/test_enum_validator.py:89
Method
test_discovers_threat_severity_enum
Test that ThreatSeverity enum is discovered.
tests/test_enum_validator.py:94
Method
test_error_includes_enum_class_name
Test that error message includes the enum class name.
tests/test_enum_validator.py:80
Method
test_error_includes_invalid_value
Test that error message includes the invalid value.
tests/test_enum_validator.py:75
Method
test_error_message_includes_field_name
Test that error message includes the field name.
tests/test_enum_validator.py:58
Method
test_error_message_without_field_name
Test that error message works without field name.
tests/test_enum_validator.py:64
Method
test_exact_match_returns_enum_member
Test that exact value match returns the enum member.
tests/test_enum_validator.py:24
Method
test_get_common_mitigations_returns_dict
Test that get_common_mitigations returns a dictionary.
tests/test_models.py:463
Method
test_get_common_threats_returns_dict
Test that get_common_threats returns a dictionary.
tests/test_models.py:433
Method
test_get_existing_threat
Test getting an existing threat.
tests/test_threat_generator.py:285
Method
test_get_nonexistent_threat
Test getting a non-existent threat.
tests/test_threat_generator.py:301
Method
test_guidance_includes_markdown_headers
Test that guidance includes markdown headers.
tests/test_step_orchestrator.py:275
Method
test_initial_overall_completion_is_low
Test that initial overall completion is low (0.0 to 0.1).
tests/test_step_orchestrator.py:137
Method
test_invalid_value_raises_value_error
Test that invalid value raises ValueError.
tests/test_enum_validator.py:49
Method
test_link_duplicate_returns_already_linked
Test that linking the same mitigation twice returns already linked message.
tests/test_threat_generator.py:475
Method
test_link_mitigation_to_threat
Test linking a mitigation to a threat.
tests/test_threat_generator.py:445
Method
test_link_nonexistent_mitigation
Test linking a non-existent mitigation.
tests/test_threat_generator.py:507
Method
test_link_nonexistent_threat
Test linking to a non-existent threat.
tests/test_threat_generator.py:526
Method
test_list_all_mitigations
Test listing all mitigations.
tests/test_threat_generator.py:426
Method
test_list_all_threats
Test listing all threats.
tests/test_threat_generator.py:237
Method
test_list_empty_mitigations
Test listing when no mitigations exist.
tests/test_threat_generator.py:420
Method
test_list_empty_threats
Test listing when no threats exist.
tests/test_threat_generator.py:231
Method
test_list_threats_filter_by_category
Test filtering threats by category.
tests/test_threat_generator.py:258
Method
test_mitigation_entries_have_required_fields
Test that mitigation entries have required fields.
tests/test_models.py:479
Method
test_mitigation_invalid_type_raises_error
Test that invalid type raises validation error.
tests/test_models.py:204
Method
test_mitigation_status_case_insensitive
Test that mitigation status accepts case-insensitive values.
tests/test_models.py:193
Method
test_mitigation_status_values
Test MitigationStatus enum values are returned correctly.
tests/test_enum_validator.py:136
Method
test_mitigation_type_values
Test that MitigationType has expected values.
tests/test_models.py:508
Method
test_none_value_returns_none
Test that None value returns None without error.
tests/test_enum_validator.py:44
Method
test_phase_1_complete_when_context_set
Test that phase 1 is marked complete when business context is set.
tests/test_step_orchestrator.py:187
Method
test_phase_1_guidance_contains_next_steps
Test that phase 1 guidance contains next steps.
tests/test_step_orchestrator.py:67
Method
test_phase_1_guidance_contains_objectives
Test that phase 1 guidance contains objectives.
tests/test_step_orchestrator.py:55
Method
test_phase_1_guidance_contains_tools
Test that phase 1 guidance contains tools to use.
tests/test_step_orchestrator.py:61
Method
test_phase_1_is_business_context
Test that phase 1 is Business Context Analysis.
tests/test_step_orchestrator.py:35
Method
test_phase_2_complete_when_components_exist
Test that phase 2 is marked complete when components exist.
tests/test_step_orchestrator.py:206
Method
test_phase_2_guidance_contains_architecture_info
Test that phase 2 guidance contains architecture information.
tests/test_step_orchestrator.py:73
Method
test_phase_6_complete_when_threats_exist
Test that phase 6 is marked complete when threats exist.
tests/test_step_orchestrator.py:222
Method
test_phase_6_guidance_contains_stride
Test that phase 6 guidance mentions STRIDE.
tests/test_step_orchestrator.py:79
Method
test_phase_6_is_threat_identification
Test that phase 6 is Threat Identification.
tests/test_step_orchestrator.py:39
Method
test_phase_7_5_guidance_contains_code_validation
Test that phase 7.5 guidance contains code validation info.
tests/test_step_orchestrator.py:91
Method
test_phase_7_5_is_code_validation
Test that phase 7.5 is Code Validation Analysis.
tests/test_step_orchestrator.py:43
Method
test_phase_7_complete_when_mitigations_linked
Test that phase 7 is marked complete when mitigations are linked.
tests/test_step_orchestrator.py:238
Method
test_phase_7_guidance_contains_mitigation_info
Test that phase 7 guidance contains mitigation information.
tests/test_step_orchestrator.py:85
Method
test_phase_9_guidance_contains_export_info
Test that phase 9 guidance contains export information.
tests/test_step_orchestrator.py:97
Method
test_phase_9_is_output_generation
Test that phase 9 is Output Generation.
tests/test_step_orchestrator.py:47
Method
test_phases_contains_all_phases
Test that PHASES dictionary contains all expected phases.
tests/test_step_orchestrator.py:29
Method
test_phases_in_status_have_name_and_completion
Test that each phase in status has name and completion.
tests/test_step_orchestrator.py:130
Method
test_returns_empty_for_unknown_enum
Test that empty list is returned for unknown enum class.
tests/test_enum_validator.py:125
Method
test_returns_first_phase_when_all_incomplete
Test that function returns phase 1 when all phases are incomplete.
tests/test_step_orchestrator.py:147
Method
test_returns_last_phase_when_all_complete
Test that function returns last phase when all are complete.
tests/test_step_orchestrator.py:166
Method
test_returns_next_incomplete_phase
Test that function returns next incomplete phase.
tests/test_step_orchestrator.py:152
Method
test_returns_phase_after_multiple_complete
Test that function returns correct phase after multiple complete.
tests/test_step_orchestrator.py:158
Method
test_returns_values_for_known_enum
Test that values are returned for a known enum class.
tests/test_enum_validator.py:119
Method
test_single_item_mode
Single item mode still works (backwards compat).
tests/test_batch_operations.py:67
Method
test_single_item_mode
Single item update still works.
tests/test_batch_operations.py:118
Method
test_single_item_mode
Single item delete still works.
tests/test_batch_operations.py:147
Method
test_status_contains_completion_info
Test that status contains completion information.
tests/test_step_orchestrator.py:118
Method
test_status_contains_current_phase
Test that status contains current phase information.
tests/test_step_orchestrator.py:112
Method
test_status_contains_phases_dict
Test that status contains phases dictionary.
tests/test_step_orchestrator.py:124
Method
test_threat_category_stride_values
Test that ThreatCategory includes all STRIDE categories.
tests/test_models.py:492
Method
test_threat_category_validation
Test threat category enum validation.
tests/test_models.py:104
Method
test_threat_entries_have_required_fields
Test that threat entries have required fields.
tests/test_models.py:450
Method
test_threat_invalid_category_raises_error
Test that invalid category raises validation error.
tests/test_models.py:119
Method
test_threat_optional_fields_default_to_none
Test that optional fields default to None or empty lists.
tests/test_models.py:134
Method
test_threat_severity_levels
Test that ThreatSeverity has expected levels.
tests/test_models.py:501
Method
test_threat_status_validation_case_insensitive
Test that threat status accepts case-insensitive values.
tests/test_models.py:89
Method
test_threat_status_values
Test ThreatStatus enum values are returned correctly.
tests/test_enum_validator.py:130
Method
test_unknown_phase_returns_no_guidance_message
Test that unknown phase returns appropriate message.
tests/test_step_orchestrator.py:103
Method
test_unlink_mitigation_from_threat
Test unlinking a mitigation from a threat.
tests/test_threat_generator.py:542
Method
test_unlink_nonexistent_link
Test unlinking when no link exists.
tests/test_threat_generator.py:575
Method
test_update_mitigation_content
Test updating mitigation content.
tests/test_threat_generator.py:383
Method
test_update_mitigation_status
Test updating mitigation status.
tests/test_threat_generator.py:400
Method
test_update_nonexistent_threat
Test updating a non-existent threat.
tests/test_threat_generator.py:198
Method
test_update_threat_source
Test updating threat source.
tests/test_threat_generator.py:159
Method
test_update_threat_status
Test updating threat status.
tests/test_threat_generator.py:179
Method
test_update_threat_updates_statement
Test that updating threat components updates the statement.
tests/test_threat_generator.py:208
Method
test_whitespace_trimming
Test that whitespace is trimmed from input.
tests/test_enum_validator.py:39
Function
unlink_mitigation_from_threat
Unlink a mitigation from a threat. This tool unlinks a mitigation from a threat in the threat model. Args: ctx: MCP cont
threat_modeling_mcp_server/tools/threat_generator.py:982
Function
update_asset
Update an existing asset. Supports batch operations via the 'items' parameter. This tool updates one or more existing assets in the system.
threat_modeling_mcp_server/tools/asset_flow_analyzer.py:942
Function
update_asset_impl
Update an existing asset. Args: ctx: MCP context for logging and error handling id: ID of the asset to update name: N
threat_modeling_mcp_server/tools/asset_flow_analyzer.py:78
Function
update_assumption
Update an existing assumption. Supports batch operations via the 'items' parameter. For single item: provide id and fields to update directly
threat_modeling_mcp_server/tools/assumption_manager.py:260
Function
update_assumption_impl
Update an existing assumption. Args: ctx: MCP context for logging and error handling id: ID of the assumption to update d
threat_modeling_mcp_server/tools/assumption_manager.py:120
Function
update_component
Update an existing component in the architecture. Supports batch operations via the 'items' parameter. This tool updates one or more existing
threat_modeling_mcp_server/tools/architecture_analyzer.py:843
Function
update_component_impl
Update an existing component in the architecture. Args: ctx: MCP context for logging and error handling id: ID of the compone
threat_modeling_mcp_server/tools/architecture_analyzer.py:75
Function
update_connection
Update an existing connection in the architecture. Supports batch operations via the 'items' parameter. This tool updates one or more existin
threat_modeling_mcp_server/tools/architecture_analyzer.py:963
Function
update_connection_impl
Update an existing connection in the architecture. Args: ctx: MCP context for logging and error handling id: ID of the connec
threat_modeling_mcp_server/tools/architecture_analyzer.py:274
← previous
next →
301–400 of 448, ranked by callers