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
Method
_parse_input_config
Parse input configuration from job details.
src/amazon-translate-mcp-server/awslabs/amazon_translate_mcp_server/batch_manager.py:592
↓ 1 callers
Function
_parse_jwt_session_duration
Convert a raw JWT session-duration value to a validated integer of seconds. An absent or whitespace-only value yields :data:`consts.DEFAULT_J
src/aws-healthomics-mcp-server/awslabs/aws_healthomics_mcp_server/config.py:257
↓ 1 callers
Method
_parse_key_schema
Parse KeySchema and return partition and sort keys. Args: key_schema: List of key schema element dictionaries attr_ty
src/dynamodb-mcp-server/awslabs/dynamodb_mcp_server/cdk_generator/models.py:283
↓ 1 callers
Function
_parse_listing_line
Extract a file name from one line of textual listing output. Handles both bare names ('a.csv') and long-format `ls -l` rows ('-rw-r--r-- 1 ro
src/amazon-bedrock-agentcore-mcp-server/awslabs/amazon_bedrock_agentcore_mcp_server/tools/code_interpreter/files.py:131
↓ 1 callers
Method
_parse_llm_response
Parse LLM response into structured criteria results. Expected format: "1. [PASS] Reasoning" or "1. [FAIL] Reasoning"
src/cloudwatch-applicationsignals-mcp-server/evals/core/validator.py:185
↓ 1 callers
Method
_parse_matrix
Parse a range-query (matrix) result into TimeSeries.
src/aws-healthomics-mcp-server/awslabs/aws_healthomics_mcp_server/metrics/client.py:271
↓ 1 callers
Method
_parse_metric_data_response
Parse CloudWatch GetMetricData response into MetricData.
src/cloudwatch-mcp-server/awslabs/cloudwatch_mcp_server/cloudwatch_metrics/tools.py:1151
↓ 1 callers
Method
_parse_metric_dimensions
Parse metric dimensions from the alarm data. Args: alarm_data: Raw alarm recommendation data Returns: AlarmR
src/cloudwatch-mcp-server/awslabs/cloudwatch_mcp_server/cloudwatch_metrics/tools.py:1132
↓ 1 callers
Function
_parse_month
Parse one period and require it to be exactly one calendar month.
src/billing-cost-management-mcp-server/awslabs/billing_cost_management_mcp_server/tools/cost_comparison_tools.py:109
↓ 1 callers
Function
_parse_multi_row_thead
Parse a multi-row thead into a flat list of column headers. Handles rowspan (cells that span from an earlier row into the last row) and colsp
src/aws-documentation-mcp-server/awslabs/aws_documentation_mcp_server/table_utils.py:256
↓ 1 callers
Function
_parse_outcome_counts
Return a mapping of pytest outcome name -> count parsed from a run's output. Scans the combined pytest output for the summary tokens (``N passed`
src/aws-healthomics-mcp-server/integration/harness_tests/test_default_selection_smoke.py:106
↓ 1 callers
Method
_parse_output_config
Parse output configuration from job details.
src/amazon-translate-mcp-server/awslabs/amazon_translate_mcp_server/batch_manager.py:607
↓ 1 callers
Function
_parse_port
Convert a raw port value to an integer in ``1..65535``, applying the default. An absent or whitespace-only value yields the default port. Otherwi
src/aws-healthomics-mcp-server/awslabs/aws_healthomics_mcp_server/config.py:226
↓ 1 callers
Function
_parse_ppl_fields
Parse a PPL query string and return {field_name: usage_type}.
src/cloudwatch-mcp-server/awslabs/cloudwatch_mcp_server/cloudwatch_logs/query_parser.py:258
↓ 1 callers
Function
_parse_resource_arns
Parse the resource_arns JSON array into a list of ARN strings. A single unwrapped ARN is accepted too, since callers sometimes pass one bare.
src/billing-cost-management-mcp-server/awslabs/billing_cost_management_mcp_server/tools/compute_optimizer_tools.py:524
↓ 1 callers
Function
_parse_snapshot_fields
Extract key debugging fields from a raw CloudWatch Logs snapshot result. Handles the OTLP log record format where: - Metadata is in top-level
src/cloudwatch-applicationsignals-mcp-server/awslabs/cloudwatch_applicationsignals_mcp_server/dynamic_instrumentation/snapshot_parsing.py:101
↓ 1 callers
Function
_parse_spec_bytes
Parse fetched spec bytes into a dict. Any external ``$ref`` is refused before prance sees the spec (see ``_reject_external_refs``), then pran
src/openapi-mcp-server/awslabs/openapi_mcp_server/utils/openapi.py:307
↓ 1 callers
Function
_parse_sql_fields
Parse a SQL query string and return {field_name: usage_type}.
src/cloudwatch-mcp-server/awslabs/cloudwatch_mcp_server/cloudwatch_logs/query_parser.py:224
↓ 1 callers
Method
_parse_table
Parse a single table definition from JSON. Args: table_data: Dictionary containing table definition table_index: Inde
src/dynamodb-mcp-server/awslabs/dynamodb_mcp_server/cdk_generator/models.py:368
↓ 1 callers
Function
_parse_time
Parse an ISO-8601 timestamp argument (None passes through).
src/aws-healthomics-mcp-server/awslabs/aws_healthomics_mcp_server/tools/run_metrics.py:108
↓ 1 callers
Function
_parse_timestamp
Parse an ISO-8601 date or timestamp, treating a naive value as UTC. A trailing ``Z`` is accepted as UTC because ``datetime.fromisoformat`` does n
src/billing-cost-management-mcp-server/awslabs/billing_cost_management_mcp_server/tools/business_support_operations.py:383
↓ 1 callers
Function
_parse_timestamp
Parse an ISO 8601 bound as a UTC instant, so two bounds compare. A value without an offset is taken as UTC, which is how botocore sends it. R
src/billing-cost-management-mcp-server/awslabs/billing_cost_management_mcp_server/tools/bcm_pricing_calculator_tools.py:657
↓ 1 callers
Function
_parse_timestamp_string
Parse a timestamp string into a number or datetime; return None if neither.
src/billing-cost-management-mcp-server/awslabs/billing_cost_management_mcp_server/utilities/time_utils.py:124
↓ 1 callers
Method
_parse_ttl_specification
Parse TimeToLiveSpecification and return TTL attribute name if enabled. Args: ttl_data: TimeToLiveSpecification dictionary
src/dynamodb-mcp-server/awslabs/dynamodb_mcp_server/cdk_generator/models.py:338
↓ 1 callers
Method
_parse_vector
Parse an instant-query (vector) result into single-sample TimeSeries.
src/aws-healthomics-mcp-server/awslabs/aws_healthomics_mcp_server/metrics/client.py:283
↓ 1 callers
Function
_percentile
Nearest-rank percentile of a non-empty list.
src/aws-healthomics-mcp-server/awslabs/aws_healthomics_mcp_server/tools/run_metrics.py:720
↓ 1 callers
Function
_percentile_ms_from_duration
Approximate a percentile (ms) from the sparse ``duration`` histogram (microseconds). The ``duration`` block holds parallel ``Values`` (bucket mid
src/cloudwatch-applicationsignals-mcp-server/awslabs/cloudwatch_applicationsignals_mcp_server/service_events/cw_logs.py:288
↓ 1 callers
Function
_performance_pagination
Build the pagination block for a performance ranking. A ranking is not continuable: groups past the fetch would be ranked on their own, so th
src/billing-cost-management-mcp-server/awslabs/billing_cost_management_mcp_server/tools/cost_optimization_hub_helpers.py:628
↓ 1 callers
Function
_phase2_plan
Functional-suite cells derived from the resolved run plan. ``args.plan_by_kind`` (built in ``main()`` from --endpoint-types / --auth-
src/postgres-mcp-server/tests/e2e/e2e_integration_test.py:3662
↓ 1 callers
Function
_plan_id
Return the plan ID of a Savings Plan ARN; any other value is returned stripped. SavingsPlansToExclude takes only the 36-character plan ID, the la
src/billing-cost-management-mcp-server/awslabs/billing_cost_management_mcp_server/tools/sp_purchase_analyzer_tools.py:297
↓ 1 callers
Method
_poll_until_ready
Poll GetJob until status exits ASSESSING/STARTING/CREATED.
src/aws-transform-mcp-server/awslabs/aws_transform_mcp_server/tools/job.py:131
↓ 1 callers
Function
_populated_response
Build a response with every output-shape field populated, from the botocore model.
src/billing-cost-management-mcp-server/tests/tools/test_compute_optimizer_tools.py:2405
↓ 1 callers
Function
_positive_int_env
Read a positive int from the environment, or ``default`` when unset or invalid. Evaluated at import, so a malformed override must not raise.
src/billing-cost-management-mcp-server/awslabs/billing_cost_management_mcp_server/utilities/constants.py:37
↓ 1 callers
Function
_precedence_index
Return the documented precedence index, lowest priority for unknown names.
src/aws-healthomics-mcp-server/tests/test_mechanism_precedence.py:93
↓ 1 callers
Method
_prepare_list_jobs_kwargs
Prepare kwargs for listing model import jobs. Args: request: Optional request parameters Returns: Dict[str,
src/aws-bedrock-custom-model-import-mcp-server/awslabs/aws_bedrock_custom_model_import_mcp_server/services/model_import_service.py:201
↓ 1 callers
Method
_prepare_list_models_kwargs
Prepare kwargs for listing imported models. Args: request: Optional request parameters Returns: Dict[str, An
src/aws-bedrock-custom-model-import-mcp-server/awslabs/aws_bedrock_custom_model_import_mcp_server/services/imported_model_service.py:74
↓ 1 callers
Function
_prepare_output_dir_path
Portable fallback: create the output directory and verify it has no links. Used where directory-relative, no-follow operations are not available
src/document-loader-mcp-server/awslabs/document_loader_mcp_server/server.py:691
↓ 1 callers
Function
_preview_captured_value
Return a compact preview for one snapshot CapturedValue.
src/cloudwatch-applicationsignals-mcp-server/awslabs/cloudwatch_applicationsignals_mcp_server/dynamic_instrumentation/snapshot_parsing.py:21
↓ 1 callers
Function
_preview_input_shapes
Return {preview operation: botocore input shape}, or {} if the model cannot be loaded.
src/billing-cost-management-mcp-server/awslabs/billing_cost_management_mcp_server/tools/compute_optimizer_automation_tools.py:127
↓ 1 callers
Function
_previous_month
Return the previous calendar month in ``YYYY-MM``, rolling back the year. Derived here rather than imported so the boundary is checked against an
src/billing-cost-management-mcp-server/tests/tools/test_enterprise_support_operations.py:211
↓ 1 callers
Function
_principal_matches_healthomics
Check if a principal matches the HealthOmics principal.
src/aws-healthomics-mcp-server/tests/test_ecr_utils.py:526
↓ 1 callers
Method
_print_summary
Print generation summary with flexible file listing.
src/dynamodb-mcp-server/awslabs/dynamodb_mcp_server/repo_generation_tool/output/output_manager.py:119
↓ 1 callers
Method
_process_group_stage
Process $group stage in aggregation.
src/documentdb-mcp-server/tests/conftest.py:494
↓ 1 callers
Method
_process_project_stage
Process $project stage in aggregation.
src/documentdb-mcp-server/tests/conftest.py:559
↓ 1 callers
Method
_process_sort_stage
Process $sort stage in aggregation.
src/documentdb-mcp-server/tests/conftest.py:573
↓ 1 callers
Function
_provision_apigateway
Provision the ApiGateway deployment from operator-supplied tenant specs.
src/aws-healthomics-mcp-server/integration/deploy/cli.py:195
↓ 1 callers
Function
_quote
Quote a label name or value for a PromQL selector.
src/aws-healthomics-mcp-server/awslabs/aws_healthomics_mcp_server/metrics/schema.py:511
↓ 1 callers
Function
_raise_if_error_event
Convert a modelled error event into an exception.
src/bedrock-kb-retrieval-mcp-server/awslabs/bedrock_kb_retrieval_mcp_server/knowledgebases/agentic.py:122
↓ 1 callers
Function
_read_credit_date
Read a CreditData timestamp of any wire form. Parsing is delegated to ``format_timestamp_to_utc_iso``, which accepts datetimes (naive taken a
src/billing-cost-management-mcp-server/awslabs/billing_cost_management_mcp_server/tools/credits_operations.py:98
↓ 1 callers
Function
_read_docx_helper
Helper function to test Word document reading functionality using the actual server logic.
src/document-loader-mcp-server/tests/test_document_parsing.py:97
↓ 1 callers
Function
_read_only_annotations
Return read-only tool annotations; open_world means it reads the caller's AWS account.
src/redshift-mcp-server/awslabs/redshift_mcp_server/server.py:202
↓ 1 callers
Function
_read_pptx_helper
Helper function to test PowerPoint presentation reading functionality using the actual server logic.
src/document-loader-mcp-server/tests/test_document_parsing.py:109
↓ 1 callers
Function
_read_sub
Return a user's ``sub`` attribute via ``AdminGetUser``.
src/aws-healthomics-mcp-server/integration/deploy/cognito.py:155
↓ 1 callers
Function
_read_xlsx_helper
Helper function to test Excel spreadsheet reading functionality using the actual server logic.
src/document-loader-mcp-server/tests/test_document_parsing.py:103
↓ 1 callers
Function
_receiver_role_span_limit
First instant a ``TimeInterval`` may NOT reach with a receiver role. Setting ``Filter.ReceiverRole`` raises the cap from one month to five ye
src/billing-cost-management-mcp-server/awslabs/billing_cost_management_mcp_server/tools/invoicing_operations.py:102
↓ 1 callers
Function
_recommendations_spec
Describe how a get_*_recommendations API pages (maxResults / nextToken).
src/billing-cost-management-mcp-server/awslabs/billing_cost_management_mcp_server/tools/compute_optimizer_tools.py:990
↓ 1 callers
Function
_reconnect
Drop the cached connection and reconnect under the current TLS globals.
src/postgres-mcp-server/tests/e2e/e2e_integration_test.py:3256
↓ 1 callers
Function
_record
(result: TestResult)
src/postgres-mcp-server/tests/e2e/e2e_integration_test.py:3676
↓ 1 callers
Function
_redact
Return ``detail`` if clean, otherwise a redacted message naming only the material type. Failure detail is built from exception text, which could
src/aws-healthomics-mcp-server/integration/deploy/common.py:197
↓ 1 callers
Function
_redact_in_place
Redacts the typed sensitive fields anywhere inside an ECS API structure, in place.
src/ecs-mcp-server/awslabs/ecs_mcp_server/utils/security.py:206
↓ 1 callers
Method
_register_builtin_handlers
Register built-in mock handlers.
src/cloudwatch-applicationsignals-mcp-server/evals/core/mcp_dependency_mocking_handler.py:279
↓ 1 callers
Method
_register_task_definition_params
(cls)
src/ecs-mcp-server/tests/unit/api/test_resource_management_sensitive_data.py:395
↓ 1 callers
Function
_register_tool
Register *fn* as an MCP tool named *name*, applying pagination hints. Every tool passes through :func:`paginating`, which only mutates the re
src/aws-healthomics-mcp-server/awslabs/aws_healthomics_mcp_server/server.py:287
↓ 1 callers
Function
_registered_nonblank_values
Independently compute the non-blank registered secret values the scanner honors. Mirrors the scanner's own rule: empty or blank registered values
src/aws-healthomics-mcp-server/integration/harness_tests/test_artifact_writer_property.py:55
↓ 1 callers
Function
_registered_pairs
Independently compute the (type, value) pairs the scanner should honor. Mirrors the scanner's own rule: empty or blank registered values are drop
src/aws-healthomics-mcp-server/integration/harness_tests/test_credential_scan_property.py:52
↓ 1 callers
Function
_registry_stage
Build the stage that creates the DynamoDB role registry and writes tenants. The registry table is created and the Tenant_A / Tenant_B records are
src/aws-healthomics-mcp-server/integration/deploy/apigateway.py:234
↓ 1 callers
Method
_reject
Send a minimal HTTP 401 response without dispatching to the wrapped app. Does not leak credential details in the response body. No tool runs
src/aws-healthomics-mcp-server/awslabs/aws_healthomics_mcp_server/middleware.py:225
↓ 1 callers
Function
_reject_future_month
Reject a billing month that is in the future. The current month is allowed because the API returns estimated charges for it (``isEstimated=tr
src/billing-cost-management-mcp-server/awslabs/billing_cost_management_mcp_server/tools/business_support_operations.py:258
↓ 1 callers
Function
_reject_get_credits_pre_lookback_window
Reject a window that ends before the earliest date GetCredits accepts. Such a window has no overlap with the supported lookback, so clamping the
src/billing-cost-management-mcp-server/awslabs/billing_cost_management_mcp_server/tools/credits_operations.py:515
↓ 1 callers
Function
_reject_month_before_earliest
Reject a billing month older than the earliest month with data. Zero-padded ``YYYY-MM`` strings compare correctly as strings, so no date arit
src/billing-cost-management-mcp-server/awslabs/billing_cost_management_mcp_server/tools/business_support_operations.py:234
↓ 1 callers
Function
_reject_month_before_earliest
Reject a billing month older than the earliest month with data. Zero-padded ``YYYY-MM`` strings compare correctly as strings, so no date arit
src/billing-cost-management-mcp-server/awslabs/billing_cost_management_mcp_server/tools/enterprise_support_operations.py:159
↓ 1 callers
Function
_reject_month_not_yet_closed
Reject a billing month whose billing period has not closed yet. These APIs only serve a billing month once its billing period has closed, so
src/billing-cost-management-mcp-server/awslabs/billing_cost_management_mcp_server/tools/enterprise_support_operations.py:187
↓ 1 callers
Function
_rejected
(rows)
src/postgres-mcp-server/tests/test_run_query_policy_wiring.py:315
↓ 1 callers
Function
_relative_delta
(a: Optional[float], b: Optional[float])
src/aws-healthomics-mcp-server/awslabs/aws_healthomics_mcp_server/tools/run_metrics.py:482
↓ 1 callers
Function
_remove_slides
Best-effort removal of slides written by a failed extraction.
src/document-loader-mcp-server/awslabs/document_loader_mcp_server/server.py:787
↓ 1 callers
Function
_render
(fn: str, indent: str, is_last: bool, depth: int, visited: set)
src/cloudwatch-applicationsignals-mcp-server/awslabs/cloudwatch_applicationsignals_mcp_server/service_events/formatting.py:72
↓ 1 callers
Function
_render_create_capture_limits
( max_hits: Optional[int], max_string_length: Optional[int], max_collection_width: Optional[int],
src/cloudwatch-applicationsignals-mcp-server/awslabs/cloudwatch_applicationsignals_mcp_server/dynamic_instrumentation/crud_rendering.py:24
↓ 1 callers
Function
_render_status_identifier_help
()
src/cloudwatch-applicationsignals-mcp-server/awslabs/cloudwatch_applicationsignals_mcp_server/dynamic_instrumentation/status_tools.py:64
↓ 1 callers
Function
_rendered
(served, name)
src/billing-cost-management-mcp-server/tests/test_server_instructions.py:108
↓ 1 callers
Function
_replace_or_append_report
Replace existing cost report section or append if not found. Looks for content between REPORT_START_MARKER and REPORT_END_MARKER. If found, r
src/dynamodb-mcp-server/awslabs/dynamodb_mcp_server/cost_performance_calculator/calculator_runner.py:52
↓ 1 callers
Function
_repo_root
Return the repository root (this file is at ``integration/deploy/cli.py``).
src/aws-healthomics-mcp-server/integration/deploy/cli.py:81
↓ 1 callers
Function
_report
Write the run down, in the form it will be read in a pull request. The summary leads, because that is what a reader came for. The prompt follows,
src/redshift-mcp-server/e2e_tests/run.py:292
↓ 1 callers
Function
_report_abandoned_transaction
Drop a transaction this call cannot leave open, and say so over the error that caused it. Reported bare, the name was gone and the caller was not
src/redshift-mcp-server/awslabs/redshift_mcp_server/redshift.py:1160
↓ 1 callers
Function
_report_staged_statement
Report a statement that ran, over the failure that came after it. The batch finished, so the transaction is still open and the caller's; only rea
src/redshift-mcp-server/awslabs/redshift_mcp_server/redshift.py:1133
↓ 1 callers
Function
_report_task_results
Report results for a single task. Args: task: Task instance result: TaskResult from EvalRunner verbose: If True, include
src/cloudwatch-applicationsignals-mcp-server/evals/__main__.py:106
↓ 1 callers
Function
_report_write_outcome
Raise over `error` when a write outside a transaction was applied, or may have been. Outside a transaction there is no name to drop and no sessio
src/redshift-mcp-server/awslabs/redshift_mcp_server/redshift.py:972
↓ 1 callers
Method
_requested_path
Call recommend with an empty API response and return the path it asked about.
src/aws-documentation-mcp-server/tests/test_server_aws.py:1202
↓ 1 callers
Function
_require
Return one setting, refusing an unfilled placeholder or the wrong type. Args: table: The parsed section. section: Section name, f
src/redshift-mcp-server/e2e_tests/config.py:91
↓ 1 callers
Function
_require_customer_consent
Obtain explicit user consent before granting partner data sharing.
src/aws-transform-mcp-server/awslabs/aws_transform_mcp_server/tools/engagement.py:173
↓ 1 callers
Function
_resolve
Resolve a configuration value with CLI-over-environment precedence. A command-line value wins when it is supplied and not empty/whitespace-only;
src/aws-healthomics-mcp-server/awslabs/aws_healthomics_mcp_server/config.py:99
↓ 1 callers
Function
_resolve_account_and_partition
Resolve the deployment account id and partition, calling STS lazily only if needed. When ``account_id`` is supplied (as unit tests do) no AWS cal
src/aws-healthomics-mcp-server/integration/deploy/agentcore.py:469
↓ 1 callers
Function
_resolve_blocked_dirs
Builds the list of directories that user-supplied paths may never touch. Each entry is resolved with ``os.path.realpath`` so that platforms
src/ecs-mcp-server/awslabs/ecs_mcp_server/utils/path_validation.py:66
↓ 1 callers
Function
_resolve_cpu_vendor_architectures
Parse cpu_vendor_architectures onto the API's enum spelling. Accepts a JSON array or a single bare value. Values fold case and underscores (the A
src/billing-cost-management-mcp-server/awslabs/billing_cost_management_mcp_server/tools/compute_optimizer_tools.py:859
↓ 1 callers
Method
_resolve_fixture_paths
Recursively resolve fixture file paths to absolute paths.
src/cloudwatch-applicationsignals-mcp-server/evals/core/mock_config_path_normalizer.py:99
↓ 1 callers
Function
_resolve_get_credit_allocation_history_window
Clamp the requested range and describe both windows, logging any change. Args: ctx: The MCP context object. start_epoch: Requeste
src/billing-cost-management-mcp-server/awslabs/billing_cost_management_mcp_server/tools/credits_operations.py:703
↓ 1 callers
Function
_resolve_get_credits_window
Clamp the requested range and describe both windows, logging any change. Args: ctx: The MCP context object. start_epoch: Requeste
src/billing-cost-management-mcp-server/awslabs/billing_cost_management_mcp_server/tools/credits_operations.py:581
↓ 1 callers
Function
_resolve_idle_order_by
Resolve the idle order_by input onto the API's orderBy, filling in the defaults. Keys and values fold case and underscores (the API rejects e.g.
src/billing-cost-management-mcp-server/awslabs/billing_cost_management_mcp_server/tools/compute_optimizer_tools.py:897
↓ 1 callers
Function
_resolve_log_groups
Resolve which log group(s) to query. When ``service_name`` is provided, query that service's group directly. Otherwise, enumerate all ``/aws/
src/cloudwatch-applicationsignals-mcp-server/awslabs/cloudwatch_applicationsignals_mcp_server/service_events/cw_logs.py:108
↓ 1 callers
Method
_resolve_message
Walk the exception's MRO to find the most specific safe message.
src/aws-api-mcp-server/awslabs/aws_api_mcp_server/core/common/errors.py:712
↓ 1 callers
Function
_resolve_monitoring_host
Resolve the partition-correct CloudWatch (monitoring) hostname for a region. Uses botocore's endpoint resolver so every partition gets its real D
src/cloudwatch-mcp-server/awslabs/cloudwatch_mcp_server/cloudwatch_metrics/promql_client.py:72
← previous
next →
5,301–5,400 of 35,417, ranked by callers