Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/awslabs/mcp
/ functions
Functions
35,417 in github.com/awslabs/mcp
⨍
Functions
35,417
◇
Types & classes
5,673
↳
Endpoints
3,994
↓ 1 callers
Function
_as_list
Normalize a policy element that may be a single string or a list of strings.
src/iam-mcp-server/awslabs/iam_mcp_server/server.py:115
↓ 1 callers
Function
_as_tool_predicate
Normalize a predicate or a collection of known tool names into a name predicate.
src/aws-healthomics-mcp-server/integration/harness/mcp_client.py:355
↓ 1 callers
Function
_assemble_bundle
Fetch every source, validate each, and return the combined PEM bytes. Raises: BundleIntegrityError: If a source or the assembled bundle f
src/postgres-mcp-server/hatch_build.py:218
↓ 1 callers
Function
_assert_credential_param
Assert one credential parameter is an optional string defaulting to None.
src/aws-healthomics-mcp-server/tests/test_tool_surface.py:57
↓ 1 callers
Method
_assert_files_match
Assert that generated file matches snapshot.
src/dynamodb-mcp-server/tests/repo_generation_tool/integration/test_python_snapshot_generation.py:292
↓ 1 callers
Method
_assert_json_files_match
Assert that JSON files match, ignoring key ordering.
src/dynamodb-mcp-server/tests/repo_generation_tool/integration/test_python_snapshot_generation.py:309
↓ 1 callers
Function
_assert_round_trips
Assert a record preserves its spec and renders the expected item shape.
src/aws-healthomics-mcp-server/integration/harness_tests/test_tenants_property.py:109
↓ 1 callers
Function
_assert_system_trust_store_supported
Raise if the loaded libpq is too old to understand ``sslrootcert=system``. Fails fast with an actionable message instead of letting libpq < 16 tr
src/postgres-mcp-server/awslabs/postgres_mcp_server/connection/psycopg_pool_connection.py:98
↓ 1 callers
Function
_async_shutdown
()
src/valkey-mcp-server/awslabs/valkey_mcp_server/main.py:120
↓ 1 callers
Function
_atomic_write
Write ``content`` to ``abs_path`` atomically (temp file + os.replace). A crash between the write and the replace leaves the original file (or no
src/postgres-mcp-server/hatch_build.py:244
↓ 1 callers
Function
_attempt_direct_connection
Attempt a raw TCP connection to ``host:port``. Returns ``None`` if the connection unexpectedly establishes (a sole-ingress violation), and ra
src/aws-healthomics-mcp-server/integration/tests/test_direct_access_refused.py:98
↓ 1 callers
Function
_auto_create_index
Create a minimal vector index for auto-creation. Reads defaults from VALKEY_VECTOR_ALGORITHM and VALKEY_VECTOR_DISTANCE_METRIC environment va
src/valkey-mcp-server/awslabs/valkey_mcp_server/tools/search_add_documents.py:47
↓ 1 callers
Function
_avg_ms_from_duration
Compute average latency in ms from a service_events ``duration`` block (microseconds).
src/cloudwatch-applicationsignals-mcp-server/awslabs/cloudwatch_applicationsignals_mcp_server/service_events/cw_logs.py:277
↓ 1 callers
Function
_await_analysis
Poll GetCommitmentPurchaseAnalysis until the status is terminal or the wait runs out. ``latest`` holds the last response and the last throttle, f
src/billing-cost-management-mcp-server/awslabs/billing_cost_management_mcp_server/tools/sp_purchase_analyzer_tools.py:389
↓ 1 callers
Function
_b64
(obj: dict)
src/aws-healthomics-mcp-server/tests/test_per_request_freshness_property.py:66
↓ 1 callers
Function
_b64
(obj: dict)
src/aws-healthomics-mcp-server/tests/test_multihop_identity_propagation.py:69
↓ 1 callers
Function
_b64
(obj: dict)
src/aws-healthomics-mcp-server/tests/test_jwt_external_id_enforcement_property.py:57
↓ 1 callers
Function
_b64
(obj: dict)
src/aws-healthomics-mcp-server/tests/test_jwt_exchange_failure.py:59
↓ 1 callers
Function
_b64
(obj: dict)
src/aws-healthomics-mcp-server/tests/test_jwt_derive_assume_role_shape.py:62
↓ 1 callers
Function
_b64
(obj: dict)
src/aws-healthomics-mcp-server/tests/test_jwt_backward_compat_property.py:61
↓ 1 callers
Function
_b64
(obj: dict)
src/aws-healthomics-mcp-server/tests/test_inbound_jwt_exchange.py:48
↓ 1 callers
Function
_b64
(obj: dict)
src/aws-healthomics-mcp-server/tests/test_no_secret_leakage_property.py:90
↓ 1 callers
Function
_b64url
(raw: bytes)
src/aws-healthomics-mcp-server/tests/test_middleware_context_lifecycle.py:86
↓ 1 callers
Function
_base_url
(region: str)
src/cloudwatch-applicationsignals-mcp-server/awslabs/cloudwatch_applicationsignals_mcp_server/service_events/promql_client.py:69
↓ 1 callers
Function
_bc_page_spec
Build the PageSpec shared by the Billing Conductor lists that take MaxResults 1-100.
src/billing-cost-management-mcp-server/awslabs/billing_cost_management_mcp_server/tools/billing_conductor_operations.py:61
↓ 1 callers
Function
_bearer_headers
Build the request headers carrying the caller's bearer token.
src/aws-healthomics-mcp-server/integration/tests/test_apigateway_transport.py:63
↓ 1 callers
Function
_bearer_headers
Build the request headers carrying the caller's bearer token.
src/aws-healthomics-mcp-server/integration/tests/test_agentcore_transport.py:88
↓ 1 callers
Function
_bearer_headers
Build an ``Authorization: Bearer <jwt>`` header for the given claims.
src/aws-healthomics-mcp-server/tests/test_middleware_context_lifecycle.py:83
↓ 1 callers
Function
_bearer_scope
Build an ASGI HTTP scope with an Authorization: Bearer header.
src/aws-healthomics-mcp-server/tests/test_jwt_backward_compat_property.py:70
↓ 1 callers
Function
_build_account_charges_request
Build the ListBusinessSupportAccountCharges request parameters. ``accountId`` is a filter narrowing the result to one account inside the paye
src/billing-cost-management-mcp-server/awslabs/billing_cost_management_mcp_server/tools/business_support_operations.py:452
↓ 1 callers
Function
_build_and_push_image
Build the harness image and push it to ECR, returning the pushed image URI. Live path only. boto3 and subprocess are imported lazily so this modu
src/aws-healthomics-mcp-server/integration/deploy/agentcore.py:902
↓ 1 callers
Function
_build_ap_row
Build a single access pattern table row.
src/dynamodb-mcp-server/awslabs/dynamodb_mcp_server/cost_performance_calculator/report_generator.py:125
↓ 1 callers
Method
_build_batch_run_settings
()
src/aws-healthomics-mcp-server/tests/test_run_batch.py:1698
↓ 1 callers
Function
_build_credentials
Build GLIDE server credentials from VALKEY_CFG. Two modes: - IAM authentication (VALKEY_IAM_AUTH=true): required for Amazon ElastiCache serve
src/valkey-mcp-server/awslabs/valkey_mcp_server/common/connection.py:64
↓ 1 callers
Function
_build_embedding_config
Build embedding configuration with conditional logic.
src/valkey-mcp-server/awslabs/valkey_mcp_server/common/config.py:44
↓ 1 callers
Method
_build_entities_involved_list
Build entities_involved array with table, entity, and action. Args: pattern: Cross-table pattern definition Returns:
src/dynamodb-mcp-server/awslabs/dynamodb_mcp_server/repo_generation_tool/generators/jinja2_generator.py:758
↓ 1 callers
Function
_build_field
Translate a schema field dict into a GLIDE Field object.
src/valkey-mcp-server/awslabs/valkey_mcp_server/tools/search_manage_index.py:75
↓ 1 callers
Function
_build_filters
The GetProducts Filters for the parsed filters argument. An object maps each attribute to a value: a string or number is a TERM_MATCH, a list an
src/billing-cost-management-mcp-server/awslabs/billing_cost_management_mcp_server/tools/aws_pricing_operations.py:363
↓ 1 callers
Function
_build_get_credit_allocation_history_request
Assemble GetCreditAllocationHistory request parameters. Args: account_id: Resolved 12-digit AWS account ID. start_epoch: Effectiv
src/billing-cost-management-mcp-server/awslabs/billing_cost_management_mcp_server/tools/credits_operations.py:467
↓ 1 callers
Function
_build_get_credit_allocation_history_time_range
Describe the window actually queried alongside the one requested. Reporting both makes a limited window visible to the agent so a limited res
src/billing-cost-management-mcp-server/awslabs/billing_cost_management_mcp_server/tools/credits_operations.py:284
↓ 1 callers
Function
_build_get_credits_request
Assemble GetCredits request parameters, omitting the optional ones. Args: account_id: Resolved 12-digit AWS account ID. start_epo
src/billing-cost-management-mcp-server/awslabs/billing_cost_management_mcp_server/tools/credits_operations.py:442
↓ 1 callers
Function
_build_get_credits_time_range
Describe the window actually queried alongside the one requested. Reporting both makes a limited window visible to the agent so a limited res
src/billing-cost-management-mcp-server/awslabs/billing_cost_management_mcp_server/tools/credits_operations.py:548
↓ 1 callers
Function
_build_group_header
Build the standard header used by group tools.
src/cloudwatch-applicationsignals-mcp-server/awslabs/cloudwatch_applicationsignals_mcp_server/group_tools.py:171
↓ 1 callers
Function
_build_inbound_mechanisms
Build inbound identity mechanism instances from the resolved config. Maps each enabled mechanism name (already validated and ordered by precedenc
src/aws-healthomics-mcp-server/awslabs/aws_healthomics_mcp_server/server.py:459
↓ 1 callers
Function
_build_jwt_role_resolver
Select and build the JWT :class:`RoleResolver` from the resolved config. The resolver is chosen by which single role-resolution source the config
src/aws-healthomics-mcp-server/awslabs/aws_healthomics_mcp_server/server.py:409
↓ 1 callers
Method
_build_language_pairs_from_cache
Build LanguagePair objects from cached data.
src/amazon-translate-mcp-server/awslabs/amazon_translate_mcp_server/language_operations.py:411
↓ 1 callers
Function
_build_linked_account_charges_request
Build the ListEnterpriseSupportLinkedAccountCharges request parameters. ``accountId`` is a filter narrowing the result to one linked account insi
src/billing-cost-management-mcp-server/awslabs/billing_cost_management_mcp_server/tools/enterprise_support_operations.py:286
↓ 1 callers
Method
_build_metrics_insights_query
Build a Metrics Insights query.
src/cloudwatch-mcp-server/awslabs/cloudwatch_mcp_server/cloudwatch_metrics/tools.py:548
↓ 1 callers
Function
_build_padded_row
Build a single padded markdown table row.
src/dynamodb-mcp-server/awslabs/dynamodb_mcp_server/cost_performance_calculator/report_generator.py:64
↓ 1 callers
Function
_build_parser
Build the argument parser for transport and network configuration flags.
src/aws-healthomics-mcp-server/awslabs/aws_healthomics_mcp_server/config.py:424
↓ 1 callers
Function
_build_restricted_allowlist
Derive a restricted allowlist from ALLOWED_CUSTOM_OPERATIONS by removing denied entries.
src/aws-api-mcp-server/awslabs/aws_api_mcp_server/core/parser/parser.py:141
↓ 1 callers
Function
_build_retrieval_configuration
Build a ``retrievalConfiguration`` for the knowledge base type.
src/bedrock-kb-retrieval-mcp-server/awslabs/bedrock_kb_retrieval_mcp_server/knowledgebases/retrieval.py:68
↓ 1 callers
Function
_build_retrievers
Build the ``retrievers`` list, applying retrieval overrides when asked for.
src/bedrock-kb-retrieval-mcp-server/awslabs/bedrock_kb_retrieval_mcp_server/knowledgebases/agentic.py:101
↓ 1 callers
Method
_build_service_characteristics
Build service characteristics for Amazon Keyspaces.
src/amazon-keyspaces-mcp-server/awslabs/amazon_keyspaces_mcp_server/client.py:400
↓ 1 callers
Method
_build_standard_metric_query
Build a standard CloudWatch metric query.
src/cloudwatch-mcp-server/awslabs/cloudwatch_mcp_server/cloudwatch_metrics/tools.py:620
↓ 1 callers
Function
_build_storage_rows
Build storage table rows for all tables and their GSIs. Returns: Tuple of (total_cost, rows) for the storage summary table.
src/dynamodb-mcp-server/awslabs/dynamodb_mcp_server/cost_performance_calculator/report_generator.py:239
↓ 1 callers
Function
_build_subscription_history_request
Build the ListBusinessSupportSubscriptionHistory request parameters. Every input is optional for this operation. Each filter is sent only when th
src/billing-cost-management-mcp-server/awslabs/billing_cost_management_mcp_server/tools/business_support_operations.py:477
↓ 1 callers
Method
_build_svg
Build SVG string from chart data. Args: chart_data: Processed chart data with timing and metadata run_info: Run infor
src/aws-healthomics-mcp-server/awslabs/aws_healthomics_mcp_server/visualization/gantt_generator.py:204
↓ 1 callers
Function
_bundled_rules_path
Return the path to the package's bundled default guard rules file.
src/aws-iac-mcp-server/awslabs/aws_iac_mcp_server/tools/cloudformation_compliance_checker.py:32
↓ 1 callers
Function
_by_task
(metric_name: str)
src/aws-healthomics-mcp-server/awslabs/aws_healthomics_mcp_server/metrics/analysis.py:292
↓ 1 callers
Method
_cache_ready_only_operations_for_service
(self, service: str)
src/aws-api-mcp-server/awslabs/aws_api_mcp_server/core/metadata/read_only_operations_list.py:95
↓ 1 callers
Function
_calculate_access_pattern
Calculate metrics for a single access pattern.
src/dynamodb-mcp-server/awslabs/dynamodb_mcp_server/cost_performance_calculator/cost_calculator.py:52
↓ 1 callers
Function
_calculate_base_cost
Calculate the base cost for projections using multiple strategies.
src/aws-pricing-mcp-server/awslabs/aws_pricing_mcp_server/report_generator.py:405
↓ 1 callers
Function
_calculate_gsi_storage
Calculate storage metrics for a GSI.
src/dynamodb-mcp-server/awslabs/dynamodb_mcp_server/cost_performance_calculator/cost_calculator.py:93
↓ 1 callers
Function
_calculate_gsi_write_amplification
Calculate write amplification for GSIs.
src/dynamodb-mcp-server/awslabs/dynamodb_mcp_server/cost_performance_calculator/cost_calculator.py:75
↓ 1 callers
Function
_calculate_table_storage
Calculate storage metrics for a table.
src/dynamodb-mcp-server/awslabs/dynamodb_mcp_server/cost_performance_calculator/cost_calculator.py:86
↓ 1 callers
Function
_call_region
(region: str)
src/aws-transform-mcp-server/awslabs/aws_transform_mcp_server/server.py:240
↓ 1 callers
Function
_call_region
(region: str)
src/aws-transform-mcp-server/awslabs/aws_transform_mcp_server/tools/configure.py:78
↓ 1 callers
Function
_cancelled
(reason)
src/billing-cost-management-mcp-server/tests/tools/test_storage_lens_tools.py:2420
↓ 1 callers
Method
_capture_environment_state
Capture relevant environment variables.
src/ecs-mcp-server/tests/unit/test_main.py:85
↓ 1 callers
Function
_catalog_form
Return the Db2 catalog form of a single identifier (ASCII-uppercased unless quoted).
src/db2-mcp-server/awslabs/db2_mcp_server/server.py:777
↓ 1 callers
Function
_ce_bound_date
Return the ``YYYY-MM-DD`` of a date or UTC-midnight timestamp, or None if it is not one. The date must exist on the calendar, so ``2026-02-30`` i
src/billing-cost-management-mcp-server/awslabs/billing_cost_management_mcp_server/utilities/sql_utils.py:822
↓ 1 callers
Function
_ce_period_bounds
Return the (start, end) to store for each Cost Explorer ``TimePeriod``. getCostAndUsage returns DAILY and MONTHLY bounds as ``YYYY-MM-DD``; g
src/billing-cost-management-mcp-server/awslabs/billing_cost_management_mcp_server/utilities/sql_utils.py:841
↓ 1 callers
Function
_ce_time_format_note
One clause on the stored period format, for sample query descriptions.
src/billing-cost-management-mcp-server/awslabs/billing_cost_management_mcp_server/utilities/sql_utils.py:922
↓ 1 callers
Function
_ce_time_period_formats
Describe how this table stores Cost Explorer periods, for the handle. The columns are TEXT and compare byte by byte, so a literal of another form
src/billing-cost-management-mcp-server/awslabs/billing_cost_management_mcp_server/utilities/sql_utils.py:885
↓ 1 callers
Function
_cell_to_text
Convert a table cell to text, preserving links as markdown. A cell like <td><a href="url">text</a></td> becomes "[text](url)". A cell with mi
src/aws-documentation-mcp-server/awslabs/aws_documentation_mcp_server/table_utils.py:486
↓ 1 callers
Function
_change_status
Classify a before/after count change for rendering arrows.
src/cloudwatch-applicationsignals-mcp-server/awslabs/cloudwatch_applicationsignals_mcp_server/service_events/tools.py:449
↓ 1 callers
Function
_check_assertions
Validate ``output`` against a dict of declarative assertions.
src/cloudwatch-applicationsignals-mcp-server/tests/test_tool_eval.py:201
↓ 1 callers
Function
_check_chunk
(chunk: List[str])
src/cloudwatch-mcp-server/awslabs/cloudwatch_mcp_server/cloudwatch_logs/index_recommender.py:221
↓ 1 callers
Function
_check_dangerous
Reject dangerous constructs that are prohibited in BOTH modes. Args: node: A node from the parse tree. Raises: SqlPolicyErro
src/postgres-mcp-server/awslabs/postgres_mcp_server/sql_guard.py:357
↓ 1 callers
Function
_check_dangerous
Reject constructs prohibited in read-only and write modes.
src/aurora-dsql-mcp-server/awslabs/aurora_dsql_mcp_server/sql_guard.py:355
↓ 1 callers
Method
_check_dsn_value
Reject a DSN attribute value that would corrupt or inject into the DSN. Values are deliberately NOT brace-quoted. Db2 CLI/ODBC documents ``{}
src/db2-mcp-server/awslabs/db2_mcp_server/connection/ibm_db_connection.py:134
↓ 1 callers
Function
_check_read_only
Reject write-set constructs when the connection is read-only. Enforced fail-closed as an allowlist: the root must be a read node type and eve
src/postgres-mcp-server/awslabs/postgres_mcp_server/sql_guard.py:425
↓ 1 callers
Function
_check_read_only
Reject syntax that is not read-only.
src/aurora-dsql-mcp-server/awslabs/aurora_dsql_mcp_server/sql_guard.py:434
↓ 1 callers
Function
_check_result
( check: CheckStatus, status: str, start: datetime, end: datetime )
src/cloudwatch-applicationsignals-mcp-server/awslabs/cloudwatch_applicationsignals_mcp_server/dynamic_instrumentation/status_assessment.py:94
↓ 1 callers
Function
_check_slo
(slo: dict)
src/cloudwatch-applicationsignals-mcp-server/awslabs/cloudwatch_applicationsignals_mcp_server/rum_tools.py:1617
↓ 1 callers
Function
_check_status_with_time_range
Check whether status events exist for the configuration in a time range.
src/cloudwatch-applicationsignals-mcp-server/awslabs/cloudwatch_applicationsignals_mcp_server/dynamic_instrumentation/status_tools.py:33
↓ 1 callers
Function
_check_subset
(subset, superset, subset_name, superset_name)
src/aws-api-mcp-server/tests/parser/test_parser.py:673
↓ 1 callers
Function
_check_trust_policy_principal
Reject trust policies that allow any AWS principal.
src/iam-mcp-server/awslabs/iam_mcp_server/server.py:196
↓ 1 callers
Function
_chunks
Split `text` into consecutive chunks of `_CHUNK_CHARS` chars.
src/redshift-mcp-server/awslabs/redshift_mcp_server/server.py:412
↓ 1 callers
Function
_citation
Flatten a citation, resolving references down to result indexes.
src/bedrock-kb-retrieval-mcp-server/awslabs/bedrock_kb_retrieval_mcp_server/knowledgebases/agentic.py:90
↓ 1 callers
Function
_clamp_daily
Move a Daily start forward into the last-90-days window the API serves. COH rejects a start more than 90 days before today (the limit is start-to
src/billing-cost-management-mcp-server/awslabs/billing_cost_management_mcp_server/tools/cost_optimization_hub_tools.py:104
↓ 1 callers
Function
_clamp_efficiency_time_span
Move start_date forward into the lookback the COH API will serve. ``ListEfficiencyMetrics`` only serves data whose ``start`` is within the most
src/billing-cost-management-mcp-server/awslabs/billing_cost_management_mcp_server/tools/cost_optimization_hub_tools.py:142
↓ 1 callers
Function
_clamp_get_credit_allocation_history_range
Narrow a range to the enforced 24-month window ending no later than now. Args: start_epoch: Requested range start in epoch seconds.
src/billing-cost-management-mcp-server/awslabs/billing_cost_management_mcp_server/tools/credits_operations.py:311
↓ 1 callers
Function
_clamp_get_credits_range
Narrow a range to the enforced one-year lookback ending no later than now. An omitted end date is left as None, so no end date is sent and the se
src/billing-cost-management-mcp-server/awslabs/billing_cost_management_mcp_server/tools/credits_operations.py:494
↓ 1 callers
Function
_clamp_monthly
Move a Monthly start forward into the last-3-months window the API serves. COH rejects a start more than 3 months before the current month (the l
src/billing-cost-management-mcp-server/awslabs/billing_cost_management_mcp_server/tools/cost_optimization_hub_tools.py:120
↓ 1 callers
Function
_classify_business_support_error
Classify the two Business Support failures that need their own guidance. Both are routinely misread. ``AccessDeniedException`` has two independen
src/billing-cost-management-mcp-server/awslabs/billing_cost_management_mcp_server/tools/business_support_operations.py:113
↓ 1 callers
Function
_classify_enterprise_support_error
Classify the two Enterprise Support failures that need their own guidance. Both are routinely misread. ``AccessDeniedException`` has two independ
src/billing-cost-management-mcp-server/awslabs/billing_cost_management_mcp_server/tools/enterprise_support_operations.py:73
↓ 1 callers
Function
_client
(service: str)
src/aws-healthomics-mcp-server/integration/deploy/agentcore.py:867
↓ 1 callers
Method
_close_best_effort
Close a replaced connection, tolerating a sync or async ``close()``.
src/db2-mcp-server/awslabs/db2_mcp_server/connection/db_connection_map.py:158
← previous
next →
4,801–4,900 of 35,417, ranked by callers