awslabs.aws-appsync-mcp-server

v0.2.2
awslabs.aws-appsync-mcp-server Checked 1 day ago Published 15 days ago

An AWS Labs Model Context Protocol (MCP) server for AWS AppSync Service capabilities

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

create_api

Creates a new AppSync API. This operation creates a new AppSync API with the specified configuration. The API will be created with default settings and can be further configured using additional AppSync operations.

ParameterTypeDescription
name *stringThe name of the API
event_configThe event configuration for the API
owner_contactThe owner contact information for the API
tagsA map of tags to assign to the resource

create_graphql_api

Creates a GraphQL API. This operation creates a new GraphQL API with the specified configuration. The API will be created with the authentication type and other settings provided. Supports various authentication types including API_KEY, AWS_IAM, AMAZON_COGNITO_USER_POOLS, OPENID_CONNECT, and AWS_LAMBDA. When authentication_type is API_KEY, an API key is automatically created with a 7-day expiry.

ParameterTypeDescription
authentication_type *stringThe authentication type: API_KEY, AWS_IAM, AMAZON_COGNITO_USER_POOLS, OPENID_CONNECT, AWS_LAMBDA
name *stringA user-supplied name for the GraphQL API
additional_authentication_providersA list of additional authentication providers
api_typeThe value that indicates whether the GraphQL API is a standard API (GRAPHQL) or merged API (MERGED)
enhanced_metrics_configThe enhancedMetricsConfig object
introspection_configSets the value of the GraphQL API to enable (ENABLED) or disable (DISABLED) introspection
lambda_authorizer_configConfiguration for AWS Lambda function authorization
log_configThe Amazon CloudWatch Logs configuration
merged_api_execution_role_arnThe Identity and Access Management service role ARN for a merged API
open_id_connect_configThe OpenID Connect configuration
owner_contactThe owner contact information for an API resource
query_depth_limitThe maximum depth a query can have in a single request
resolver_count_limitThe maximum number of resolvers that can be invoked in a single request
tagsA TagMap object
user_pool_configThe Amazon Cognito user pool configuration
visibilitySets the value of the GraphQL API to public (GLOBAL) or private (PRIVATE)
xray_enabledA flag indicating whether to enable X-Ray tracing

create_api_key

Creates a unique key that you can distribute to clients who invoke your API. This operation creates an API key for the specified GraphQL API. API keys are used to authenticate requests when the API uses API_KEY authentication type.

ParameterTypeDescription
api_id *stringThe ID for the GraphQL API
descriptionA description of the purpose of the API key
expiresFrom the creation time, the time after which the API key expires (Unix timestamp)

create_api_cache

Creates a cache for the GraphQL API. This operation creates an API cache for the specified GraphQL API. Caching improves performance by storing frequently requested data and reducing the number of requests to data sources.

ParameterTypeDescription
api_caching_behavior *stringCaching behavior. Valid values: FULL_REQUEST_CACHING, PER_RESOLVER_CACHING
api_id *stringThe GraphQL API ID
ttl *integerTTL in seconds for entries in the API cache. Valid values are 1-3600 seconds
type *stringThe cache instance type. Valid values: SMALL, MEDIUM, LARGE, XLARGE, LARGE_2X, LARGE_4X, LARGE_8X, LARGE_12X
at_rest_encryption_enabledAt-rest encryption flag for cache
health_metrics_configThe health metrics configuration. Valid values: ENABLED, DISABLED
transit_encryption_enabledTransit encryption flag when connecting to cache

create_datasource

Creates a DataSource object for a GraphQL API. This operation creates a data source for the specified GraphQL API. Data sources connect your GraphQL API to various backend services like DynamoDB, Lambda, HTTP endpoints, and more.

