switch-trust-mcp 0.1.0__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- switch_trust_mcp-0.1.0/LICENSE +201 -0
- switch_trust_mcp-0.1.0/PKG-INFO +197 -0
- switch_trust_mcp-0.1.0/README.md +164 -0
- switch_trust_mcp-0.1.0/pyproject.toml +84 -0
- switch_trust_mcp-0.1.0/setup.cfg +4 -0
- switch_trust_mcp-0.1.0/src/switch_trust_mcp/__init__.py +18 -0
- switch_trust_mcp-0.1.0/src/switch_trust_mcp/_auth_api/__init__.py +8 -0
- switch_trust_mcp-0.1.0/src/switch_trust_mcp/_auth_api/api/__init__.py +1 -0
- switch_trust_mcp-0.1.0/src/switch_trust_mcp/_auth_api/api/api_keys/__init__.py +1 -0
- switch_trust_mcp-0.1.0/src/switch_trust_mcp/_auth_api/api/api_keys/delete_api_keys_id.py +172 -0
- switch_trust_mcp-0.1.0/src/switch_trust_mcp/_auth_api/api/api_keys/delete_tenants_api_keys_id.py +177 -0
- switch_trust_mcp-0.1.0/src/switch_trust_mcp/_auth_api/api/api_keys/get_api_keys.py +205 -0
- switch_trust_mcp-0.1.0/src/switch_trust_mcp/_auth_api/api/api_keys/get_tenants_api_keys_all.py +195 -0
- switch_trust_mcp-0.1.0/src/switch_trust_mcp/_auth_api/api/api_keys/post_api_keys.py +180 -0
- switch_trust_mcp-0.1.0/src/switch_trust_mcp/_auth_api/api/billing/__init__.py +1 -0
- switch_trust_mcp-0.1.0/src/switch_trust_mcp/_auth_api/api/billing/get_billing_invoices.py +216 -0
- switch_trust_mcp-0.1.0/src/switch_trust_mcp/_auth_api/api/billing/get_billing_payment_method.py +153 -0
- switch_trust_mcp-0.1.0/src/switch_trust_mcp/_auth_api/api/billing/post_billing_checkout.py +148 -0
- switch_trust_mcp-0.1.0/src/switch_trust_mcp/_auth_api/api/billing/post_billing_checkout_confirm.py +161 -0
- switch_trust_mcp-0.1.0/src/switch_trust_mcp/_auth_api/api/billing/post_billing_downgrade.py +195 -0
- switch_trust_mcp-0.1.0/src/switch_trust_mcp/_auth_api/api/billing/post_billing_downgrade_force.py +197 -0
- switch_trust_mcp-0.1.0/src/switch_trust_mcp/_auth_api/api/billing/post_billing_update_payment.py +150 -0
- switch_trust_mcp-0.1.0/src/switch_trust_mcp/_auth_api/api/invitations/__init__.py +1 -0
- switch_trust_mcp-0.1.0/src/switch_trust_mcp/_auth_api/api/invitations/delete_tenants_invitations_id.py +177 -0
- switch_trust_mcp-0.1.0/src/switch_trust_mcp/_auth_api/api/invitations/get_tenants_invitations.py +195 -0
- switch_trust_mcp-0.1.0/src/switch_trust_mcp/_auth_api/api/invitations/post_tenants_invitations.py +180 -0
- switch_trust_mcp-0.1.0/src/switch_trust_mcp/_auth_api/api/invitations/post_tenants_invitations_id_resend.py +177 -0
- switch_trust_mcp-0.1.0/src/switch_trust_mcp/_auth_api/api/members/__init__.py +1 -0
- switch_trust_mcp-0.1.0/src/switch_trust_mcp/_auth_api/api/members/delete_tenants_members_id.py +177 -0
- switch_trust_mcp-0.1.0/src/switch_trust_mcp/_auth_api/api/members/get_tenants_members.py +195 -0
- switch_trust_mcp-0.1.0/src/switch_trust_mcp/_auth_api/api/members/get_tenants_members_id.py +174 -0
- switch_trust_mcp-0.1.0/src/switch_trust_mcp/_auth_api/api/members/get_tenants_users.py +221 -0
- switch_trust_mcp-0.1.0/src/switch_trust_mcp/_auth_api/api/members/patch_tenants_members_id.py +200 -0
- switch_trust_mcp-0.1.0/src/switch_trust_mcp/_auth_api/api/organizations/__init__.py +1 -0
- switch_trust_mcp-0.1.0/src/switch_trust_mcp/_auth_api/api/organizations/get_organizations.py +195 -0
- switch_trust_mcp-0.1.0/src/switch_trust_mcp/_auth_api/api/permissions/__init__.py +1 -0
- switch_trust_mcp-0.1.0/src/switch_trust_mcp/_auth_api/api/permissions/get_permissions.py +133 -0
- switch_trust_mcp-0.1.0/src/switch_trust_mcp/_auth_api/api/tenants/__init__.py +1 -0
- switch_trust_mcp-0.1.0/src/switch_trust_mcp/_auth_api/api/tenants/get_tenants.py +176 -0
- switch_trust_mcp-0.1.0/src/switch_trust_mcp/_auth_api/api/tenants/patch_tenants.py +180 -0
- switch_trust_mcp-0.1.0/src/switch_trust_mcp/_auth_api/api/tenants/post_tenants.py +175 -0
- switch_trust_mcp-0.1.0/src/switch_trust_mcp/_auth_api/client.py +280 -0
- switch_trust_mcp-0.1.0/src/switch_trust_mcp/_auth_api/errors.py +16 -0
- switch_trust_mcp-0.1.0/src/switch_trust_mcp/_auth_api/models/__init__.py +79 -0
- switch_trust_mcp-0.1.0/src/switch_trust_mcp/_auth_api/models/gateway_api_key_info.py +154 -0
- switch_trust_mcp-0.1.0/src/switch_trust_mcp/_auth_api/models/gateway_api_key_result.py +109 -0
- switch_trust_mcp-0.1.0/src/switch_trust_mcp/_auth_api/models/gateway_checkout_response.py +64 -0
- switch_trust_mcp-0.1.0/src/switch_trust_mcp/_auth_api/models/gateway_create_api_key_request.py +82 -0
- switch_trust_mcp-0.1.0/src/switch_trust_mcp/_auth_api/models/gateway_create_invitation_request.py +73 -0
- switch_trust_mcp-0.1.0/src/switch_trust_mcp/_auth_api/models/gateway_create_tenant_body.py +64 -0
- switch_trust_mcp-0.1.0/src/switch_trust_mcp/_auth_api/models/gateway_create_tenant_result.py +64 -0
- switch_trust_mcp-0.1.0/src/switch_trust_mcp/_auth_api/models/gateway_downgrade_body.py +64 -0
- switch_trust_mcp-0.1.0/src/switch_trust_mcp/_auth_api/models/gateway_error_response.py +73 -0
- switch_trust_mcp-0.1.0/src/switch_trust_mcp/_auth_api/models/gateway_force_downgrade_body.py +64 -0
- switch_trust_mcp-0.1.0/src/switch_trust_mcp/_auth_api/models/gateway_force_downgrade_result.py +100 -0
- switch_trust_mcp-0.1.0/src/switch_trust_mcp/_auth_api/models/gateway_invitation.py +118 -0
- switch_trust_mcp-0.1.0/src/switch_trust_mcp/_auth_api/models/gateway_invoice.py +145 -0
- switch_trust_mcp-0.1.0/src/switch_trust_mcp/_auth_api/models/gateway_invoice_list.py +102 -0
- switch_trust_mcp-0.1.0/src/switch_trust_mcp/_auth_api/models/gateway_key_revoke_error.py +73 -0
- switch_trust_mcp-0.1.0/src/switch_trust_mcp/_auth_api/models/gateway_member_role.py +64 -0
- switch_trust_mcp-0.1.0/src/switch_trust_mcp/_auth_api/models/gateway_member_user.py +91 -0
- switch_trust_mcp-0.1.0/src/switch_trust_mcp/_auth_api/models/gateway_membership.py +152 -0
- switch_trust_mcp-0.1.0/src/switch_trust_mcp/_auth_api/models/gateway_paginated_response_gateway_api_key_info.py +111 -0
- switch_trust_mcp-0.1.0/src/switch_trust_mcp/_auth_api/models/gateway_paginated_response_gateway_invitation.py +111 -0
- switch_trust_mcp-0.1.0/src/switch_trust_mcp/_auth_api/models/gateway_paginated_response_gateway_membership.py +111 -0
- switch_trust_mcp-0.1.0/src/switch_trust_mcp/_auth_api/models/gateway_payment_method_info.py +109 -0
- switch_trust_mcp-0.1.0/src/switch_trust_mcp/_auth_api/models/gateway_payment_method_session_response.py +64 -0
- switch_trust_mcp-0.1.0/src/switch_trust_mcp/_auth_api/models/gateway_permissions_response.py +67 -0
- switch_trust_mcp-0.1.0/src/switch_trust_mcp/_auth_api/models/gateway_subscription_plan.py +82 -0
- switch_trust_mcp-0.1.0/src/switch_trust_mcp/_auth_api/models/gateway_tenant_response.py +128 -0
- switch_trust_mcp-0.1.0/src/switch_trust_mcp/_auth_api/models/gateway_tenant_response_metadata.py +48 -0
- switch_trust_mcp-0.1.0/src/switch_trust_mcp/_auth_api/models/gateway_tenant_user.py +144 -0
- switch_trust_mcp-0.1.0/src/switch_trust_mcp/_auth_api/models/gateway_tenant_user_type.py +9 -0
- switch_trust_mcp-0.1.0/src/switch_trust_mcp/_auth_api/models/gateway_update_member_request.py +64 -0
- switch_trust_mcp-0.1.0/src/switch_trust_mcp/_auth_api/models/gateway_update_member_role_result.py +187 -0
- switch_trust_mcp-0.1.0/src/switch_trust_mcp/_auth_api/models/gateway_update_tenant_body.py +64 -0
- switch_trust_mcp-0.1.0/src/switch_trust_mcp/_auth_api/models/gateway_update_tenant_response.py +64 -0
- switch_trust_mcp-0.1.0/src/switch_trust_mcp/_auth_api/models/gateway_users_response.py +129 -0
- switch_trust_mcp-0.1.0/src/switch_trust_mcp/_auth_api/py.typed +1 -0
- switch_trust_mcp-0.1.0/src/switch_trust_mcp/_auth_api/types.py +54 -0
- switch_trust_mcp-0.1.0/src/switch_trust_mcp/_platform_api/__init__.py +8 -0
- switch_trust_mcp-0.1.0/src/switch_trust_mcp/_platform_api/api/__init__.py +1 -0
- switch_trust_mcp-0.1.0/src/switch_trust_mcp/_platform_api/api/aispm_agents/__init__.py +1 -0
- switch_trust_mcp-0.1.0/src/switch_trust_mcp/_platform_api/api/aispm_agents/get_aispm_agent_details.py +202 -0
- switch_trust_mcp-0.1.0/src/switch_trust_mcp/_platform_api/api/aispm_agents/get_aispm_agent_edges.py +217 -0
- switch_trust_mcp-0.1.0/src/switch_trust_mcp/_platform_api/api/aispm_agents/get_all_aispm_agents.py +225 -0
- switch_trust_mcp-0.1.0/src/switch_trust_mcp/_platform_api/api/aispm_guardrails/__init__.py +1 -0
- switch_trust_mcp-0.1.0/src/switch_trust_mcp/_platform_api/api/aispm_guardrails/get_aispm_guardrail_categories.py +224 -0
- switch_trust_mcp-0.1.0/src/switch_trust_mcp/_platform_api/api/aispm_guardrails/get_aispm_guardrail_interaction_counts.py +224 -0
- switch_trust_mcp-0.1.0/src/switch_trust_mcp/_platform_api/api/aispm_guardrails/get_aispm_guardrail_outcomes.py +224 -0
- switch_trust_mcp-0.1.0/src/switch_trust_mcp/_platform_api/api/aispm_llm_interactions/__init__.py +1 -0
- switch_trust_mcp-0.1.0/src/switch_trust_mcp/_platform_api/api/aispm_llm_interactions/get_aispm_llm_interaction_details.py +202 -0
- switch_trust_mcp-0.1.0/src/switch_trust_mcp/_platform_api/api/aispm_llm_interactions/get_all_aispm_llm_interactions.py +188 -0
- switch_trust_mcp-0.1.0/src/switch_trust_mcp/_platform_api/api/aispm_llm_sessions/__init__.py +1 -0
- switch_trust_mcp-0.1.0/src/switch_trust_mcp/_platform_api/api/aispm_llm_sessions/get_aispm_llm_session_detail.py +204 -0
- switch_trust_mcp-0.1.0/src/switch_trust_mcp/_platform_api/api/aispm_llm_sessions/get_aispm_llm_sessions.py +265 -0
- switch_trust_mcp-0.1.0/src/switch_trust_mcp/_platform_api/api/aispm_mcp_servers/__init__.py +1 -0
- switch_trust_mcp-0.1.0/src/switch_trust_mcp/_platform_api/api/aispm_mcp_servers/get_aispm_mcp_server_details.py +204 -0
- switch_trust_mcp-0.1.0/src/switch_trust_mcp/_platform_api/api/aispm_mcp_servers/get_aispm_mcp_server_edges.py +217 -0
- switch_trust_mcp-0.1.0/src/switch_trust_mcp/_platform_api/api/aispm_mcp_servers/get_all_aispm_mcp_servers.py +225 -0
- switch_trust_mcp-0.1.0/src/switch_trust_mcp/_platform_api/api/aispm_models/__init__.py +1 -0
- switch_trust_mcp-0.1.0/src/switch_trust_mcp/_platform_api/api/aispm_models/get_aispm_model_details.py +202 -0
- switch_trust_mcp-0.1.0/src/switch_trust_mcp/_platform_api/api/aispm_models/get_aispm_model_edges.py +217 -0
- switch_trust_mcp-0.1.0/src/switch_trust_mcp/_platform_api/api/aispm_models/get_all_aispm_models.py +225 -0
- switch_trust_mcp-0.1.0/src/switch_trust_mcp/_platform_api/api/aispm_tools/__init__.py +1 -0
- switch_trust_mcp-0.1.0/src/switch_trust_mcp/_platform_api/api/aispm_tools/get_aispm_tool_details.py +202 -0
- switch_trust_mcp-0.1.0/src/switch_trust_mcp/_platform_api/api/aispm_tools/get_aispm_tool_edges.py +217 -0
- switch_trust_mcp-0.1.0/src/switch_trust_mcp/_platform_api/api/aispm_tools/get_all_aispm_tools.py +225 -0
- switch_trust_mcp-0.1.0/src/switch_trust_mcp/_platform_api/api/assets/__init__.py +1 -0
- switch_trust_mcp-0.1.0/src/switch_trust_mcp/_platform_api/api/assets/get_all_assets.py +225 -0
- switch_trust_mcp-0.1.0/src/switch_trust_mcp/_platform_api/api/assets/get_asset_details.py +202 -0
- switch_trust_mcp-0.1.0/src/switch_trust_mcp/_platform_api/api/client_storage/__init__.py +1 -0
- switch_trust_mcp-0.1.0/src/switch_trust_mcp/_platform_api/api/client_storage/delete_client_storage_tenant.py +219 -0
- switch_trust_mcp-0.1.0/src/switch_trust_mcp/_platform_api/api/client_storage/delete_client_storage_tenant_user.py +219 -0
- switch_trust_mcp-0.1.0/src/switch_trust_mcp/_platform_api/api/client_storage/delete_client_storage_tenant_workspace.py +233 -0
- switch_trust_mcp-0.1.0/src/switch_trust_mcp/_platform_api/api/client_storage/delete_client_storage_user.py +200 -0
- switch_trust_mcp-0.1.0/src/switch_trust_mcp/_platform_api/api/client_storage/get_client_storage_tenant.py +221 -0
- switch_trust_mcp-0.1.0/src/switch_trust_mcp/_platform_api/api/client_storage/get_client_storage_tenant_user.py +221 -0
- switch_trust_mcp-0.1.0/src/switch_trust_mcp/_platform_api/api/client_storage/get_client_storage_tenant_workspace.py +235 -0
- switch_trust_mcp-0.1.0/src/switch_trust_mcp/_platform_api/api/client_storage/get_client_storage_user.py +202 -0
- switch_trust_mcp-0.1.0/src/switch_trust_mcp/_platform_api/api/client_storage/put_client_storage_tenant.py +235 -0
- switch_trust_mcp-0.1.0/src/switch_trust_mcp/_platform_api/api/client_storage/put_client_storage_tenant_user.py +235 -0
- switch_trust_mcp-0.1.0/src/switch_trust_mcp/_platform_api/api/client_storage/put_client_storage_tenant_workspace.py +249 -0
- switch_trust_mcp-0.1.0/src/switch_trust_mcp/_platform_api/api/client_storage/put_client_storage_user.py +216 -0
- switch_trust_mcp-0.1.0/src/switch_trust_mcp/_platform_api/api/cost/__init__.py +1 -0
- switch_trust_mcp-0.1.0/src/switch_trust_mcp/_platform_api/api/cost/delete_agent_cost_cap.py +205 -0
- switch_trust_mcp-0.1.0/src/switch_trust_mcp/_platform_api/api/cost/delete_model_pricing.py +205 -0
- switch_trust_mcp-0.1.0/src/switch_trust_mcp/_platform_api/api/cost/get_dashboard_cost_summary.py +183 -0
- switch_trust_mcp-0.1.0/src/switch_trust_mcp/_platform_api/api/cost/list_model_pricing.py +183 -0
- switch_trust_mcp-0.1.0/src/switch_trust_mcp/_platform_api/api/cost/set_agent_cost_cap.py +223 -0
- switch_trust_mcp-0.1.0/src/switch_trust_mcp/_platform_api/api/cost/upsert_model_pricing.py +223 -0
- switch_trust_mcp-0.1.0/src/switch_trust_mcp/_platform_api/api/default/__init__.py +1 -0
- switch_trust_mcp-0.1.0/src/switch_trust_mcp/_platform_api/api/default/get_assets_tenants_tenant_id_workspaces_workspace_id_id_edge.py +216 -0
- switch_trust_mcp-0.1.0/src/switch_trust_mcp/_platform_api/api/eval_/__init__.py +1 -0
- switch_trust_mcp-0.1.0/src/switch_trust_mcp/_platform_api/api/eval_/cancel_evaluation_run.py +210 -0
- switch_trust_mcp-0.1.0/src/switch_trust_mcp/_platform_api/api/eval_/clear_agent_evaluation_run_request.py +205 -0
- switch_trust_mcp-0.1.0/src/switch_trust_mcp/_platform_api/api/eval_/create_agent_evaluation.py +214 -0
- switch_trust_mcp-0.1.0/src/switch_trust_mcp/_platform_api/api/eval_/create_evaluation.py +214 -0
- switch_trust_mcp-0.1.0/src/switch_trust_mcp/_platform_api/api/eval_/delete_agent_endpoint.py +205 -0
- switch_trust_mcp-0.1.0/src/switch_trust_mcp/_platform_api/api/eval_/delete_agent_evaluation.py +205 -0
- switch_trust_mcp-0.1.0/src/switch_trust_mcp/_platform_api/api/eval_/delete_evaluation.py +210 -0
- switch_trust_mcp-0.1.0/src/switch_trust_mcp/_platform_api/api/eval_/get_agent_endpoint.py +207 -0
- switch_trust_mcp-0.1.0/src/switch_trust_mcp/_platform_api/api/eval_/get_agent_evaluation.py +207 -0
- switch_trust_mcp-0.1.0/src/switch_trust_mcp/_platform_api/api/eval_/get_agent_evaluation_summary.py +209 -0
- switch_trust_mcp-0.1.0/src/switch_trust_mcp/_platform_api/api/eval_/get_evaluation.py +207 -0
- switch_trust_mcp-0.1.0/src/switch_trust_mcp/_platform_api/api/eval_/get_evaluation_run.py +207 -0
- switch_trust_mcp-0.1.0/src/switch_trust_mcp/_platform_api/api/eval_/list_agent_evaluations.py +290 -0
- switch_trust_mcp-0.1.0/src/switch_trust_mcp/_platform_api/api/eval_/list_evaluation_run_results.py +266 -0
- switch_trust_mcp-0.1.0/src/switch_trust_mcp/_platform_api/api/eval_/list_evaluation_runs.py +275 -0
- switch_trust_mcp-0.1.0/src/switch_trust_mcp/_platform_api/api/eval_/list_evaluations.py +280 -0
- switch_trust_mcp-0.1.0/src/switch_trust_mcp/_platform_api/api/eval_/trigger_agent_evaluation_run.py +217 -0
- switch_trust_mcp-0.1.0/src/switch_trust_mcp/_platform_api/api/eval_/update_agent_evaluation.py +233 -0
- switch_trust_mcp-0.1.0/src/switch_trust_mcp/_platform_api/api/eval_/update_evaluation.py +238 -0
- switch_trust_mcp-0.1.0/src/switch_trust_mcp/_platform_api/api/eval_/upsert_agent_endpoint.py +228 -0
- switch_trust_mcp-0.1.0/src/switch_trust_mcp/_platform_api/api/fine_issues/__init__.py +1 -0
- switch_trust_mcp-0.1.0/src/switch_trust_mcp/_platform_api/api/fine_issues/get_instance_details_v2.py +204 -0
- switch_trust_mcp-0.1.0/src/switch_trust_mcp/_platform_api/api/guardrails/__init__.py +1 -0
- switch_trust_mcp-0.1.0/src/switch_trust_mcp/_platform_api/api/guardrails/create_aispm_policy.py +214 -0
- switch_trust_mcp-0.1.0/src/switch_trust_mcp/_platform_api/api/guardrails/delete_aispm_policy.py +205 -0
- switch_trust_mcp-0.1.0/src/switch_trust_mcp/_platform_api/api/guardrails/get_aispm_policy.py +207 -0
- switch_trust_mcp-0.1.0/src/switch_trust_mcp/_platform_api/api/guardrails/list_aispm_policies.py +262 -0
- switch_trust_mcp-0.1.0/src/switch_trust_mcp/_platform_api/api/guardrails/update_aispm_policy.py +233 -0
- switch_trust_mcp-0.1.0/src/switch_trust_mcp/_platform_api/api/inventory/__init__.py +1 -0
- switch_trust_mcp-0.1.0/src/switch_trust_mcp/_platform_api/api/inventory/get_sensors_used.py +177 -0
- switch_trust_mcp-0.1.0/src/switch_trust_mcp/_platform_api/api/issues/__init__.py +1 -0
- switch_trust_mcp-0.1.0/src/switch_trust_mcp/_platform_api/api/issues/get_issue_instances.py +169 -0
- switch_trust_mcp-0.1.0/src/switch_trust_mcp/_platform_api/api/issues/get_issue_object_detail.py +237 -0
- switch_trust_mcp-0.1.0/src/switch_trust_mcp/_platform_api/api/issues/get_issue_object_details.py +255 -0
- switch_trust_mcp-0.1.0/src/switch_trust_mcp/_platform_api/api/issues/get_issue_objects.py +239 -0
- switch_trust_mcp-0.1.0/src/switch_trust_mcp/_platform_api/api/issues/get_issue_single.py +207 -0
- switch_trust_mcp-0.1.0/src/switch_trust_mcp/_platform_api/api/issues/get_issues_index.py +255 -0
- switch_trust_mcp-0.1.0/src/switch_trust_mcp/_platform_api/api/locations/__init__.py +1 -0
- switch_trust_mcp-0.1.0/src/switch_trust_mcp/_platform_api/api/locations/get_all_locations.py +225 -0
- switch_trust_mcp-0.1.0/src/switch_trust_mcp/_platform_api/api/locations/get_location_edges.py +217 -0
- switch_trust_mcp-0.1.0/src/switch_trust_mcp/_platform_api/api/managed_agents/__init__.py +1 -0
- switch_trust_mcp-0.1.0/src/switch_trust_mcp/_platform_api/api/managed_agents/disable_excess_managed_agents.py +166 -0
- switch_trust_mcp-0.1.0/src/switch_trust_mcp/_platform_api/api/managed_agents/get_managed_agent_status.py +192 -0
- switch_trust_mcp-0.1.0/src/switch_trust_mcp/_platform_api/api/managed_agents/get_managed_agent_status_for_tenant.py +178 -0
- switch_trust_mcp-0.1.0/src/switch_trust_mcp/_platform_api/api/managed_agents/get_managed_agents_summary.py +198 -0
- switch_trust_mcp-0.1.0/src/switch_trust_mcp/_platform_api/api/managed_agents/list_managed_agents.py +225 -0
- switch_trust_mcp-0.1.0/src/switch_trust_mcp/_platform_api/api/managed_agents/reenable_managed_agents.py +166 -0
- switch_trust_mcp-0.1.0/src/switch_trust_mcp/_platform_api/api/rules/__init__.py +1 -0
- switch_trust_mcp-0.1.0/src/switch_trust_mcp/_platform_api/api/rules/get_all_rules.py +240 -0
- switch_trust_mcp-0.1.0/src/switch_trust_mcp/_platform_api/api/rules/get_external_rules.py +171 -0
- switch_trust_mcp-0.1.0/src/switch_trust_mcp/_platform_api/api/rules/get_rule.py +197 -0
- switch_trust_mcp-0.1.0/src/switch_trust_mcp/_platform_api/api/rules/get_rule_instances.py +169 -0
- switch_trust_mcp-0.1.0/src/switch_trust_mcp/_platform_api/api/rules/get_static_rules.py +171 -0
- switch_trust_mcp-0.1.0/src/switch_trust_mcp/_platform_api/api/scans/__init__.py +1 -0
- switch_trust_mcp-0.1.0/src/switch_trust_mcp/_platform_api/api/scans/get_all_current_scans.py +220 -0
- switch_trust_mcp-0.1.0/src/switch_trust_mcp/_platform_api/api/sparrow/__init__.py +1 -0
- switch_trust_mcp-0.1.0/src/switch_trust_mcp/_platform_api/api/sparrow/create_sparrow_agent.py +209 -0
- switch_trust_mcp-0.1.0/src/switch_trust_mcp/_platform_api/api/sparrow/get_agent_framework_snippets.py +145 -0
- switch_trust_mcp-0.1.0/src/switch_trust_mcp/_platform_api/client.py +280 -0
- switch_trust_mcp-0.1.0/src/switch_trust_mcp/_platform_api/errors.py +16 -0
- switch_trust_mcp-0.1.0/src/switch_trust_mcp/_platform_api/models/__init__.py +287 -0
- switch_trust_mcp-0.1.0/src/switch_trust_mcp/_platform_api/models/api_aispm_detail_response.py +315 -0
- switch_trust_mcp-0.1.0/src/switch_trust_mcp/_platform_api/models/api_aispm_mcp_server_detail_response.py +158 -0
- switch_trust_mcp-0.1.0/src/switch_trust_mcp/_platform_api/models/api_aispm_model_detail_response.py +158 -0
- switch_trust_mcp-0.1.0/src/switch_trust_mcp/_platform_api/models/api_aispm_tool_detail_response.py +193 -0
- switch_trust_mcp-0.1.0/src/switch_trust_mcp/_platform_api/models/api_client_storage_entry.py +97 -0
- switch_trust_mcp-0.1.0/src/switch_trust_mcp/_platform_api/models/api_client_storage_entry_value.py +48 -0
- switch_trust_mcp-0.1.0/src/switch_trust_mcp/_platform_api/models/api_client_storage_put_request.py +85 -0
- switch_trust_mcp-0.1.0/src/switch_trust_mcp/_platform_api/models/api_client_storage_put_request_value.py +48 -0
- switch_trust_mcp-0.1.0/src/switch_trust_mcp/_platform_api/models/api_dashboard_type.py +241 -0
- switch_trust_mcp-0.1.0/src/switch_trust_mcp/_platform_api/models/api_dashboard_type_certificate_counts.py +48 -0
- switch_trust_mcp-0.1.0/src/switch_trust_mcp/_platform_api/models/api_dashboard_type_key_counts.py +48 -0
- switch_trust_mcp-0.1.0/src/switch_trust_mcp/_platform_api/models/api_dashboard_type_operation_counts.py +48 -0
- switch_trust_mcp-0.1.0/src/switch_trust_mcp/_platform_api/models/api_disable_excess_managed_agents_response.py +73 -0
- switch_trust_mcp-0.1.0/src/switch_trust_mcp/_platform_api/models/api_filters_description.py +79 -0
- switch_trust_mcp-0.1.0/src/switch_trust_mcp/_platform_api/models/api_identity_config.py +100 -0
- switch_trust_mcp-0.1.0/src/switch_trust_mcp/_platform_api/models/api_include_exclude.py +78 -0
- switch_trust_mcp-0.1.0/src/switch_trust_mcp/_platform_api/models/api_managed_agent.py +73 -0
- switch_trust_mcp-0.1.0/src/switch_trust_mcp/_platform_api/models/api_managed_agent_status_response.py +82 -0
- switch_trust_mcp-0.1.0/src/switch_trust_mcp/_platform_api/models/api_managed_agents_response.py +102 -0
- switch_trust_mcp-0.1.0/src/switch_trust_mcp/_platform_api/models/api_managed_agents_summary_response.py +109 -0
- switch_trust_mcp-0.1.0/src/switch_trust_mcp/_platform_api/models/api_reenable_managed_agents_response.py +73 -0
- switch_trust_mcp-0.1.0/src/switch_trust_mcp/_platform_api/models/api_remote_logging_config.py +82 -0
- switch_trust_mcp-0.1.0/src/switch_trust_mcp/_platform_api/models/api_remote_metrics_config.py +73 -0
- switch_trust_mcp-0.1.0/src/switch_trust_mcp/_platform_api/models/api_sensor_configuration.py +117 -0
- switch_trust_mcp-0.1.0/src/switch_trust_mcp/_platform_api/models/api_user_filter.py +218 -0
- switch_trust_mcp-0.1.0/src/switch_trust_mcp/_platform_api/models/api_user_filter_tags_item.py +48 -0
- switch_trust_mcp-0.1.0/src/switch_trust_mcp/_platform_api/models/common_request_error.py +72 -0
- switch_trust_mcp-0.1.0/src/switch_trust_mcp/_platform_api/models/cost_agent_cost_cap.py +73 -0
- switch_trust_mcp-0.1.0/src/switch_trust_mcp/_platform_api/models/cost_burn_rate.py +82 -0
- switch_trust_mcp-0.1.0/src/switch_trust_mcp/_platform_api/models/cost_cost_history.py +111 -0
- switch_trust_mcp-0.1.0/src/switch_trust_mcp/_platform_api/models/cost_dashboard_cost_summary.py +97 -0
- switch_trust_mcp-0.1.0/src/switch_trust_mcp/_platform_api/models/cost_list_model_pricing_result.py +93 -0
- switch_trust_mcp-0.1.0/src/switch_trust_mcp/_platform_api/models/cost_model_pricing.py +182 -0
- switch_trust_mcp-0.1.0/src/switch_trust_mcp/_platform_api/models/cost_period_cost.py +73 -0
- switch_trust_mcp-0.1.0/src/switch_trust_mcp/_platform_api/models/cost_period_cost_per_session.py +73 -0
- switch_trust_mcp-0.1.0/src/switch_trust_mcp/_platform_api/models/cost_set_agent_cost_cap_request.py +64 -0
- switch_trust_mcp-0.1.0/src/switch_trust_mcp/_platform_api/models/cost_spending_summary.py +91 -0
- switch_trust_mcp-0.1.0/src/switch_trust_mcp/_platform_api/models/cost_upsert_model_pricing_request.py +100 -0
- switch_trust_mcp-0.1.0/src/switch_trust_mcp/_platform_api/models/engine_output_aispm_guardrail_categories_response.py +101 -0
- switch_trust_mcp-0.1.0/src/switch_trust_mcp/_platform_api/models/engine_output_aispm_guardrail_category_count.py +73 -0
- switch_trust_mcp-0.1.0/src/switch_trust_mcp/_platform_api/models/engine_output_aispm_guardrail_interaction_counts_response.py +143 -0
- switch_trust_mcp-0.1.0/src/switch_trust_mcp/_platform_api/models/engine_output_aispm_guardrail_interaction_counts_response_results.py +75 -0
- switch_trust_mcp-0.1.0/src/switch_trust_mcp/_platform_api/models/engine_output_aispm_guardrail_interactions_bucket.py +173 -0
- switch_trust_mcp-0.1.0/src/switch_trust_mcp/_platform_api/models/engine_output_aispm_guardrail_interactions_bucket_entry.py +64 -0
- switch_trust_mcp-0.1.0/src/switch_trust_mcp/_platform_api/models/engine_output_aispm_guardrail_outcomes_response.py +109 -0
- switch_trust_mcp-0.1.0/src/switch_trust_mcp/_platform_api/models/engine_output_aispm_llm_session_detail.py +173 -0
- switch_trust_mcp-0.1.0/src/switch_trust_mcp/_platform_api/models/engine_output_aispm_llm_session_turn.py +154 -0
- switch_trust_mcp-0.1.0/src/switch_trust_mcp/_platform_api/models/engine_output_count_result.py +93 -0
- switch_trust_mcp-0.1.0/src/switch_trust_mcp/_platform_api/models/engine_output_count_results.py +103 -0
- switch_trust_mcp-0.1.0/src/switch_trust_mcp/_platform_api/models/engine_output_count_results_counts.py +67 -0
- switch_trust_mcp-0.1.0/src/switch_trust_mcp/_platform_api/models/engine_output_embedded_item.py +73 -0
- switch_trust_mcp-0.1.0/src/switch_trust_mcp/_platform_api/models/engine_output_embedded_location_item.py +96 -0
- switch_trust_mcp-0.1.0/src/switch_trust_mcp/_platform_api/models/engine_output_embedded_location_item_code_location.py +48 -0
- switch_trust_mcp-0.1.0/src/switch_trust_mcp/_platform_api/models/engine_output_embedded_location_section.py +99 -0
- switch_trust_mcp-0.1.0/src/switch_trust_mcp/_platform_api/models/engine_output_embedded_section.py +93 -0
- switch_trust_mcp-0.1.0/src/switch_trust_mcp/_platform_api/models/engine_output_engine_data_page.py +110 -0
- switch_trust_mcp-0.1.0/src/switch_trust_mcp/_platform_api/models/engine_output_link.py +82 -0
- switch_trust_mcp-0.1.0/src/switch_trust_mcp/_platform_api/models/engine_output_node.py +91 -0
- switch_trust_mcp-0.1.0/src/switch_trust_mcp/_platform_api/models/engine_output_rule_info.py +103 -0
- switch_trust_mcp-0.1.0/src/switch_trust_mcp/_platform_api/models/engine_output_sankey_response.py +126 -0
- switch_trust_mcp-0.1.0/src/switch_trust_mcp/_platform_api/models/engine_output_tag_row_count.py +73 -0
- switch_trust_mcp-0.1.0/src/switch_trust_mcp/_platform_api/models/eval_agent_endpoint.py +142 -0
- switch_trust_mcp-0.1.0/src/switch_trust_mcp/_platform_api/models/eval_agent_endpoint_config.py +48 -0
- switch_trust_mcp-0.1.0/src/switch_trust_mcp/_platform_api/models/eval_agent_endpoint_endpoint_headers.py +48 -0
- switch_trust_mcp-0.1.0/src/switch_trust_mcp/_platform_api/models/eval_agent_endpoint_record.py +173 -0
- switch_trust_mcp-0.1.0/src/switch_trust_mcp/_platform_api/models/eval_agent_endpoint_record_config.py +48 -0
- switch_trust_mcp-0.1.0/src/switch_trust_mcp/_platform_api/models/eval_agent_endpoint_record_endpoint_headers.py +48 -0
- switch_trust_mcp-0.1.0/src/switch_trust_mcp/_platform_api/models/eval_agent_evaluation.py +132 -0
- switch_trust_mcp-0.1.0/src/switch_trust_mcp/_platform_api/models/eval_agent_evaluation_config.py +48 -0
- switch_trust_mcp-0.1.0/src/switch_trust_mcp/_platform_api/models/eval_agent_evaluation_record.py +328 -0
- switch_trust_mcp-0.1.0/src/switch_trust_mcp/_platform_api/models/eval_agent_evaluation_record_config.py +48 -0
- switch_trust_mcp-0.1.0/src/switch_trust_mcp/_platform_api/models/eval_agent_evaluation_record_latest_run_summary.py +48 -0
- switch_trust_mcp-0.1.0/src/switch_trust_mcp/_platform_api/models/eval_agent_evaluation_record_latest_scored_run_summary.py +48 -0
- switch_trust_mcp-0.1.0/src/switch_trust_mcp/_platform_api/models/eval_agent_evaluation_record_schedule.py +10 -0
- switch_trust_mcp-0.1.0/src/switch_trust_mcp/_platform_api/models/eval_agent_evaluation_schedule.py +10 -0
- switch_trust_mcp-0.1.0/src/switch_trust_mcp/_platform_api/models/eval_agent_evaluation_summary.py +122 -0
- switch_trust_mcp-0.1.0/src/switch_trust_mcp/_platform_api/models/eval_agent_health.py +73 -0
- switch_trust_mcp-0.1.0/src/switch_trust_mcp/_platform_api/models/eval_coverage_entry.py +100 -0
- switch_trust_mcp-0.1.0/src/switch_trust_mcp/_platform_api/models/eval_evaluation.py +142 -0
- switch_trust_mcp-0.1.0/src/switch_trust_mcp/_platform_api/models/eval_evaluation_approach.py +9 -0
- switch_trust_mcp-0.1.0/src/switch_trust_mcp/_platform_api/models/eval_evaluation_config.py +48 -0
- switch_trust_mcp-0.1.0/src/switch_trust_mcp/_platform_api/models/eval_evaluation_record.py +187 -0
- switch_trust_mcp-0.1.0/src/switch_trust_mcp/_platform_api/models/eval_evaluation_record_approach.py +9 -0
- switch_trust_mcp-0.1.0/src/switch_trust_mcp/_platform_api/models/eval_evaluation_record_config.py +48 -0
- switch_trust_mcp-0.1.0/src/switch_trust_mcp/_platform_api/models/eval_evaluation_record_tags.py +48 -0
- switch_trust_mcp-0.1.0/src/switch_trust_mcp/_platform_api/models/eval_evaluation_run_record.py +202 -0
- switch_trust_mcp-0.1.0/src/switch_trust_mcp/_platform_api/models/eval_evaluation_run_record_summary.py +48 -0
- switch_trust_mcp-0.1.0/src/switch_trust_mcp/_platform_api/models/eval_evaluation_run_result_record.py +141 -0
- switch_trust_mcp-0.1.0/src/switch_trust_mcp/_platform_api/models/eval_evaluation_run_result_record_conversation.py +48 -0
- switch_trust_mcp-0.1.0/src/switch_trust_mcp/_platform_api/models/eval_evaluation_tags.py +48 -0
- switch_trust_mcp-0.1.0/src/switch_trust_mcp/_platform_api/models/eval_list_agent_evaluations_result.py +120 -0
- switch_trust_mcp-0.1.0/src/switch_trust_mcp/_platform_api/models/eval_list_evaluation_run_results_result.py +124 -0
- switch_trust_mcp-0.1.0/src/switch_trust_mcp/_platform_api/models/eval_list_evaluation_runs_result.py +120 -0
- switch_trust_mcp-0.1.0/src/switch_trust_mcp/_platform_api/models/eval_list_evaluations_result.py +120 -0
- switch_trust_mcp-0.1.0/src/switch_trust_mcp/_platform_api/models/eval_trend_point.py +73 -0
- switch_trust_mcp-0.1.0/src/switch_trust_mcp/_platform_api/models/eval_trend_summary.py +93 -0
- switch_trust_mcp-0.1.0/src/switch_trust_mcp/_platform_api/models/eval_trigger_run_response.py +91 -0
- switch_trust_mcp-0.1.0/src/switch_trust_mcp/_platform_api/models/get_aispm_agent_edges_edge.py +18 -0
- switch_trust_mcp-0.1.0/src/switch_trust_mcp/_platform_api/models/get_aispm_mcp_server_edges_edge.py +15 -0
- switch_trust_mcp-0.1.0/src/switch_trust_mcp/_platform_api/models/get_aispm_model_edges_edge.py +13 -0
- switch_trust_mcp-0.1.0/src/switch_trust_mcp/_platform_api/models/get_aispm_tool_edges_edge.py +11 -0
- switch_trust_mcp-0.1.0/src/switch_trust_mcp/_platform_api/models/get_all_rules_response_200.py +48 -0
- switch_trust_mcp-0.1.0/src/switch_trust_mcp/_platform_api/models/get_external_rules_response_200.py +48 -0
- switch_trust_mcp-0.1.0/src/switch_trust_mcp/_platform_api/models/get_instance_details_v2_response_200.py +48 -0
- switch_trust_mcp-0.1.0/src/switch_trust_mcp/_platform_api/models/get_issue_object_detail_response_200.py +48 -0
- switch_trust_mcp-0.1.0/src/switch_trust_mcp/_platform_api/models/get_issue_object_details_response_200.py +48 -0
- switch_trust_mcp-0.1.0/src/switch_trust_mcp/_platform_api/models/get_issue_objects_response_200.py +48 -0
- switch_trust_mcp-0.1.0/src/switch_trust_mcp/_platform_api/models/get_issue_single_response_200.py +48 -0
- switch_trust_mcp-0.1.0/src/switch_trust_mcp/_platform_api/models/get_issues_index_response_200.py +48 -0
- switch_trust_mcp-0.1.0/src/switch_trust_mcp/_platform_api/models/get_location_edges_edge.py +10 -0
- switch_trust_mcp-0.1.0/src/switch_trust_mcp/_platform_api/models/get_static_rules_response_200.py +48 -0
- switch_trust_mcp-0.1.0/src/switch_trust_mcp/_platform_api/models/guardrails_aispm_detector_entry.py +121 -0
- switch_trust_mcp-0.1.0/src/switch_trust_mcp/_platform_api/models/guardrails_aispm_detector_entry_args.py +48 -0
- switch_trust_mcp-0.1.0/src/switch_trust_mcp/_platform_api/models/guardrails_aispm_detectors.py +111 -0
- switch_trust_mcp-0.1.0/src/switch_trust_mcp/_platform_api/models/guardrails_aispm_policy.py +97 -0
- switch_trust_mcp-0.1.0/src/switch_trust_mcp/_platform_api/models/guardrails_aispm_policy_record.py +124 -0
- switch_trust_mcp-0.1.0/src/switch_trust_mcp/_platform_api/models/guardrails_list_aispm_policies_result.py +120 -0
- switch_trust_mcp-0.1.0/src/switch_trust_mcp/_platform_api/models/list_agent_evaluations_order.py +9 -0
- switch_trust_mcp-0.1.0/src/switch_trust_mcp/_platform_api/models/list_aispm_policies_order.py +9 -0
- switch_trust_mcp-0.1.0/src/switch_trust_mcp/_platform_api/models/list_evaluation_run_results_order.py +9 -0
- switch_trust_mcp-0.1.0/src/switch_trust_mcp/_platform_api/models/list_evaluation_runs_order.py +9 -0
- switch_trust_mcp-0.1.0/src/switch_trust_mcp/_platform_api/models/list_evaluations_approach.py +9 -0
- switch_trust_mcp-0.1.0/src/switch_trust_mcp/_platform_api/models/list_evaluations_order.py +9 -0
- switch_trust_mcp-0.1.0/src/switch_trust_mcp/_platform_api/models/settings_settings_description_type.py +92 -0
- switch_trust_mcp-0.1.0/src/switch_trust_mcp/_platform_api/models/sparrow_agent_framework_snippets.py +100 -0
- switch_trust_mcp-0.1.0/src/switch_trust_mcp/_platform_api/models/sparrow_agent_language_snippets.py +108 -0
- switch_trust_mcp-0.1.0/src/switch_trust_mcp/_platform_api/models/sparrow_create_agent_payload.py +64 -0
- switch_trust_mcp-0.1.0/src/switch_trust_mcp/_platform_api/models/sparrow_create_agent_response.py +64 -0
- switch_trust_mcp-0.1.0/src/switch_trust_mcp/_platform_api/py.typed +1 -0
- switch_trust_mcp-0.1.0/src/switch_trust_mcp/_platform_api/types.py +54 -0
- switch_trust_mcp-0.1.0/src/switch_trust_mcp/client.py +802 -0
- switch_trust_mcp-0.1.0/src/switch_trust_mcp/config.py +116 -0
- switch_trust_mcp-0.1.0/src/switch_trust_mcp/py.typed +0 -0
- switch_trust_mcp-0.1.0/src/switch_trust_mcp/remediation.py +197 -0
- switch_trust_mcp-0.1.0/src/switch_trust_mcp/remediation_procedure.md +52 -0
- switch_trust_mcp-0.1.0/src/switch_trust_mcp/server.py +1052 -0
- switch_trust_mcp-0.1.0/src/switch_trust_mcp.egg-info/PKG-INFO +197 -0
- switch_trust_mcp-0.1.0/src/switch_trust_mcp.egg-info/SOURCES.txt +336 -0
- switch_trust_mcp-0.1.0/src/switch_trust_mcp.egg-info/dependency_links.txt +1 -0
- switch_trust_mcp-0.1.0/src/switch_trust_mcp.egg-info/entry_points.txt +2 -0
- switch_trust_mcp-0.1.0/src/switch_trust_mcp.egg-info/requires.txt +13 -0
- switch_trust_mcp-0.1.0/src/switch_trust_mcp.egg-info/top_level.txt +1 -0
- switch_trust_mcp-0.1.0/test/test_mcp_server.py +1707 -0
|
@@ -0,0 +1,201 @@
|
|
|
1
|
+
Apache License
|
|
2
|
+
Version 2.0, January 2004
|
|
3
|
+
http://www.apache.org/licenses/
|
|
4
|
+
|
|
5
|
+
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
|
6
|
+
|
|
7
|
+
1. Definitions.
|
|
8
|
+
|
|
9
|
+
"License" shall mean the terms and conditions for use, reproduction,
|
|
10
|
+
and distribution as defined by Sections 1 through 9 of this document.
|
|
11
|
+
|
|
12
|
+
"Licensor" shall mean the copyright owner or entity authorized by
|
|
13
|
+
the copyright owner that is granting the License.
|
|
14
|
+
|
|
15
|
+
"Legal Entity" shall mean the union of the acting entity and all
|
|
16
|
+
other entities that control, are controlled by, or are under common
|
|
17
|
+
control with that entity. For the purposes of this definition,
|
|
18
|
+
"control" means (i) the power, direct or indirect, to cause the
|
|
19
|
+
direction or management of such entity, whether by contract or
|
|
20
|
+
otherwise, or (ii) ownership of fifty percent (50%) or more of the
|
|
21
|
+
outstanding shares, or (iii) beneficial ownership of such entity.
|
|
22
|
+
|
|
23
|
+
"You" (or "Your") shall mean an individual or Legal Entity
|
|
24
|
+
exercising permissions granted by this License.
|
|
25
|
+
|
|
26
|
+
"Source" form shall mean the preferred form for making modifications,
|
|
27
|
+
including but not limited to software source code, documentation
|
|
28
|
+
source, and configuration files.
|
|
29
|
+
|
|
30
|
+
"Object" form shall mean any form resulting from mechanical
|
|
31
|
+
transformation or translation of a Source form, including but
|
|
32
|
+
not limited to compiled object code, generated documentation,
|
|
33
|
+
and conversions to other media types.
|
|
34
|
+
|
|
35
|
+
"Work" shall mean the work of authorship, whether in Source or
|
|
36
|
+
Object form, made available under the License, as indicated by a
|
|
37
|
+
copyright notice that is included in or attached to the work
|
|
38
|
+
(an example is provided in the Appendix below).
|
|
39
|
+
|
|
40
|
+
"Derivative Works" shall mean any work, whether in Source or Object
|
|
41
|
+
form, that is based on (or derived from) the Work and for which the
|
|
42
|
+
editorial revisions, annotations, elaborations, or other modifications
|
|
43
|
+
represent, as a whole, an original work of authorship. For the purposes
|
|
44
|
+
of this License, Derivative Works shall not include works that remain
|
|
45
|
+
separable from, or merely link (or bind by name) to the interfaces of,
|
|
46
|
+
the Work and Derivative Works thereof.
|
|
47
|
+
|
|
48
|
+
"Contribution" shall mean any work of authorship, including
|
|
49
|
+
the original version of the Work and any modifications or additions
|
|
50
|
+
to that Work or Derivative Works thereof, that is intentionally
|
|
51
|
+
submitted to Licensor for inclusion in the Work by the copyright owner
|
|
52
|
+
or by an individual or Legal Entity authorized to submit on behalf of
|
|
53
|
+
the copyright owner. For the purposes of this definition, "submitted"
|
|
54
|
+
means any form of electronic, verbal, or written communication sent
|
|
55
|
+
to the Licensor or its representatives, including but not limited to
|
|
56
|
+
communication on electronic mailing lists, source code control systems,
|
|
57
|
+
and issue tracking systems that are managed by, or on behalf of, the
|
|
58
|
+
Licensor for the purpose of discussing and improving the Work, but
|
|
59
|
+
excluding communication that is conspicuously marked or otherwise
|
|
60
|
+
designated in writing by the copyright owner as "Not a Contribution."
|
|
61
|
+
|
|
62
|
+
"Contributor" shall mean Licensor and any individual or Legal Entity
|
|
63
|
+
on behalf of whom a Contribution has been received by Licensor and
|
|
64
|
+
subsequently incorporated within the Work.
|
|
65
|
+
|
|
66
|
+
2. Grant of Copyright License. Subject to the terms and conditions of
|
|
67
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
68
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
69
|
+
copyright license to reproduce, prepare Derivative Works of,
|
|
70
|
+
publicly display, publicly perform, sublicense, and distribute the
|
|
71
|
+
Work and such Derivative Works in Source or Object form.
|
|
72
|
+
|
|
73
|
+
3. Grant of Patent License. Subject to the terms and conditions of
|
|
74
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
75
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
76
|
+
(except as stated in this section) patent license to make, have made,
|
|
77
|
+
use, offer to sell, sell, import, and otherwise transfer the Work,
|
|
78
|
+
where such license applies only to those patent claims licensable
|
|
79
|
+
by such Contributor that are necessarily infringed by their
|
|
80
|
+
Contribution(s) alone or by combination of their Contribution(s)
|
|
81
|
+
with the Work to which such Contribution(s) was submitted. If You
|
|
82
|
+
institute patent litigation against any entity (including a
|
|
83
|
+
cross-claim or counterclaim in a lawsuit) alleging that the Work
|
|
84
|
+
or a Contribution incorporated within the Work constitutes direct
|
|
85
|
+
or contributory patent infringement, then any patent licenses
|
|
86
|
+
granted to You under this License for that Work shall terminate
|
|
87
|
+
as of the date such litigation is filed.
|
|
88
|
+
|
|
89
|
+
4. Redistribution. You may reproduce and distribute copies of the
|
|
90
|
+
Work or Derivative Works thereof in any medium, with or without
|
|
91
|
+
modifications, and in Source or Object form, provided that You
|
|
92
|
+
meet the following conditions:
|
|
93
|
+
|
|
94
|
+
(a) You must give any other recipients of the Work or Derivative
|
|
95
|
+
Works a copy of this License; and
|
|
96
|
+
|
|
97
|
+
(b) You must cause any modified files to carry prominent notices
|
|
98
|
+
stating that You changed the files; and
|
|
99
|
+
|
|
100
|
+
(c) You must retain, in the Source form of any Derivative Works
|
|
101
|
+
that You distribute, all copyright, patent, trademark, and
|
|
102
|
+
attribution notices from the Source form of the Work,
|
|
103
|
+
excluding those notices that do not pertain to any part of
|
|
104
|
+
the Derivative Works; and
|
|
105
|
+
|
|
106
|
+
(d) If the Work includes a "NOTICE" text file as part of its
|
|
107
|
+
distribution, then any Derivative Works that You distribute must
|
|
108
|
+
include a readable copy of the attribution notices contained
|
|
109
|
+
within such NOTICE file, excluding those notices that do not
|
|
110
|
+
pertain to any part of the Derivative Works, in at least one
|
|
111
|
+
of the following places: within a NOTICE text file distributed
|
|
112
|
+
as part of the Derivative Works; within the Source form or
|
|
113
|
+
documentation, if provided along with the Derivative Works; or,
|
|
114
|
+
within a display generated by the Derivative Works, if and
|
|
115
|
+
wherever such third-party notices normally appear. The contents
|
|
116
|
+
of the NOTICE file are for informational purposes only and
|
|
117
|
+
do not modify the License. You may add Your own attribution
|
|
118
|
+
notices within Derivative Works that You distribute, alongside
|
|
119
|
+
or as an addendum to the NOTICE text from the Work, provided
|
|
120
|
+
that such additional attribution notices cannot be construed
|
|
121
|
+
as modifying the License.
|
|
122
|
+
|
|
123
|
+
You may add Your own copyright statement to Your modifications and
|
|
124
|
+
may provide additional or different license terms and conditions
|
|
125
|
+
for use, reproduction, or distribution of Your modifications, or
|
|
126
|
+
for any such Derivative Works as a whole, provided Your use,
|
|
127
|
+
reproduction, and distribution of the Work otherwise complies with
|
|
128
|
+
the conditions stated in this License.
|
|
129
|
+
|
|
130
|
+
5. Submission of Contributions. Unless You explicitly state otherwise,
|
|
131
|
+
any Contribution intentionally submitted for inclusion in the Work
|
|
132
|
+
by You to the Licensor shall be under the terms and conditions of
|
|
133
|
+
this License, without any additional terms or conditions.
|
|
134
|
+
Notwithstanding the above, nothing herein shall supersede or modify
|
|
135
|
+
the terms of any separate license agreement you may have executed
|
|
136
|
+
with Licensor regarding such Contributions.
|
|
137
|
+
|
|
138
|
+
6. Trademarks. This License does not grant permission to use the trade
|
|
139
|
+
names, trademarks, service marks, or product names of the Licensor,
|
|
140
|
+
except as required for reasonable and customary use in describing the
|
|
141
|
+
origin of the Work and reproducing the content of the NOTICE file.
|
|
142
|
+
|
|
143
|
+
7. Disclaimer of Warranty. Unless required by applicable law or
|
|
144
|
+
agreed to in writing, Licensor provides the Work (and each
|
|
145
|
+
Contributor provides its Contributions) on an "AS IS" BASIS,
|
|
146
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
|
147
|
+
implied, including, without limitation, any warranties or conditions
|
|
148
|
+
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
|
|
149
|
+
PARTICULAR PURPOSE. You are solely responsible for determining the
|
|
150
|
+
appropriateness of using or redistributing the Work and assume any
|
|
151
|
+
risks associated with Your exercise of permissions under this License.
|
|
152
|
+
|
|
153
|
+
8. Limitation of Liability. In no event and under no legal theory,
|
|
154
|
+
whether in tort (including negligence), contract, or otherwise,
|
|
155
|
+
unless required by applicable law (such as deliberate and grossly
|
|
156
|
+
negligent acts) or agreed to in writing, shall any Contributor be
|
|
157
|
+
liable to You for damages, including any direct, indirect, special,
|
|
158
|
+
incidental, or consequential damages of any character arising as a
|
|
159
|
+
result of this License or out of the use or inability to use the
|
|
160
|
+
Work (including but not limited to damages for loss of goodwill,
|
|
161
|
+
work stoppage, computer failure or malfunction, or any and all
|
|
162
|
+
other commercial damages or losses), even if such Contributor
|
|
163
|
+
has been advised of the possibility of such damages.
|
|
164
|
+
|
|
165
|
+
9. Accepting Warranty or Additional Liability. While redistributing
|
|
166
|
+
the Work or Derivative Works thereof, You may choose to offer,
|
|
167
|
+
and charge a fee for, acceptance of support, warranty, indemnity,
|
|
168
|
+
or other liability obligations and/or rights consistent with this
|
|
169
|
+
License. However, in accepting such obligations, You may act only
|
|
170
|
+
on Your own behalf and on Your sole responsibility, not on behalf
|
|
171
|
+
of any other Contributor, and only if You agree to indemnify,
|
|
172
|
+
defend, and hold each Contributor harmless for any liability
|
|
173
|
+
incurred by, or claims asserted against, such Contributor by reason
|
|
174
|
+
of your accepting any such warranty or additional liability.
|
|
175
|
+
|
|
176
|
+
END OF TERMS AND CONDITIONS
|
|
177
|
+
|
|
178
|
+
APPENDIX: How to apply the Apache License to your work.
|
|
179
|
+
|
|
180
|
+
To apply the Apache License to your work, attach the following
|
|
181
|
+
boilerplate notice, with the fields enclosed by brackets "[]"
|
|
182
|
+
replaced with your own identifying information. (Don't include
|
|
183
|
+
the brackets!) The text should be enclosed in the appropriate
|
|
184
|
+
comment syntax for the file format. We also recommend that a
|
|
185
|
+
file or class name and description of purpose be included on the
|
|
186
|
+
same "printed page" as the copyright notice for easier
|
|
187
|
+
identification within third-party archives.
|
|
188
|
+
|
|
189
|
+
Copyright (c) 2026 SB Technology, Inc. dba SandboxAQ
|
|
190
|
+
|
|
191
|
+
Licensed under the Apache License, Version 2.0 (the "License");
|
|
192
|
+
you may not use this file except in compliance with the License.
|
|
193
|
+
You may obtain a copy of the License at
|
|
194
|
+
|
|
195
|
+
http://www.apache.org/licenses/LICENSE-2.0
|
|
196
|
+
|
|
197
|
+
Unless required by applicable law or agreed to in writing, software
|
|
198
|
+
distributed under the License is distributed on an "AS IS" BASIS,
|
|
199
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
200
|
+
See the License for the specific language governing permissions and
|
|
201
|
+
limitations under the License.
|
|
@@ -0,0 +1,197 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: switch-trust-mcp
|
|
3
|
+
Version: 0.1.0
|
|
4
|
+
Summary: Switch Trust platform MCP server: read-only AI-SPM issues, inventory, and remediation guidance for coding agents
|
|
5
|
+
Author: SandboxAQ
|
|
6
|
+
License: Apache-2.0
|
|
7
|
+
Project-URL: Repository, https://github.com/sandbox-quantum/switch-trust-mcp
|
|
8
|
+
Keywords: ai,mcp,security,ai-spm,switch-trust
|
|
9
|
+
Classifier: Development Status :: 3 - Alpha
|
|
10
|
+
Classifier: Intended Audience :: Developers
|
|
11
|
+
Classifier: License :: OSI Approved :: Apache Software License
|
|
12
|
+
Classifier: Programming Language :: Python :: 3
|
|
13
|
+
Classifier: Programming Language :: Python :: 3.11
|
|
14
|
+
Classifier: Programming Language :: Python :: 3.12
|
|
15
|
+
Classifier: Programming Language :: Python :: 3.13
|
|
16
|
+
Classifier: Topic :: Software Development :: Libraries :: Python Modules
|
|
17
|
+
Classifier: Typing :: Typed
|
|
18
|
+
Requires-Python: >=3.11
|
|
19
|
+
Description-Content-Type: text/markdown
|
|
20
|
+
License-File: LICENSE
|
|
21
|
+
Requires-Dist: httpx<1,>=0.28
|
|
22
|
+
Requires-Dist: mcp<2,>=1.27
|
|
23
|
+
Requires-Dist: attrs<27,>=25
|
|
24
|
+
Requires-Dist: python-dateutil<3,>=2.9
|
|
25
|
+
Provides-Extra: dev
|
|
26
|
+
Requires-Dist: pytest<9,>=8; extra == "dev"
|
|
27
|
+
Provides-Extra: audit
|
|
28
|
+
Requires-Dist: pip-licenses>=5.0; extra == "audit"
|
|
29
|
+
Requires-Dist: cyclonedx-bom>=6.0; extra == "audit"
|
|
30
|
+
Requires-Dist: pip-audit>=2.7; extra == "audit"
|
|
31
|
+
Requires-Dist: pip-tools==7.6.2; extra == "audit"
|
|
32
|
+
Dynamic: license-file
|
|
33
|
+
|
|
34
|
+
# switch-trust-mcp
|
|
35
|
+
|
|
36
|
+
A local [MCP](https://modelcontextprotocol.io) server (stdio) that gives a coding
|
|
37
|
+
agent read-only access to a Switch Trust backend's **AI-SPM issues, inventory, and
|
|
38
|
+
remediation guidance** so it can fix the flagged code.
|
|
39
|
+
|
|
40
|
+
It is a thin, authenticated REST client over the Switch Trust API — no scanner runs
|
|
41
|
+
locally and no backend changes are required. Everything valuable (AI-reasoned
|
|
42
|
+
findings, rule-based issues, public-asset vuln enrichment, remediation guidance)
|
|
43
|
+
is already computed server-side and served over the existing API / static assets.
|
|
44
|
+
|
|
45
|
+
## Install & run
|
|
46
|
+
|
|
47
|
+
The idiomatic way is via the published wheel with `uvx` (no clone, no build step):
|
|
48
|
+
|
|
49
|
+
```bash
|
|
50
|
+
uvx switch-trust-mcp
|
|
51
|
+
```
|
|
52
|
+
|
|
53
|
+
## Configuration
|
|
54
|
+
|
|
55
|
+
Set two environment variables:
|
|
56
|
+
|
|
57
|
+
| Variable | Meaning |
|
|
58
|
+
| ------------------------ | --------------------------------------------------------------- |
|
|
59
|
+
| `SWITCH_TRUST_API_KEY` | Switch Trust API key (`sk_...`). |
|
|
60
|
+
| `SWITCH_TRUST_INSTANCE` | Switch Trust instance base URL, e.g. `https://app.flintai.dev`. |
|
|
61
|
+
|
|
62
|
+
The instance URL is validated against a fail-closed host allowlist before any
|
|
63
|
+
credential is attached.
|
|
64
|
+
|
|
65
|
+
The **tenant and workspace are auto-discovered** from the API key at startup —
|
|
66
|
+
you do not configure any IDs. A key is pinned to exactly one tenant + active
|
|
67
|
+
workspace by the backend.
|
|
68
|
+
|
|
69
|
+
The API key is only ever sent in the `Authorization: ApiKey ...` header and is
|
|
70
|
+
never logged.
|
|
71
|
+
|
|
72
|
+
## Wiring into a coding agent
|
|
73
|
+
|
|
74
|
+
Add to your MCP client config (Claude Code `.mcp.json`, Cursor, etc.):
|
|
75
|
+
|
|
76
|
+
```jsonc
|
|
77
|
+
{
|
|
78
|
+
"mcpServers": {
|
|
79
|
+
"switch-trust-mcp": {
|
|
80
|
+
"command": "uvx",
|
|
81
|
+
"args": ["switch-trust-mcp"],
|
|
82
|
+
"env": {
|
|
83
|
+
"SWITCH_TRUST_API_KEY": "sk_...",
|
|
84
|
+
"SWITCH_TRUST_INSTANCE": "https://app.flintai.dev"
|
|
85
|
+
}
|
|
86
|
+
}
|
|
87
|
+
}
|
|
88
|
+
}
|
|
89
|
+
```
|
|
90
|
+
|
|
91
|
+
## Tools
|
|
92
|
+
|
|
93
|
+
**Fix-focused**
|
|
94
|
+
|
|
95
|
+
- `get_context` — show the resolved instance / tenant / workspace.
|
|
96
|
+
- `list_issues(severity?, rule_id?, category?, search?, page_size?, cursor?)` —
|
|
97
|
+
list issues; paginated, `page_size` capped at 100.
|
|
98
|
+
- `get_issue(issue_id, page_size?, cursor?)` — issue detail + assembled
|
|
99
|
+
rule-level remediation guidance + a page of affected objects; `objects` is
|
|
100
|
+
paginated the same way as `list_issues`.
|
|
101
|
+
- `get_finding_detail(issue_id, object_id, detail_id?)` — per-finding file path,
|
|
102
|
+
code snippet, evidence, and inline remediation.
|
|
103
|
+
- `find_issues_for_file(path, max_issues?)` — issues whose findings reference a
|
|
104
|
+
given working-tree file (client-side scan; matches by shared path suffix).
|
|
105
|
+
The scan follows pagination but is bounded — `max_issues` is capped at 500 and
|
|
106
|
+
the call at 300 backend requests — and returns a `scan` block reporting
|
|
107
|
+
`complete`, `issues_scanned`, `requests` and `errors`. **`complete: false`
|
|
108
|
+
means the caps were hit and the file may have findings this result omits**;
|
|
109
|
+
treat it as "unknown", not as "clean", and narrow the search with
|
|
110
|
+
`list_issues` filters instead.
|
|
111
|
+
- `get_remediation_guidance(rule_name)` — rule-level remediation markdown.
|
|
112
|
+
|
|
113
|
+
**Inventory browse**
|
|
114
|
+
|
|
115
|
+
- `list_models | list_agents | list_tools | list_mcp_servers(name?, severity?, supplier?, library?, page_size?, cursor?)`
|
|
116
|
+
- `get_model | get_agent | get_tool | get_mcp_server(asset_id)` — detail plus
|
|
117
|
+
attached issues, related assets, and code locations.
|
|
118
|
+
|
|
119
|
+
**Guardrails & LLM-interaction analytics**
|
|
120
|
+
|
|
121
|
+
- `list_guardrail_policies(search?, page?, page_size?)` — page-numbered (not
|
|
122
|
+
cursor-based); `page_size` capped at 100.
|
|
123
|
+
- `get_guardrail_policy(policy_id)` — policy detail: name, description,
|
|
124
|
+
user/assistant detector configuration.
|
|
125
|
+
- `get_guardrail_interaction_counts | get_guardrail_outcomes | get_guardrail_categories(agent_id?)`
|
|
126
|
+
— guardrail-decision dashboards across LLM interactions, optionally scoped
|
|
127
|
+
to one agent.
|
|
128
|
+
- `list_llm_interactions(search?, agent_id?, page_size?, cursor?)` — prompt/
|
|
129
|
+
response pairs with guardrail outcomes; rows are trimmed (long text
|
|
130
|
+
truncated, per-turn events omitted) for context budget. `page_size` capped
|
|
131
|
+
at 100.
|
|
132
|
+
- `get_interaction(interaction_id)` — one interaction's full detail.
|
|
133
|
+
- `list_llm_sessions(agent_id, sort?, sort_dir?, page_size?, cursor?)` —
|
|
134
|
+
grouped conversation turns for one agent (required). `page_size` capped at 100.
|
|
135
|
+
- `get_llm_session(session_id)` — one session's aggregate cost/tokens/turns
|
|
136
|
+
plus the full per-turn list.
|
|
137
|
+
|
|
138
|
+
**Red-teaming / eval**
|
|
139
|
+
|
|
140
|
+
- `list_evaluations(search?, approach?, page?, page_size?, order?)` —
|
|
141
|
+
evaluation definitions (probes/metrics), including red-teaming adversarial
|
|
142
|
+
probes; `approach` is `probe` or `metric`. Page-numbered; `page_size`
|
|
143
|
+
capped at 100.
|
|
144
|
+
- `get_evaluation(evaluation_id)` — full definition detail, including
|
|
145
|
+
`attack_techniques` / `adversarial_goals` / `num_prompts` / `max_turns` for
|
|
146
|
+
adversarial-probe evaluations.
|
|
147
|
+
- `list_agent_evaluations(agent_id?, evaluation_id?, search?, page?, page_size?, order?)`
|
|
148
|
+
— agent↔evaluation assignments, each with `latest_run_status`/`progress`/
|
|
149
|
+
`summary` and a `score_trend` (last 5 scores). Page-numbered; `page_size`
|
|
150
|
+
capped at 100.
|
|
151
|
+
- `get_agent_evaluation(agent_evaluation_id)` — one assignment's full detail.
|
|
152
|
+
- `get_agent_evaluation_summary(agent_id)` — one agent's evaluation health
|
|
153
|
+
rollup: health score, per-category OWASP coverage, and score trend.
|
|
154
|
+
- `list_evaluation_runs(evaluation_id?, agent_evaluation_id?, page?, page_size?, order?)`
|
|
155
|
+
— runs; `status` is `queued`/`running`/`finished`/`error`. Page-numbered;
|
|
156
|
+
`page_size` capped at 100.
|
|
157
|
+
- `get_evaluation_run(evaluation_run_id)` — one run's detail.
|
|
158
|
+
- `list_evaluation_run_results(evaluation_run_id, page?, page_size?, order?)`
|
|
159
|
+
— one run's per-prompt results; `status` is `passed`/`failed`/`error`/
|
|
160
|
+
`scored`. There is no single-result detail endpoint, so `conversation`
|
|
161
|
+
transcripts are trimmed rather than dropped: every turn is kept but each
|
|
162
|
+
turn's text is truncated to 300 characters. Page-numbered; `page_size`
|
|
163
|
+
capped at 100.
|
|
164
|
+
- `get_agent_endpoint(agent_id)` — an agent's red-teaming target-endpoint
|
|
165
|
+
config (`endpoint_url`, `endpoint_auth_type`, `model_type`, `config`);
|
|
166
|
+
secrets are redacted server-side and always come back empty.
|
|
167
|
+
|
|
168
|
+
## Remediation guidance
|
|
169
|
+
|
|
170
|
+
Rule-level remediation markdown has **no dedicated API** — it is served by the
|
|
171
|
+
instance's web server as static assets at `{instance}/assets/docs-remediations/…`
|
|
172
|
+
(the same origin and files the web UI reads). This server fetches them at runtime
|
|
173
|
+
over HTTP through the shared client and caches them per session; nothing is
|
|
174
|
+
bundled into the package. When a rule has no docs (or the assets origin is
|
|
175
|
+
unreachable), fall back to the per-finding `remediation` text from
|
|
176
|
+
`get_finding_detail`.
|
|
177
|
+
|
|
178
|
+
For offline development or tests, set `SWITCH_TRUST_REMEDIATION_DIR` to a local directory
|
|
179
|
+
laid out like the assets (`rule-name-to-remediation-folder-map.json` + per-rule
|
|
180
|
+
folders); the loader then reads from disk and never touches the network.
|
|
181
|
+
|
|
182
|
+
## Development
|
|
183
|
+
|
|
184
|
+
- Layout: `src/switch_trust_mcp/` (`src/` layout), tests under `test/`.
|
|
185
|
+
- Editable install: `pip install -e '.[dev]'`, then run `switch-trust-mcp`.
|
|
186
|
+
- Docs are fetched from your instance at runtime; for offline work point
|
|
187
|
+
`SWITCH_TRUST_REMEDIATION_DIR` at a local copy of the docs directory.
|
|
188
|
+
|
|
189
|
+
## Tests
|
|
190
|
+
|
|
191
|
+
```bash
|
|
192
|
+
pytest
|
|
193
|
+
```
|
|
194
|
+
|
|
195
|
+
Tests are hermetic (httpx `MockTransport` for the client and the remediation-docs
|
|
196
|
+
fetch, a fake client + `SWITCH_TRUST_REMEDIATION_DIR` for the tools), so they need no
|
|
197
|
+
network or live backend.
|
|
@@ -0,0 +1,164 @@
|
|
|
1
|
+
# switch-trust-mcp
|
|
2
|
+
|
|
3
|
+
A local [MCP](https://modelcontextprotocol.io) server (stdio) that gives a coding
|
|
4
|
+
agent read-only access to a Switch Trust backend's **AI-SPM issues, inventory, and
|
|
5
|
+
remediation guidance** so it can fix the flagged code.
|
|
6
|
+
|
|
7
|
+
It is a thin, authenticated REST client over the Switch Trust API — no scanner runs
|
|
8
|
+
locally and no backend changes are required. Everything valuable (AI-reasoned
|
|
9
|
+
findings, rule-based issues, public-asset vuln enrichment, remediation guidance)
|
|
10
|
+
is already computed server-side and served over the existing API / static assets.
|
|
11
|
+
|
|
12
|
+
## Install & run
|
|
13
|
+
|
|
14
|
+
The idiomatic way is via the published wheel with `uvx` (no clone, no build step):
|
|
15
|
+
|
|
16
|
+
```bash
|
|
17
|
+
uvx switch-trust-mcp
|
|
18
|
+
```
|
|
19
|
+
|
|
20
|
+
## Configuration
|
|
21
|
+
|
|
22
|
+
Set two environment variables:
|
|
23
|
+
|
|
24
|
+
| Variable | Meaning |
|
|
25
|
+
| ------------------------ | --------------------------------------------------------------- |
|
|
26
|
+
| `SWITCH_TRUST_API_KEY` | Switch Trust API key (`sk_...`). |
|
|
27
|
+
| `SWITCH_TRUST_INSTANCE` | Switch Trust instance base URL, e.g. `https://app.flintai.dev`. |
|
|
28
|
+
|
|
29
|
+
The instance URL is validated against a fail-closed host allowlist before any
|
|
30
|
+
credential is attached.
|
|
31
|
+
|
|
32
|
+
The **tenant and workspace are auto-discovered** from the API key at startup —
|
|
33
|
+
you do not configure any IDs. A key is pinned to exactly one tenant + active
|
|
34
|
+
workspace by the backend.
|
|
35
|
+
|
|
36
|
+
The API key is only ever sent in the `Authorization: ApiKey ...` header and is
|
|
37
|
+
never logged.
|
|
38
|
+
|
|
39
|
+
## Wiring into a coding agent
|
|
40
|
+
|
|
41
|
+
Add to your MCP client config (Claude Code `.mcp.json`, Cursor, etc.):
|
|
42
|
+
|
|
43
|
+
```jsonc
|
|
44
|
+
{
|
|
45
|
+
"mcpServers": {
|
|
46
|
+
"switch-trust-mcp": {
|
|
47
|
+
"command": "uvx",
|
|
48
|
+
"args": ["switch-trust-mcp"],
|
|
49
|
+
"env": {
|
|
50
|
+
"SWITCH_TRUST_API_KEY": "sk_...",
|
|
51
|
+
"SWITCH_TRUST_INSTANCE": "https://app.flintai.dev"
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
```
|
|
57
|
+
|
|
58
|
+
## Tools
|
|
59
|
+
|
|
60
|
+
**Fix-focused**
|
|
61
|
+
|
|
62
|
+
- `get_context` — show the resolved instance / tenant / workspace.
|
|
63
|
+
- `list_issues(severity?, rule_id?, category?, search?, page_size?, cursor?)` —
|
|
64
|
+
list issues; paginated, `page_size` capped at 100.
|
|
65
|
+
- `get_issue(issue_id, page_size?, cursor?)` — issue detail + assembled
|
|
66
|
+
rule-level remediation guidance + a page of affected objects; `objects` is
|
|
67
|
+
paginated the same way as `list_issues`.
|
|
68
|
+
- `get_finding_detail(issue_id, object_id, detail_id?)` — per-finding file path,
|
|
69
|
+
code snippet, evidence, and inline remediation.
|
|
70
|
+
- `find_issues_for_file(path, max_issues?)` — issues whose findings reference a
|
|
71
|
+
given working-tree file (client-side scan; matches by shared path suffix).
|
|
72
|
+
The scan follows pagination but is bounded — `max_issues` is capped at 500 and
|
|
73
|
+
the call at 300 backend requests — and returns a `scan` block reporting
|
|
74
|
+
`complete`, `issues_scanned`, `requests` and `errors`. **`complete: false`
|
|
75
|
+
means the caps were hit and the file may have findings this result omits**;
|
|
76
|
+
treat it as "unknown", not as "clean", and narrow the search with
|
|
77
|
+
`list_issues` filters instead.
|
|
78
|
+
- `get_remediation_guidance(rule_name)` — rule-level remediation markdown.
|
|
79
|
+
|
|
80
|
+
**Inventory browse**
|
|
81
|
+
|
|
82
|
+
- `list_models | list_agents | list_tools | list_mcp_servers(name?, severity?, supplier?, library?, page_size?, cursor?)`
|
|
83
|
+
- `get_model | get_agent | get_tool | get_mcp_server(asset_id)` — detail plus
|
|
84
|
+
attached issues, related assets, and code locations.
|
|
85
|
+
|
|
86
|
+
**Guardrails & LLM-interaction analytics**
|
|
87
|
+
|
|
88
|
+
- `list_guardrail_policies(search?, page?, page_size?)` — page-numbered (not
|
|
89
|
+
cursor-based); `page_size` capped at 100.
|
|
90
|
+
- `get_guardrail_policy(policy_id)` — policy detail: name, description,
|
|
91
|
+
user/assistant detector configuration.
|
|
92
|
+
- `get_guardrail_interaction_counts | get_guardrail_outcomes | get_guardrail_categories(agent_id?)`
|
|
93
|
+
— guardrail-decision dashboards across LLM interactions, optionally scoped
|
|
94
|
+
to one agent.
|
|
95
|
+
- `list_llm_interactions(search?, agent_id?, page_size?, cursor?)` — prompt/
|
|
96
|
+
response pairs with guardrail outcomes; rows are trimmed (long text
|
|
97
|
+
truncated, per-turn events omitted) for context budget. `page_size` capped
|
|
98
|
+
at 100.
|
|
99
|
+
- `get_interaction(interaction_id)` — one interaction's full detail.
|
|
100
|
+
- `list_llm_sessions(agent_id, sort?, sort_dir?, page_size?, cursor?)` —
|
|
101
|
+
grouped conversation turns for one agent (required). `page_size` capped at 100.
|
|
102
|
+
- `get_llm_session(session_id)` — one session's aggregate cost/tokens/turns
|
|
103
|
+
plus the full per-turn list.
|
|
104
|
+
|
|
105
|
+
**Red-teaming / eval**
|
|
106
|
+
|
|
107
|
+
- `list_evaluations(search?, approach?, page?, page_size?, order?)` —
|
|
108
|
+
evaluation definitions (probes/metrics), including red-teaming adversarial
|
|
109
|
+
probes; `approach` is `probe` or `metric`. Page-numbered; `page_size`
|
|
110
|
+
capped at 100.
|
|
111
|
+
- `get_evaluation(evaluation_id)` — full definition detail, including
|
|
112
|
+
`attack_techniques` / `adversarial_goals` / `num_prompts` / `max_turns` for
|
|
113
|
+
adversarial-probe evaluations.
|
|
114
|
+
- `list_agent_evaluations(agent_id?, evaluation_id?, search?, page?, page_size?, order?)`
|
|
115
|
+
— agent↔evaluation assignments, each with `latest_run_status`/`progress`/
|
|
116
|
+
`summary` and a `score_trend` (last 5 scores). Page-numbered; `page_size`
|
|
117
|
+
capped at 100.
|
|
118
|
+
- `get_agent_evaluation(agent_evaluation_id)` — one assignment's full detail.
|
|
119
|
+
- `get_agent_evaluation_summary(agent_id)` — one agent's evaluation health
|
|
120
|
+
rollup: health score, per-category OWASP coverage, and score trend.
|
|
121
|
+
- `list_evaluation_runs(evaluation_id?, agent_evaluation_id?, page?, page_size?, order?)`
|
|
122
|
+
— runs; `status` is `queued`/`running`/`finished`/`error`. Page-numbered;
|
|
123
|
+
`page_size` capped at 100.
|
|
124
|
+
- `get_evaluation_run(evaluation_run_id)` — one run's detail.
|
|
125
|
+
- `list_evaluation_run_results(evaluation_run_id, page?, page_size?, order?)`
|
|
126
|
+
— one run's per-prompt results; `status` is `passed`/`failed`/`error`/
|
|
127
|
+
`scored`. There is no single-result detail endpoint, so `conversation`
|
|
128
|
+
transcripts are trimmed rather than dropped: every turn is kept but each
|
|
129
|
+
turn's text is truncated to 300 characters. Page-numbered; `page_size`
|
|
130
|
+
capped at 100.
|
|
131
|
+
- `get_agent_endpoint(agent_id)` — an agent's red-teaming target-endpoint
|
|
132
|
+
config (`endpoint_url`, `endpoint_auth_type`, `model_type`, `config`);
|
|
133
|
+
secrets are redacted server-side and always come back empty.
|
|
134
|
+
|
|
135
|
+
## Remediation guidance
|
|
136
|
+
|
|
137
|
+
Rule-level remediation markdown has **no dedicated API** — it is served by the
|
|
138
|
+
instance's web server as static assets at `{instance}/assets/docs-remediations/…`
|
|
139
|
+
(the same origin and files the web UI reads). This server fetches them at runtime
|
|
140
|
+
over HTTP through the shared client and caches them per session; nothing is
|
|
141
|
+
bundled into the package. When a rule has no docs (or the assets origin is
|
|
142
|
+
unreachable), fall back to the per-finding `remediation` text from
|
|
143
|
+
`get_finding_detail`.
|
|
144
|
+
|
|
145
|
+
For offline development or tests, set `SWITCH_TRUST_REMEDIATION_DIR` to a local directory
|
|
146
|
+
laid out like the assets (`rule-name-to-remediation-folder-map.json` + per-rule
|
|
147
|
+
folders); the loader then reads from disk and never touches the network.
|
|
148
|
+
|
|
149
|
+
## Development
|
|
150
|
+
|
|
151
|
+
- Layout: `src/switch_trust_mcp/` (`src/` layout), tests under `test/`.
|
|
152
|
+
- Editable install: `pip install -e '.[dev]'`, then run `switch-trust-mcp`.
|
|
153
|
+
- Docs are fetched from your instance at runtime; for offline work point
|
|
154
|
+
`SWITCH_TRUST_REMEDIATION_DIR` at a local copy of the docs directory.
|
|
155
|
+
|
|
156
|
+
## Tests
|
|
157
|
+
|
|
158
|
+
```bash
|
|
159
|
+
pytest
|
|
160
|
+
```
|
|
161
|
+
|
|
162
|
+
Tests are hermetic (httpx `MockTransport` for the client and the remediation-docs
|
|
163
|
+
fetch, a fake client + `SWITCH_TRUST_REMEDIATION_DIR` for the tools), so they need no
|
|
164
|
+
network or live backend.
|
|
@@ -0,0 +1,84 @@
|
|
|
1
|
+
[build-system]
|
|
2
|
+
requires = ["setuptools>=68.0", "wheel"]
|
|
3
|
+
build-backend = "setuptools.build_meta"
|
|
4
|
+
|
|
5
|
+
[project]
|
|
6
|
+
name = "switch-trust-mcp"
|
|
7
|
+
version = "0.1.0"
|
|
8
|
+
description = "Switch Trust platform MCP server: read-only AI-SPM issues, inventory, and remediation guidance for coding agents"
|
|
9
|
+
readme = "README.md"
|
|
10
|
+
# 3.11+: the generated OpenAPI clients import ``typing.Self`` (new in 3.11) at
|
|
11
|
+
# module top with no ``typing_extensions`` fallback, so 3.10 would ImportError
|
|
12
|
+
# on first import.
|
|
13
|
+
requires-python = ">=3.11"
|
|
14
|
+
license = { text = "Apache-2.0" }
|
|
15
|
+
authors = [
|
|
16
|
+
{ name = "SandboxAQ" },
|
|
17
|
+
]
|
|
18
|
+
keywords = ["ai", "mcp", "security", "ai-spm", "switch-trust"]
|
|
19
|
+
classifiers = [
|
|
20
|
+
"Development Status :: 3 - Alpha",
|
|
21
|
+
"Intended Audience :: Developers",
|
|
22
|
+
"License :: OSI Approved :: Apache Software License",
|
|
23
|
+
"Programming Language :: Python :: 3",
|
|
24
|
+
"Programming Language :: Python :: 3.11",
|
|
25
|
+
"Programming Language :: Python :: 3.12",
|
|
26
|
+
"Programming Language :: Python :: 3.13",
|
|
27
|
+
"Topic :: Software Development :: Libraries :: Python Modules",
|
|
28
|
+
"Typing :: Typed",
|
|
29
|
+
]
|
|
30
|
+
dependencies = [
|
|
31
|
+
"httpx>=0.28,<1",
|
|
32
|
+
"mcp>=1.27,<2",
|
|
33
|
+
# Runtime for the generated OpenAPI clients (switch_trust_mcp._platform_api /
|
|
34
|
+
# _auth_api): attrs models and date parsing.
|
|
35
|
+
"attrs>=25,<27",
|
|
36
|
+
"python-dateutil>=2.9,<3",
|
|
37
|
+
]
|
|
38
|
+
|
|
39
|
+
[project.optional-dependencies]
|
|
40
|
+
dev = ["pytest>=8,<9"]
|
|
41
|
+
# Release-audit tooling: `make release-audit` in the public repo. gitleaks is a
|
|
42
|
+
# Go binary and is installed separately.
|
|
43
|
+
audit = [
|
|
44
|
+
"pip-licenses>=5.0",
|
|
45
|
+
"cyclonedx-bom>=6.0",
|
|
46
|
+
"pip-audit>=2.7",
|
|
47
|
+
# Exact pin, not >= or ~=: different pip-compile patch versions have been
|
|
48
|
+
# observed changing requirements.lock's header comment / `# via` ordering
|
|
49
|
+
# with zero actual dependency change, which the sync's byte-exact diff
|
|
50
|
+
# treats as staleness (see sync/README.md, "Dependency lockfile"). Loosening
|
|
51
|
+
# this to ~=7.6 broke the next release's sync when 7.6.2 shipped.
|
|
52
|
+
"pip-tools==7.6.2",
|
|
53
|
+
]
|
|
54
|
+
|
|
55
|
+
[project.scripts]
|
|
56
|
+
switch-trust-mcp = "switch_trust_mcp.server:main"
|
|
57
|
+
|
|
58
|
+
[project.urls]
|
|
59
|
+
Repository = "https://github.com/sandbox-quantum/switch-trust-mcp"
|
|
60
|
+
|
|
61
|
+
[tool.setuptools.packages.find]
|
|
62
|
+
where = ["src"]
|
|
63
|
+
|
|
64
|
+
[tool.setuptools.package-data]
|
|
65
|
+
switch_trust_mcp = ["py.typed", "remediation_procedure.md"]
|
|
66
|
+
"switch_trust_mcp._platform_api" = ["py.typed"]
|
|
67
|
+
"switch_trust_mcp._auth_api" = ["py.typed"]
|
|
68
|
+
|
|
69
|
+
[tool.pytest.ini_options]
|
|
70
|
+
testpaths = ["test"]
|
|
71
|
+
|
|
72
|
+
[tool.mypy]
|
|
73
|
+
strict = true
|
|
74
|
+
warn_return_any = true
|
|
75
|
+
warn_unused_configs = true
|
|
76
|
+
|
|
77
|
+
# Ruff is configured repo-wide in //ruff.toml. Do not add a [tool.ruff] section
|
|
78
|
+
# here: ruff resolves config per-file by walking up from the file, so a section
|
|
79
|
+
# in this pyproject would shadow the root config for this whole subtree. A
|
|
80
|
+
# line-length = 120 section here did exactly that, leaving `ruff format` and
|
|
81
|
+
# `ruff check` disagreeing about this package.
|
|
82
|
+
#
|
|
83
|
+
# Ruff's own default line-length is 88, the same as //ruff.toml, so the synced
|
|
84
|
+
# public repo keeps formatting these files identically with no config at all.
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
"""switch-trust-mcp: the Switch Trust platform MCP server for coding agents.
|
|
2
|
+
|
|
3
|
+
v1 exposes read-only AI-SPM issues, inventory, and remediation guidance from a
|
|
4
|
+
Switch Trust instance. The package is named for the platform (not AI-SPM
|
|
5
|
+
specifically) so it can grow to cover additional Switch Trust product domains
|
|
6
|
+
over time.
|
|
7
|
+
"""
|
|
8
|
+
|
|
9
|
+
from __future__ import annotations
|
|
10
|
+
|
|
11
|
+
from importlib.metadata import PackageNotFoundError, version
|
|
12
|
+
|
|
13
|
+
try:
|
|
14
|
+
__version__ = version("switch-trust-mcp")
|
|
15
|
+
except PackageNotFoundError: # not installed (e.g. running from a source checkout)
|
|
16
|
+
__version__ = "0.0.0-dev"
|
|
17
|
+
|
|
18
|
+
__all__ = ["__version__"]
|