@chinchillaenterprises/mcp-amplify
Version:
AWS Amplify MCP server with intelligent deployment automation, specialized logging suite, and recursive resource discovery
197 lines • 8.85 kB
JavaScript
export const loggingTools = [
{
name: "amplify_get_lambda_logs",
description: "Get Lambda function logs with precise filtering and time range support",
inputSchema: {
type: "object",
properties: {
appId: { type: "string", description: "Amplify app ID" },
branchName: { type: "string", description: "Specific branch to get logs for (optional)" },
functionName: {
type: "string",
description: "Specific Lambda function name or 'all' for all functions (optional, defaults to 'all')"
},
logLevel: {
type: "string",
enum: ["ERROR", "WARN", "INFO", "DEBUG", "all"],
description: "Filter by log level (default: 'all')"
},
timeRange: {
type: "string",
enum: ["5m", "15m", "1h", "6h", "24h", "custom"],
description: "Time range for logs (default: '15m')"
},
customStartTime: {
type: "string",
description: "Custom start time (ISO 8601 format) - required if timeRange is 'custom'"
},
customEndTime: {
type: "string",
description: "Custom end time (ISO 8601 format) - required if timeRange is 'custom'"
},
maxEvents: {
type: "number",
description: "Maximum number of log events per function (default: 100)"
},
includeMetrics: {
type: "boolean",
description: "Include Lambda metrics like duration, memory usage (default: false)"
},
filterPattern: {
type: "string",
description: "Additional CloudWatch filter pattern for specific content"
}
},
required: ["appId"]
}
},
{
name: "amplify_get_appsync_logs",
description: "Get AppSync GraphQL resolver logs with resolver-specific filtering and performance insights",
inputSchema: {
type: "object",
properties: {
appId: { type: "string", description: "Amplify app ID" },
branchName: { type: "string", description: "Specific branch to get logs for (optional)" },
resolverType: {
type: "string",
enum: ["Query", "Mutation", "Subscription", "all"],
description: "Filter by GraphQL resolver type (default: 'all')"
},
resolverName: {
type: "string",
description: "Specific resolver name to filter by (e.g., 'getUser', 'createPost')"
},
timeRange: {
type: "string",
enum: ["5m", "15m", "1h", "6h", "24h", "custom"],
description: "Time range for logs (default: '15m')"
},
customStartTime: {
type: "string",
description: "Custom start time (ISO 8601 format) - required if timeRange is 'custom'"
},
customEndTime: {
type: "string",
description: "Custom end time (ISO 8601 format) - required if timeRange is 'custom'"
},
includePerformance: {
type: "boolean",
description: "Include performance metrics like execution time and slow query detection (default: false)"
},
includeRequestResponse: {
type: "boolean",
description: "Include request/response data indicators (default: false)"
},
logLevel: {
type: "string",
enum: ["INFO", "ERROR", "WARN", "all"],
description: "Filter by log level (default: 'all')"
},
maxEvents: {
type: "number",
description: "Maximum number of log events per API (default: 100)"
}
},
required: ["appId"]
}
},
{
name: "amplify_get_cognito_logs",
description: "Get Cognito authentication logs and events with user-specific filtering and security insights",
inputSchema: {
type: "object",
properties: {
appId: { type: "string", description: "Amplify app ID" },
branchName: { type: "string", description: "Specific branch to get logs for (optional)" },
eventType: {
type: "string",
enum: ["signin", "signup", "forgot_password", "token_refresh", "all"],
description: "Filter by authentication event type (default: 'all')"
},
userId: {
type: "string",
description: "Specific user ID to filter authentication events"
},
includeFailedAttempts: {
type: "boolean",
description: "Include failed authentication attempts (default: true)"
},
timeRange: {
type: "string",
enum: ["5m", "15m", "1h", "6h", "24h", "custom"],
description: "Time range for logs (default: '15m')"
},
customStartTime: {
type: "string",
description: "Custom start time (ISO 8601 format) - required if timeRange is 'custom'"
},
customEndTime: {
type: "string",
description: "Custom end time (ISO 8601 format) - required if timeRange is 'custom'"
},
logLevel: {
type: "string",
enum: ["ERROR", "WARN", "INFO", "all"],
description: "Filter by log level (default: 'all')"
},
maxEvents: {
type: "number",
description: "Maximum number of log events per User Pool (default: 100)"
}
},
required: ["appId"]
}
},
{
name: "amplify_get_apigateway_logs",
description: "Get API Gateway REST API logs with HTTP method, endpoint, and performance filtering",
inputSchema: {
type: "object",
properties: {
appId: { type: "string", description: "Amplify app ID" },
branchName: { type: "string", description: "Specific branch to get logs for (optional)" },
httpMethod: {
type: "string",
enum: ["GET", "POST", "PUT", "DELETE", "PATCH", "HEAD", "OPTIONS", "all"],
description: "Filter by HTTP method (default: 'all')"
},
endpoint: {
type: "string",
description: "Filter by specific endpoint/path (e.g., '/stripe/payment', '/api/users')"
},
includeRequestResponse: {
type: "boolean",
description: "Include request/response data indicators (default: false)"
},
includeLatency: {
type: "boolean",
description: "Include latency/response time metrics and slow request detection (default: false)"
},
statusCode: {
type: "number",
description: "Filter by HTTP status code (e.g., 200, 404, 500)"
},
timeRange: {
type: "string",
enum: ["5m", "15m", "1h", "6h", "24h", "custom"],
description: "Time range for logs (default: '15m')"
},
customStartTime: {
type: "string",
description: "Custom start time (ISO 8601 format) - required if timeRange is 'custom'"
},
customEndTime: {
type: "string",
description: "Custom end time (ISO 8601 format) - required if timeRange is 'custom'"
},
maxEvents: {
type: "number",
description: "Maximum number of log events per API (default: 100)"
}
},
required: ["appId"]
}
}
];
//# sourceMappingURL=logging.js.map