ParameterTypeDescription
api_id *stringThe API ID for the GraphQL API for the DataSource
name *stringA user-supplied name for the DataSource
type *stringThe type of the DataSource. Valid values: AWS_LAMBDA, AMAZON_DYNAMODB, AMAZON_ELASTICSEARCH, HTTP, NONE, RELATIONAL_DATABASE, AMAZON_EVENTBRIDGE, AMAZON_OPENSEARCH_SERVICE
descriptionA description of the DataSource
dynamodb_configAmazon DynamoDB settings
elasticsearch_configAmazon OpenSearch Service settings
event_bridge_configAmazon EventBridge settings
http_configHTTP endpoint settings
lambda_configAWS Lambda settings
metrics_configEnables or disables enhanced DataSource metrics. Valid values: ENABLED, DISABLED
open_search_service_configAmazon OpenSearch Service settings
relational_database_configRelational database settings
service_role_arnThe AWS IAM service role ARN for the data source. Format: arn:aws:iam::ACCOUNT-ID:role/ROLE-NAME

create_function

Creates a Function object for a GraphQL API. This operation creates a function for the specified GraphQL API. Functions are reusable pieces of resolver logic that can be attached to multiple fields in your GraphQL schema.

ParameterTypeDescription
api_id *stringThe GraphQL API ID
data_source_name *stringThe Function DataSource name
name *stringThe Function name
codeThe function code that contains the request and response functions
descriptionThe Function description
function_versionThe version of the request mapping template. Currently, the supported value is 2018-05-29
max_batch_sizeThe maximum batching size for a resolver
request_mapping_templateThe Function request mapping template
response_mapping_templateThe Function response mapping template
runtimeDescribes a runtime used by an AWS AppSync pipeline resolver or AWS AppSync function
sync_configDescribes a Sync configuration for a resolver

create_channel_namespace

Creates a ChannelNamespace for an Api. This operation creates a channel namespace for the specified GraphQL API. Channel namespaces provide a way to organize and manage real-time subscriptions in AppSync APIs, enabling event-driven architectures and real-time data updates.

ParameterTypeDescription
api_id *stringThe ID of the Api associated with the ChannelNamespace
name *stringThe name of the ChannelNamespace
code_handlersThe event handler functions that run custom business logic to process published events and subscribe requests
handler_configsConfiguration for event handlers that process published events and subscribe requests
publish_auth_modesThe authorization mode to use for publishing messages on the channel namespace
subscribe_auth_modesThe authorization mode to use for subscribing to messages on the channel namespace
tagsA map of tags to assign to the resource

create_domain_name

Creates a custom domain name for use with AppSync APIs. This operation creates a custom domain name that can be associated with AppSync APIs, allowing you to use your own domain instead of the default AppSync domain. Requires an SSL certificate from AWS Certificate Manager.

ParameterTypeDescription
certificate_arn *stringThe ARN of the certificate from AWS Certificate Manager
domain_name *stringThe domain name to create (e.g., api.example.com)
descriptionA description of the domain name
tagsA map of tags to assign to the resource

create_resolver

Creates a resolver for a GraphQL field in an AppSync API. A resolver is the bridge between your GraphQL schema and your data sources. It defines how to fetch or modify data for a specific field in your schema. Resolvers can be unit resolvers (attached to a single data source) or pipeline resolvers (composed of multiple functions).

ParameterTypeDescription
api_id *stringThe API ID for the GraphQL API
field_name *stringThe name of the field to attach the resolver to
type_name *stringThe name of the type (e.g., Query, Mutation, Subscription)
caching_configCaching configuration for the resolver
codeThe resolver code for JavaScript/TypeScript resolvers
data_source_nameThe name of the data source (required for unit resolvers)
kindThe resolver kind: UNIT or PIPELINE
max_batch_sizeMaximum batch size for batch operations
metrics_configMetrics configuration: ENABLED or DISABLED
pipeline_configPipeline configuration for PIPELINE resolvers with functions list
request_mapping_templateThe request mapping template in VTL (Velocity Template Language)
response_mapping_templateThe response mapping template in VTL (Velocity Template Language)
runtimeRuntime configuration (name and runtimeVersion)
sync_configSync configuration for conflict resolution

create_schema

Creates a GraphQL schema for an AppSync API and polls until completion. This tool starts the schema creation process and automatically polls for the status until the operation completes (either SUCCESS or FAILED). The schema defines the structure of your GraphQL API, including types, queries, mutations, and subscriptions.

ParameterTypeDescription
api_id *stringThe API ID for the GraphQL API
definition *stringThe schema definition in GraphQL Schema Definition Language (SDL)