@jaypie/mcp 0.3.1 → 0.3.4

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.
Files changed (42) hide show
  1. package/dist/aws-B3dW_-bD.js +1202 -0
  2. package/dist/aws-B3dW_-bD.js.map +1 -0
  3. package/dist/index.js +357 -1200
  4. package/dist/index.js.map +1 -1
  5. package/dist/suite.d.ts +1 -0
  6. package/dist/suite.js +1252 -0
  7. package/dist/suite.js.map +1 -0
  8. package/package.json +11 -2
  9. package/prompts/Jaypie_Fabric_MCP.md +22 -2
  10. package/prompts/Jaypie_Fabric_Package.md +86 -0
  11. package/prompts/Jaypie_MCP_Package.md +34 -2
  12. package/release-notes/constructs/1.2.17.md +11 -0
  13. package/release-notes/fabric/0.1.1.md +17 -0
  14. package/release-notes/fabric/0.1.2.md +11 -0
  15. package/release-notes/mcp/0.3.2.md +14 -0
  16. package/release-notes/mcp/0.3.3.md +12 -0
  17. package/release-notes/mcp/0.3.4.md +36 -0
  18. package/skills/agents.md +25 -0
  19. package/skills/aws.md +107 -0
  20. package/skills/cdk.md +141 -0
  21. package/skills/cicd.md +152 -0
  22. package/skills/datadog.md +129 -0
  23. package/skills/debugging.md +148 -0
  24. package/skills/dns.md +134 -0
  25. package/skills/dynamodb.md +140 -0
  26. package/skills/errors.md +142 -0
  27. package/skills/fabric.md +164 -0
  28. package/skills/index.md +7 -0
  29. package/skills/jaypie.md +100 -0
  30. package/skills/legacy.md +97 -0
  31. package/skills/logs.md +160 -0
  32. package/skills/mocks.md +174 -0
  33. package/skills/models.md +195 -0
  34. package/skills/releasenotes.md +94 -0
  35. package/skills/secrets.md +155 -0
  36. package/skills/services.md +175 -0
  37. package/skills/style.md +190 -0
  38. package/skills/tests.md +209 -0
  39. package/skills/tools.md +127 -0
  40. package/skills/topics.md +116 -0
  41. package/skills/variables.md +146 -0
  42. package/skills/writing.md +153 -0
@@ -0,0 +1 @@
1
+ {"version":3,"file":"suite.js","sources":["../src/suite.ts"],"sourcesContent":["// ServiceSuite for @jaypie/mcp\n// Provides metadata and direct execution for Jaypie MCP services\n\nimport { createServiceSuite, fabricService } from \"@jaypie/fabric\";\nimport * as fs from \"node:fs/promises\";\nimport * as path from \"node:path\";\nimport { fileURLToPath } from \"node:url\";\nimport matter from \"gray-matter\";\nimport { gt } from \"semver\";\n\nimport {\n aggregateDatadogLogs,\n getDatadogCredentials,\n getDatadogSyntheticResults,\n listDatadogMonitors,\n listDatadogSynthetics,\n queryDatadogMetrics,\n searchDatadogLogs,\n searchDatadogRum,\n} from \"./datadog.js\";\nimport { debugLlmCall, listLlmProviders, type LlmProvider } from \"./llm.js\";\nimport {\n describeDynamoDBTable,\n describeStack,\n filterLogEvents,\n getDynamoDBItem,\n getLambdaFunction,\n getSQSQueueAttributes,\n listAwsProfiles,\n listLambdaFunctions,\n listS3Objects,\n listSQSQueues,\n listStepFunctionExecutions,\n purgeSQSQueue,\n queryDynamoDB,\n receiveSQSMessage,\n scanDynamoDB,\n stopStepFunctionExecution,\n} from \"./aws.js\";\n\n// Build-time constants\ndeclare const __BUILD_VERSION_STRING__: string;\nconst BUILD_VERSION_STRING =\n typeof __BUILD_VERSION_STRING__ !== \"undefined\"\n ? __BUILD_VERSION_STRING__\n : \"@jaypie/mcp@0.0.0\";\n\nconst __filename = fileURLToPath(import.meta.url);\nconst __dirname = path.dirname(__filename);\nconst PROMPTS_PATH = path.join(__dirname, \"..\", \"prompts\");\nconst RELEASE_NOTES_PATH = path.join(__dirname, \"..\", \"release-notes\");\nconst SKILLS_PATH = path.join(__dirname, \"..\", \"skills\");\n\n// Silent logger for direct execution\nconst log = {\n info: () => {},\n error: () => {},\n};\n\n// Helper functions from createMcpServer.ts\ninterface FrontMatter {\n description?: string;\n include?: string;\n globs?: string;\n}\n\ninterface ReleaseNoteFrontMatter {\n date?: string;\n summary?: string;\n version?: string;\n}\n\nasync function parseMarkdownFile(filePath: string): Promise<{\n filename: string;\n description?: string;\n include?: string;\n}> {\n try {\n const content = await fs.readFile(filePath, \"utf-8\");\n const filename = path.basename(filePath);\n\n if (content.startsWith(\"---\")) {\n const parsed = matter(content);\n const frontMatter = parsed.data as FrontMatter;\n return {\n filename,\n description: frontMatter.description,\n include: frontMatter.include || frontMatter.globs,\n };\n }\n\n return { filename };\n } catch {\n return { filename: path.basename(filePath) };\n }\n}\n\nfunction formatPromptListItem(prompt: {\n filename: string;\n description?: string;\n include?: string;\n}): string {\n const { filename, description, include } = prompt;\n\n if (description && include) {\n return `* ${filename}: ${description} - Required for ${include}`;\n } else if (description) {\n return `* ${filename}: ${description}`;\n } else if (include) {\n return `* ${filename} - Required for ${include}`;\n } else {\n return `* ${filename}`;\n }\n}\n\nasync function parseReleaseNoteFile(filePath: string): Promise<{\n date?: string;\n filename: string;\n summary?: string;\n version?: string;\n}> {\n try {\n const content = await fs.readFile(filePath, \"utf-8\");\n const filename = path.basename(filePath, \".md\");\n\n if (content.startsWith(\"---\")) {\n const parsed = matter(content);\n const frontMatter = parsed.data as ReleaseNoteFrontMatter;\n return {\n date: frontMatter.date,\n filename,\n summary: frontMatter.summary,\n version: frontMatter.version || filename,\n };\n }\n\n return { filename, version: filename };\n } catch {\n return { filename: path.basename(filePath, \".md\") };\n }\n}\n\nfunction formatReleaseNoteListItem(note: {\n date?: string;\n filename: string;\n packageName: string;\n summary?: string;\n version?: string;\n}): string {\n const { date, packageName, summary, version } = note;\n const parts = [`* ${packageName}@${version}`];\n\n if (date) {\n parts.push(`(${date})`);\n }\n\n if (summary) {\n parts.push(`- ${summary}`);\n }\n\n return parts.join(\" \");\n}\n\n// Skill helper functions\ninterface SkillFrontMatter {\n description?: string;\n}\n\nfunction isValidSkillAlias(alias: string): boolean {\n const normalized = alias.toLowerCase().trim();\n // Reject if contains path separators or traversal\n if (\n normalized.includes(\"/\") ||\n normalized.includes(\"\\\\\") ||\n normalized.includes(\"..\")\n ) {\n return false;\n }\n // Only allow alphanumeric, hyphens, underscores\n return /^[a-z0-9_-]+$/.test(normalized);\n}\n\nasync function parseSkillFile(filePath: string): Promise<{\n alias: string;\n description?: string;\n}> {\n try {\n const content = await fs.readFile(filePath, \"utf-8\");\n const alias = path.basename(filePath, \".md\");\n\n if (content.startsWith(\"---\")) {\n const parsed = matter(content);\n const frontMatter = parsed.data as SkillFrontMatter;\n return {\n alias,\n description: frontMatter.description,\n };\n }\n\n return { alias };\n } catch {\n return { alias: path.basename(filePath, \".md\") };\n }\n}\n\nfunction formatSkillListItem(skill: {\n alias: string;\n description?: string;\n}): string {\n const { alias, description } = skill;\n if (description) {\n return `* ${alias} - ${description}`;\n }\n return `* ${alias}`;\n}\n\nasync function getPackageReleaseNotes(packageName: string): Promise<\n Array<{\n date?: string;\n filename: string;\n packageName: string;\n summary?: string;\n version?: string;\n }>\n> {\n const packageDir = path.join(RELEASE_NOTES_PATH, packageName);\n try {\n const files = await fs.readdir(packageDir);\n const mdFiles = files.filter((file) => file.endsWith(\".md\"));\n\n const notes = await Promise.all(\n mdFiles.map(async (file) => {\n const parsed = await parseReleaseNoteFile(path.join(packageDir, file));\n return { ...parsed, packageName };\n }),\n );\n\n return notes.sort((a, b) => {\n if (!a.version || !b.version) return 0;\n try {\n return gt(a.version, b.version) ? -1 : 1;\n } catch {\n return b.version.localeCompare(a.version);\n }\n });\n } catch {\n return [];\n }\n}\n\nfunction filterReleaseNotesSince(\n notes: Array<{\n date?: string;\n filename: string;\n packageName: string;\n summary?: string;\n version?: string;\n }>,\n sinceVersion: string,\n): Array<{\n date?: string;\n filename: string;\n packageName: string;\n summary?: string;\n version?: string;\n}> {\n return notes.filter((note) => {\n if (!note.version) return false;\n try {\n return gt(note.version, sinceVersion);\n } catch {\n return false;\n }\n });\n}\n\n// =============================================================================\n// DOCS SERVICES\n// =============================================================================\n\nconst version = fabricService({\n alias: \"version\",\n description: `Prints the current version and hash, \\`${BUILD_VERSION_STRING}\\``,\n input: {},\n service: async () => BUILD_VERSION_STRING,\n});\n\nconst skill = fabricService({\n alias: \"skill\",\n description:\n \"Access Jaypie development documentation. Pass a skill alias (e.g., 'aws', 'tests', 'errors') to get that documentation. Pass 'index' or no argument to list all available skills.\",\n input: {\n alias: {\n type: String,\n required: false,\n description:\n \"Skill alias (e.g., 'aws', 'tests'). Omit or use 'index' to list all skills.\",\n },\n },\n service: async ({ alias: inputAlias }: { alias?: string }) => {\n const alias = (inputAlias || \"index\").toLowerCase().trim();\n\n // Security: validate alias to prevent path traversal\n if (!isValidSkillAlias(alias)) {\n throw new Error(\n `Invalid skill alias \"${alias}\". Use alphanumeric characters, hyphens, and underscores only.`,\n );\n }\n\n // If requesting index, return list of all skills with descriptions\n if (alias === \"index\") {\n const indexPath = path.join(SKILLS_PATH, \"index.md\");\n let indexContent = \"\";\n\n try {\n indexContent = await fs.readFile(indexPath, \"utf-8\");\n // Strip frontmatter for display\n if (indexContent.startsWith(\"---\")) {\n const parsed = matter(indexContent);\n indexContent = parsed.content.trim();\n }\n } catch {\n // Index file doesn't exist, will just show skill list\n }\n\n // Get all skill files\n const files = await fs.readdir(SKILLS_PATH);\n const mdFiles = files.filter(\n (file) => file.endsWith(\".md\") && file !== \"index.md\",\n );\n\n const skills = await Promise.all(\n mdFiles.map((file) => parseSkillFile(path.join(SKILLS_PATH, file))),\n );\n\n // Sort alphabetically\n skills.sort((a, b) => a.alias.localeCompare(b.alias));\n\n const skillList = skills.map(formatSkillListItem).join(\"\\n\");\n\n if (indexContent) {\n return `${indexContent}\\n\\n## Available Skills\\n\\n${skillList}`;\n }\n return `# Jaypie Skills\\n\\n## Available Skills\\n\\n${skillList}`;\n }\n\n // Read specific skill file\n const skillPath = path.join(SKILLS_PATH, `${alias}.md`);\n try {\n return await fs.readFile(skillPath, \"utf-8\");\n } catch {\n throw new Error(\n `Skill \"${alias}\" not found. Use skill(\"index\") to list available skills.`,\n );\n }\n },\n});\n\nconst listPrompts = fabricService({\n alias: \"list_prompts\",\n description:\n \"[DEPRECATED: Use skill('index') instead] List available Jaypie development prompts and guides. Use this FIRST when starting work on a Jaypie project to discover relevant documentation. Returns filenames, descriptions, and which file patterns each prompt applies to (e.g., 'Required for packages/express/**').\",\n input: {},\n service: async () => {\n const files = await fs.readdir(PROMPTS_PATH);\n const mdFiles = files.filter((file) => file.endsWith(\".md\"));\n const prompts = await Promise.all(\n mdFiles.map((file) => parseMarkdownFile(path.join(PROMPTS_PATH, file))),\n );\n return (\n prompts.map(formatPromptListItem).join(\"\\n\") ||\n \"No .md files found in the prompts directory.\"\n );\n },\n});\n\nconst readPrompt = fabricService({\n alias: \"read_prompt\",\n description:\n \"[DEPRECATED: Use skill(alias) instead] Read a Jaypie prompt/guide by filename. Call list_prompts first to see available prompts. These contain best practices, templates, code patterns, and step-by-step guides for Jaypie development tasks.\",\n input: {\n filename: {\n type: String,\n required: true,\n description:\n \"The prompt filename from list_prompts (e.g., 'Jaypie_Express_Package.md', 'Development_Process.md')\",\n },\n },\n service: async ({ filename }: { filename: string }) => {\n const filePath = path.join(PROMPTS_PATH, filename);\n return fs.readFile(filePath, \"utf-8\");\n },\n});\n\nconst listReleaseNotes = fabricService({\n alias: \"list_release_notes\",\n description:\n \"List available release notes for Jaypie packages. Filter by package name and/or get only versions newer than a specified version.\",\n input: {\n package: {\n type: String,\n required: false,\n description:\n \"Filter by package name (e.g., 'jaypie', 'mcp'). If not provided, lists release notes for all packages.\",\n },\n since_version: {\n type: String,\n required: false,\n description:\n \"Only show versions newer than this (e.g., '1.0.0'). Uses semver comparison.\",\n },\n },\n service: async ({\n package: packageFilter,\n since_version: sinceVersion,\n }: {\n package?: string;\n since_version?: string;\n }) => {\n const entries = await fs.readdir(RELEASE_NOTES_PATH, {\n withFileTypes: true,\n });\n const packageDirs = entries\n .filter((entry) => entry.isDirectory())\n .map((entry) => entry.name);\n const packagesToList = packageFilter\n ? packageDirs.filter((pkg) => pkg === packageFilter)\n : packageDirs;\n\n if (packagesToList.length === 0 && packageFilter) {\n return `No release notes found for package \"${packageFilter}\".`;\n }\n\n const allNotes = await Promise.all(\n packagesToList.map((pkg) => getPackageReleaseNotes(pkg)),\n );\n let flatNotes = allNotes.flat();\n\n if (sinceVersion) {\n flatNotes = filterReleaseNotesSince(flatNotes, sinceVersion);\n }\n\n if (flatNotes.length === 0) {\n const filterDesc = sinceVersion ? ` newer than ${sinceVersion}` : \"\";\n return `No release notes found${filterDesc}.`;\n }\n\n return flatNotes.map(formatReleaseNoteListItem).join(\"\\n\");\n },\n});\n\nconst readReleaseNote = fabricService({\n alias: \"read_release_note\",\n description:\n \"Read the full content of a specific release note. Call list_release_notes first to see available versions.\",\n input: {\n package: {\n type: String,\n required: true,\n description: \"Package name (e.g., 'jaypie', 'mcp')\",\n },\n version: {\n type: String,\n required: true,\n description: \"Version number (e.g., '1.2.3')\",\n },\n },\n service: async ({\n package: packageName,\n version: ver,\n }: {\n package: string;\n version: string;\n }) => {\n const filePath = path.join(RELEASE_NOTES_PATH, packageName, `${ver}.md`);\n return fs.readFile(filePath, \"utf-8\");\n },\n});\n\n// =============================================================================\n// DATADOG SERVICES\n// =============================================================================\n\nconst datadogLogs = fabricService({\n alias: \"datadog_logs\",\n description:\n \"Search and retrieve individual Datadog log entries. Use this to view actual log messages and details. For aggregated counts/statistics (e.g., 'how many errors by service?'), use datadog_log_analytics instead. Requires DATADOG_API_KEY and DATADOG_APP_KEY environment variables.\",\n input: {\n query: {\n type: String,\n required: false,\n description:\n \"Search query to filter logs. Examples: 'status:error', '@http.status_code:500', '*timeout*', '@requestId:abc123'. Combined with DD_ENV, DD_SERVICE, DD_SOURCE env vars if set.\",\n },\n source: {\n type: String,\n required: false,\n description:\n \"Override the log source (e.g., 'lambda', 'auth0', 'nginx'). If not provided, uses DD_SOURCE env var or defaults to 'lambda'.\",\n },\n env: {\n type: String,\n required: false,\n description:\n \"Override the environment (e.g., 'sandbox', 'kitchen', 'lab', 'studio', 'production'). If not provided, uses DD_ENV env var.\",\n },\n service: {\n type: String,\n required: false,\n description:\n \"Override the service name. If not provided, uses DD_SERVICE env var.\",\n },\n from: {\n type: String,\n required: false,\n description:\n \"Start time. Formats: relative ('now-15m', 'now-1h', 'now-1d'), ISO 8601 ('2024-01-15T10:00:00Z'). Defaults to 'now-15m'.\",\n },\n to: {\n type: String,\n required: false,\n description:\n \"End time. Formats: 'now', relative ('now-5m'), or ISO 8601. Defaults to 'now'.\",\n },\n limit: {\n type: Number,\n required: false,\n description: \"Max logs to return (1-1000). Defaults to 50.\",\n },\n sort: {\n type: [\"timestamp\", \"-timestamp\"] as const,\n required: false,\n description:\n \"Sort order: 'timestamp' (oldest first) or '-timestamp' (newest first, default).\",\n },\n },\n service: async (input: {\n query?: string;\n source?: string;\n env?: string;\n service?: string;\n from?: string;\n to?: string;\n limit?: number;\n sort?: \"timestamp\" | \"-timestamp\";\n }) => {\n const credentials = getDatadogCredentials();\n if (!credentials) {\n throw new Error(\n \"Datadog credentials not found. Set DATADOG_API_KEY and DATADOG_APP_KEY.\",\n );\n }\n const result = await searchDatadogLogs(credentials, input, log);\n if (!result.success) {\n throw new Error(result.error);\n }\n return result;\n },\n});\n\nconst datadogLogAnalytics = fabricService({\n alias: \"datadog_log_analytics\",\n description:\n \"Aggregate and analyze Datadog logs by grouping them by fields. Use this for statistics and counts (e.g., 'errors by service', 'requests by status code'). For viewing individual log entries, use datadog_logs instead.\",\n input: {\n groupBy: {\n type: [String],\n required: true,\n description:\n \"Fields to group by. Examples: ['source'], ['service', 'status'], ['@http.status_code']. Common facets: source, service, status, host, @http.status_code, @env.\",\n },\n query: {\n type: String,\n required: false,\n description:\n \"Filter query. Examples: 'status:error', '*timeout*', '@http.method:POST'. Use '*' for all logs.\",\n },\n source: {\n type: String,\n required: false,\n description:\n \"Override the log source filter. Use '*' to include all sources. If not provided, uses DD_SOURCE env var or defaults to 'lambda'.\",\n },\n env: {\n type: String,\n required: false,\n description:\n \"Override the environment filter. If not provided, uses DD_ENV env var.\",\n },\n service: {\n type: String,\n required: false,\n description:\n \"Override the service name filter. If not provided, uses DD_SERVICE env var.\",\n },\n from: {\n type: String,\n required: false,\n description:\n \"Start time. Formats: relative ('now-15m', 'now-1h', 'now-1d'), ISO 8601 ('2024-01-15T10:00:00Z'). Defaults to 'now-15m'.\",\n },\n to: {\n type: String,\n required: false,\n description:\n \"End time. Formats: 'now', relative ('now-5m'), or ISO 8601. Defaults to 'now'.\",\n },\n aggregation: {\n type: [\"count\", \"avg\", \"sum\", \"min\", \"max\", \"cardinality\"] as const,\n required: false,\n description:\n \"Aggregation type. 'count' counts logs, others require a metric field. Defaults to 'count'.\",\n },\n metric: {\n type: String,\n required: false,\n description:\n \"Metric field to aggregate when using avg, sum, min, max, or cardinality. E.g., '@duration', '@http.response_time'.\",\n },\n },\n service: async (input: {\n groupBy: string[];\n query?: string;\n source?: string;\n env?: string;\n service?: string;\n from?: string;\n to?: string;\n aggregation?: \"count\" | \"avg\" | \"sum\" | \"min\" | \"max\" | \"cardinality\";\n metric?: string;\n }) => {\n const credentials = getDatadogCredentials();\n if (!credentials) {\n throw new Error(\n \"Datadog credentials not found. Set DATADOG_API_KEY and DATADOG_APP_KEY.\",\n );\n }\n const compute = input.aggregation\n ? [{ aggregation: input.aggregation, metric: input.metric }]\n : [{ aggregation: \"count\" as const }];\n const result = await aggregateDatadogLogs(\n credentials,\n { ...input, compute },\n log,\n );\n if (!result.success) {\n throw new Error(result.error);\n }\n return result;\n },\n});\n\nconst datadogMonitors = fabricService({\n alias: \"datadog_monitors\",\n description:\n \"List and check Datadog monitors. Shows monitor status (Alert, Warn, No Data, OK), name, type, and tags. Useful for quickly checking if any monitors are alerting.\",\n input: {\n status: {\n type: Array,\n required: false,\n description:\n \"Filter monitors by status. E.g., ['Alert', 'Warn'] to see only alerting monitors.\",\n },\n tags: {\n type: Array,\n required: false,\n description:\n \"Filter monitors by resource tags (tags on the monitored resources).\",\n },\n monitorTags: {\n type: Array,\n required: false,\n description:\n \"Filter monitors by monitor tags (tags on the monitor itself).\",\n },\n name: {\n type: String,\n required: false,\n description: \"Filter monitors by name (partial match supported).\",\n },\n },\n service: async (input: {\n status?: (\"Alert\" | \"Warn\" | \"No Data\" | \"OK\")[];\n tags?: string[];\n monitorTags?: string[];\n name?: string;\n }) => {\n const credentials = getDatadogCredentials();\n if (!credentials) {\n throw new Error(\n \"Datadog credentials not found. Set DATADOG_API_KEY and DATADOG_APP_KEY.\",\n );\n }\n const result = await listDatadogMonitors(credentials, input, log);\n if (!result.success) {\n throw new Error(result.error);\n }\n return result;\n },\n});\n\nconst datadogSynthetics = fabricService({\n alias: \"datadog_synthetics\",\n description:\n \"List Datadog Synthetic tests and optionally get recent results for a specific test. Shows test status, type (api/browser), and locations.\",\n input: {\n type: {\n type: [\"api\", \"browser\"] as const,\n required: false,\n description: \"Filter tests by type: 'api' or 'browser'.\",\n },\n tags: {\n type: Array,\n required: false,\n description: \"Filter tests by tags.\",\n },\n testId: {\n type: String,\n required: false,\n description:\n \"If provided, fetches recent results for this specific test (public_id). Otherwise lists all tests.\",\n },\n },\n service: async (input: {\n type?: \"api\" | \"browser\";\n tags?: string[];\n testId?: string;\n }) => {\n const credentials = getDatadogCredentials();\n if (!credentials) {\n throw new Error(\n \"Datadog credentials not found. Set DATADOG_API_KEY and DATADOG_APP_KEY.\",\n );\n }\n if (input.testId) {\n const result = await getDatadogSyntheticResults(\n credentials,\n input.testId,\n log,\n );\n if (!result.success) {\n throw new Error(result.error);\n }\n return result;\n }\n const result = await listDatadogSynthetics(credentials, input, log);\n if (!result.success) {\n throw new Error(result.error);\n }\n return result;\n },\n});\n\nconst datadogMetrics = fabricService({\n alias: \"datadog_metrics\",\n description:\n \"Query Datadog metrics. Returns timeseries data for the specified metric query. Useful for checking specific metric values.\",\n input: {\n query: {\n type: String,\n required: true,\n description:\n \"Metric query. Format: 'aggregation:metric.name{tags}'. Examples: 'avg:system.cpu.user{*}', 'sum:aws.lambda.invocations{function:my-func}.as_count()', 'max:aws.lambda.duration{env:production}'.\",\n },\n from: {\n type: String,\n required: false,\n description:\n \"Start time. Formats: relative ('1h', '30m', '1d'), or Unix timestamp. Defaults to '1h'.\",\n },\n to: {\n type: String,\n required: false,\n description:\n \"End time. Formats: 'now' or Unix timestamp. Defaults to 'now'.\",\n },\n },\n service: async (input: { query: string; from?: string; to?: string }) => {\n const credentials = getDatadogCredentials();\n if (!credentials) {\n throw new Error(\n \"Datadog credentials not found. Set DATADOG_API_KEY and DATADOG_APP_KEY.\",\n );\n }\n const now = Math.floor(Date.now() / 1000);\n const fromStr = input.from || \"1h\";\n let fromTs: number;\n if (fromStr.match(/^\\d+$/)) {\n fromTs = parseInt(fromStr, 10);\n } else if (fromStr.match(/^(\\d+)h$/)) {\n const hours = parseInt(fromStr.match(/^(\\d+)h$/)![1], 10);\n fromTs = now - hours * 3600;\n } else if (fromStr.match(/^(\\d+)m$/)) {\n const minutes = parseInt(fromStr.match(/^(\\d+)m$/)![1], 10);\n fromTs = now - minutes * 60;\n } else if (fromStr.match(/^(\\d+)d$/)) {\n const days = parseInt(fromStr.match(/^(\\d+)d$/)![1], 10);\n fromTs = now - days * 86400;\n } else {\n fromTs = now - 3600;\n }\n const toStr = input.to || \"now\";\n const toTs = toStr === \"now\" ? now : parseInt(toStr, 10);\n const result = await queryDatadogMetrics(\n credentials,\n { query: input.query, from: fromTs, to: toTs },\n log,\n );\n if (!result.success) {\n throw new Error(result.error);\n }\n return result;\n },\n});\n\nconst datadogRum = fabricService({\n alias: \"datadog_rum\",\n description:\n \"Search Datadog RUM (Real User Monitoring) events. Find user sessions, page views, errors, and actions. Useful for debugging frontend issues and understanding user behavior.\",\n input: {\n query: {\n type: String,\n required: false,\n description:\n \"RUM search query. E.g., '@type:error', '@session.id:abc123', '@view.url:*checkout*'. Defaults to '*' (all events).\",\n },\n from: {\n type: String,\n required: false,\n description:\n \"Start time. Formats: relative ('now-15m', 'now-1h', 'now-1d'), ISO 8601 ('2024-01-15T10:00:00Z'). Defaults to 'now-15m'.\",\n },\n to: {\n type: String,\n required: false,\n description:\n \"End time. Formats: 'now', relative ('now-5m'), or ISO 8601. Defaults to 'now'.\",\n },\n limit: {\n type: Number,\n required: false,\n description: \"Max events to return (1-1000). Defaults to 50.\",\n },\n },\n service: async (input: {\n query?: string;\n from?: string;\n to?: string;\n limit?: number;\n }) => {\n const credentials = getDatadogCredentials();\n if (!credentials) {\n throw new Error(\n \"Datadog credentials not found. Set DATADOG_API_KEY and DATADOG_APP_KEY.\",\n );\n }\n const result = await searchDatadogRum(credentials, input, log);\n if (!result.success) {\n throw new Error(result.error);\n }\n return result;\n },\n});\n\n// =============================================================================\n// LLM SERVICES\n// =============================================================================\n\nconst llmDebugCall = fabricService({\n alias: \"llm_debug_call\",\n description:\n \"Make a debug LLM API call and inspect the raw response. Useful for understanding how each provider formats responses, especially for reasoning/thinking content. Returns full history, raw responses, and extracted reasoning.\",\n input: {\n provider: {\n type: [\"anthropic\", \"gemini\", \"openai\", \"openrouter\"] as const,\n required: true,\n description: \"LLM provider to call\",\n },\n model: {\n type: String,\n required: false,\n description:\n \"Model to use. If not provided, uses a sensible default. For reasoning tests, try 'o3-mini' with openai.\",\n },\n message: {\n type: String,\n required: true,\n description:\n \"Message to send to the LLM. For reasoning tests, try something that requires thinking like 'What is 15 * 17? Think step by step.'\",\n },\n },\n service: async (input: {\n provider: \"anthropic\" | \"gemini\" | \"openai\" | \"openrouter\";\n model?: string;\n message: string;\n }) => {\n const result = await debugLlmCall(\n {\n provider: input.provider as LlmProvider,\n model: input.model,\n message: input.message,\n },\n log,\n );\n if (!result.success) {\n throw new Error(result.error);\n }\n return result;\n },\n});\n\nconst llmListProviders = fabricService({\n alias: \"llm_list_providers\",\n description:\n \"List available LLM providers with their default and reasoning-capable models.\",\n input: {},\n service: async () => listLlmProviders(),\n});\n\n// =============================================================================\n// AWS SERVICES\n// =============================================================================\n\nconst awsListProfiles = fabricService({\n alias: \"aws_list_profiles\",\n description:\n \"List available AWS profiles from ~/.aws/config and credentials.\",\n input: {},\n service: async () => {\n const result = await listAwsProfiles(log);\n if (!result.success) {\n throw new Error(result.error);\n }\n return result.data;\n },\n});\n\nconst awsStepfunctionsListExecutions = fabricService({\n alias: \"aws_stepfunctions_list_executions\",\n description:\n \"List Step Function executions for a state machine. Useful for finding stuck or running executions.\",\n input: {\n stateMachineArn: {\n type: String,\n required: true,\n description: \"ARN of the state machine\",\n },\n statusFilter: {\n type: [\n \"RUNNING\",\n \"SUCCEEDED\",\n \"FAILED\",\n \"TIMED_OUT\",\n \"ABORTED\",\n \"PENDING_REDRIVE\",\n ] as const,\n required: false,\n description: \"Filter by execution status\",\n },\n profile: {\n type: String,\n required: false,\n description: \"AWS profile to use\",\n },\n region: {\n type: String,\n required: false,\n description: \"AWS region\",\n },\n maxResults: {\n type: Number,\n required: false,\n description: \"Max results (1-1000, default 100)\",\n },\n },\n service: async (input: {\n stateMachineArn: string;\n statusFilter?:\n | \"RUNNING\"\n | \"SUCCEEDED\"\n | \"FAILED\"\n | \"TIMED_OUT\"\n | \"ABORTED\"\n | \"PENDING_REDRIVE\";\n profile?: string;\n region?: string;\n maxResults?: number;\n }) => {\n const result = await listStepFunctionExecutions(input, log);\n if (!result.success) {\n throw new Error(result.error);\n }\n return result.data;\n },\n});\n\nconst awsStepfunctionsStopExecution = fabricService({\n alias: \"aws_stepfunctions_stop_execution\",\n description:\n \"Stop a running Step Function execution. Use with caution - this will abort the workflow.\",\n input: {\n executionArn: {\n type: String,\n required: true,\n description: \"ARN of the execution to stop\",\n },\n cause: {\n type: String,\n required: false,\n description: \"Description of why the execution was stopped\",\n },\n profile: {\n type: String,\n required: false,\n description: \"AWS profile to use\",\n },\n region: {\n type: String,\n required: false,\n description: \"AWS region\",\n },\n },\n service: async (input: {\n executionArn: string;\n cause?: string;\n profile?: string;\n region?: string;\n }) => {\n const result = await stopStepFunctionExecution(input, log);\n if (!result.success) {\n throw new Error(result.error);\n }\n return result.data;\n },\n});\n\nconst awsLambdaListFunctions = fabricService({\n alias: \"aws_lambda_list_functions\",\n description:\n \"List Lambda functions in the account. Filter by function name prefix.\",\n input: {\n functionNamePrefix: {\n type: String,\n required: false,\n description: \"Filter by function name prefix\",\n },\n profile: {\n type: String,\n required: false,\n description: \"AWS profile to use\",\n },\n region: {\n type: String,\n required: false,\n description: \"AWS region\",\n },\n maxResults: {\n type: Number,\n required: false,\n description: \"Max results to return\",\n },\n },\n service: async (input: {\n functionNamePrefix?: string;\n profile?: string;\n region?: string;\n maxResults?: number;\n }) => {\n const result = await listLambdaFunctions(input, log);\n if (!result.success) {\n throw new Error(result.error);\n }\n return result.data;\n },\n});\n\nconst awsLambdaGetFunction = fabricService({\n alias: \"aws_lambda_get_function\",\n description: \"Get configuration and details for a specific Lambda function.\",\n input: {\n functionName: {\n type: String,\n required: true,\n description: \"Function name or ARN\",\n },\n profile: {\n type: String,\n required: false,\n description: \"AWS profile to use\",\n },\n region: {\n type: String,\n required: false,\n description: \"AWS region\",\n },\n },\n service: async (input: {\n functionName: string;\n profile?: string;\n region?: string;\n }) => {\n const result = await getLambdaFunction(input, log);\n if (!result.success) {\n throw new Error(result.error);\n }\n return result.data;\n },\n});\n\nconst awsLogsFilterLogEvents = fabricService({\n alias: \"aws_logs_filter_log_events\",\n description:\n \"Search CloudWatch Logs for a log group. Filter by pattern and time range.\",\n input: {\n logGroupName: {\n type: String,\n required: true,\n description: \"Log group name (e.g., /aws/lambda/my-function)\",\n },\n filterPattern: {\n type: String,\n required: false,\n description:\n \"CloudWatch filter pattern (e.g., 'ERROR', '{ $.level = \\\"error\\\" }')\",\n },\n startTime: {\n type: String,\n required: false,\n description:\n \"Start time (ISO 8601 or relative like 'now-1h'). Defaults to 'now-15m'.\",\n },\n endTime: {\n type: String,\n required: false,\n description: \"End time (ISO 8601 or 'now'). Defaults to 'now'.\",\n },\n profile: {\n type: String,\n required: false,\n description: \"AWS profile to use\",\n },\n region: {\n type: String,\n required: false,\n description: \"AWS region\",\n },\n limit: {\n type: Number,\n required: false,\n description: \"Max events to return (default 100)\",\n },\n },\n service: async (input: {\n logGroupName: string;\n filterPattern?: string;\n startTime?: string;\n endTime?: string;\n profile?: string;\n region?: string;\n limit?: number;\n }) => {\n const result = await filterLogEvents(\n {\n ...input,\n startTime: input.startTime || \"now-15m\",\n endTime: input.endTime || \"now\",\n limit: input.limit || 100,\n },\n log,\n );\n if (!result.success) {\n throw new Error(result.error);\n }\n return result.data;\n },\n});\n\nconst awsS3ListObjects = fabricService({\n alias: \"aws_s3_list_objects\",\n description: \"List objects in an S3 bucket with optional prefix filtering.\",\n input: {\n bucket: {\n type: String,\n required: true,\n description: \"S3 bucket name\",\n },\n prefix: {\n type: String,\n required: false,\n description: \"Object key prefix filter\",\n },\n profile: {\n type: String,\n required: false,\n description: \"AWS profile to use\",\n },\n region: {\n type: String,\n required: false,\n description: \"AWS region\",\n },\n maxResults: {\n type: Number,\n required: false,\n description: \"Max results to return\",\n },\n },\n service: async (input: {\n bucket: string;\n prefix?: string;\n profile?: string;\n region?: string;\n maxResults?: number;\n }) => {\n const result = await listS3Objects(input, log);\n if (!result.success) {\n throw new Error(result.error);\n }\n return result.data;\n },\n});\n\nconst awsCloudformationDescribeStack = fabricService({\n alias: \"aws_cloudformation_describe_stack\",\n description: \"Get details and status of a CloudFormation stack.\",\n input: {\n stackName: {\n type: String,\n required: true,\n description: \"Stack name or ARN\",\n },\n profile: {\n type: String,\n required: false,\n description: \"AWS profile to use\",\n },\n region: {\n type: String,\n required: false,\n description: \"AWS region\",\n },\n },\n service: async (input: {\n stackName: string;\n profile?: string;\n region?: string;\n }) => {\n const result = await describeStack(input, log);\n if (!result.success) {\n throw new Error(result.error);\n }\n return result.data;\n },\n});\n\nconst awsDynamodbDescribeTable = fabricService({\n alias: \"aws_dynamodb_describe_table\",\n description:\n \"Get metadata about a DynamoDB table including key schema, indexes, and provisioned capacity.\",\n input: {\n tableName: {\n type: String,\n required: true,\n description: \"DynamoDB table name\",\n },\n profile: {\n type: String,\n required: false,\n description: \"AWS profile to use\",\n },\n region: {\n type: String,\n required: false,\n description: \"AWS region\",\n },\n },\n service: async (input: {\n tableName: string;\n profile?: string;\n region?: string;\n }) => {\n const result = await describeDynamoDBTable(input, log);\n if (!result.success) {\n throw new Error(result.error);\n }\n return result.data;\n },\n});\n\nconst awsDynamodbScan = fabricService({\n alias: \"aws_dynamodb_scan\",\n description:\n \"Scan a DynamoDB table. Use sparingly on large tables - prefer query when possible.\",\n input: {\n tableName: {\n type: String,\n required: true,\n description: \"DynamoDB table name\",\n },\n filterExpression: {\n type: String,\n required: false,\n description: \"Filter expression (e.g., 'status = :s')\",\n },\n expressionAttributeValues: {\n type: String,\n required: false,\n description:\n 'JSON object of attribute values (e.g., \\'{\\\\\":s\\\\\":{\\\\\"S\\\\\":\\\\\"active\\\\\"}}\\')',\n },\n limit: {\n type: Number,\n required: false,\n description: \"Max items to return (default 25)\",\n },\n profile: {\n type: String,\n required: false,\n description: \"AWS profile to use\",\n },\n region: {\n type: String,\n required: false,\n description: \"AWS region\",\n },\n },\n service: async (input: {\n tableName: string;\n filterExpression?: string;\n expressionAttributeValues?: string;\n limit?: number;\n profile?: string;\n region?: string;\n }) => {\n const result = await scanDynamoDB(\n { ...input, limit: input.limit || 25 },\n log,\n );\n if (!result.success) {\n throw new Error(result.error);\n }\n return result.data;\n },\n});\n\nconst awsDynamodbQuery = fabricService({\n alias: \"aws_dynamodb_query\",\n description:\n \"Query a DynamoDB table by partition key. More efficient than scan for targeted lookups.\",\n input: {\n tableName: {\n type: String,\n required: true,\n description: \"DynamoDB table name\",\n },\n keyConditionExpression: {\n type: String,\n required: true,\n description: \"Key condition (e.g., 'pk = :pk')\",\n },\n expressionAttributeValues: {\n type: String,\n required: true,\n description: \"JSON object of attribute values\",\n },\n indexName: {\n type: String,\n required: false,\n description: \"GSI or LSI name to query\",\n },\n filterExpression: {\n type: String,\n required: false,\n description: \"Additional filter expression\",\n },\n limit: {\n type: Number,\n required: false,\n description: \"Max items to return\",\n },\n scanIndexForward: {\n type: Boolean,\n required: false,\n description: \"Sort ascending (true) or descending (false)\",\n },\n profile: {\n type: String,\n required: false,\n description: \"AWS profile to use\",\n },\n region: {\n type: String,\n required: false,\n description: \"AWS region\",\n },\n },\n service: async (input: {\n tableName: string;\n keyConditionExpression: string;\n expressionAttributeValues: string;\n indexName?: string;\n filterExpression?: string;\n limit?: number;\n scanIndexForward?: boolean;\n profile?: string;\n region?: string;\n }) => {\n const result = await queryDynamoDB(input, log);\n if (!result.success) {\n throw new Error(result.error);\n }\n return result.data;\n },\n});\n\nconst awsDynamodbGetItem = fabricService({\n alias: \"aws_dynamodb_get_item\",\n description: \"Get a single item from a DynamoDB table by its primary key.\",\n input: {\n tableName: {\n type: String,\n required: true,\n description: \"DynamoDB table name\",\n },\n key: {\n type: String,\n required: true,\n description:\n 'JSON object of the primary key (e.g., \\'{\\\\\"pk\\\\\":{\\\\\"S\\\\\":\\\\\"user#123\\\\\"},\\\\\"sk\\\\\":{\\\\\"S\\\\\":\\\\\"profile\\\\\"}}\\')',\n },\n profile: {\n type: String,\n required: false,\n description: \"AWS profile to use\",\n },\n region: {\n type: String,\n required: false,\n description: \"AWS region\",\n },\n },\n service: async (input: {\n tableName: string;\n key: string;\n profile?: string;\n region?: string;\n }) => {\n const result = await getDynamoDBItem(input, log);\n if (!result.success) {\n throw new Error(result.error);\n }\n return result.data;\n },\n});\n\nconst awsSqsListQueues = fabricService({\n alias: \"aws_sqs_list_queues\",\n description: \"List SQS queues in the account. Filter by queue name prefix.\",\n input: {\n queueNamePrefix: {\n type: String,\n required: false,\n description: \"Filter by queue name prefix\",\n },\n profile: {\n type: String,\n required: false,\n description: \"AWS profile to use\",\n },\n region: {\n type: String,\n required: false,\n description: \"AWS region\",\n },\n },\n service: async (input: {\n queueNamePrefix?: string;\n profile?: string;\n region?: string;\n }) => {\n const result = await listSQSQueues(input, log);\n if (!result.success) {\n throw new Error(result.error);\n }\n return result.data;\n },\n});\n\nconst awsSqsGetQueueAttributes = fabricService({\n alias: \"aws_sqs_get_queue_attributes\",\n description:\n \"Get attributes for an SQS queue including approximate message count, visibility timeout, and dead-letter config.\",\n input: {\n queueUrl: {\n type: String,\n required: true,\n description: \"SQS queue URL\",\n },\n profile: {\n type: String,\n required: false,\n description: \"AWS profile to use\",\n },\n region: {\n type: String,\n required: false,\n description: \"AWS region\",\n },\n },\n service: async (input: {\n queueUrl: string;\n profile?: string;\n region?: string;\n }) => {\n const result = await getSQSQueueAttributes(input, log);\n if (!result.success) {\n throw new Error(result.error);\n }\n return result.data;\n },\n});\n\nconst awsSqsReceiveMessage = fabricService({\n alias: \"aws_sqs_receive_message\",\n description:\n \"Receive messages from an SQS queue for inspection. Messages are returned to the queue after visibility timeout.\",\n input: {\n queueUrl: {\n type: String,\n required: true,\n description: \"SQS queue URL\",\n },\n maxNumberOfMessages: {\n type: Number,\n required: false,\n description: \"Max messages to receive (1-10, default 1)\",\n },\n visibilityTimeout: {\n type: Number,\n required: false,\n description: \"Seconds to hide message (default 30)\",\n },\n profile: {\n type: String,\n required: false,\n description: \"AWS profile to use\",\n },\n region: {\n type: String,\n required: false,\n description: \"AWS region\",\n },\n },\n service: async (input: {\n queueUrl: string;\n maxNumberOfMessages?: number;\n visibilityTimeout?: number;\n profile?: string;\n region?: string;\n }) => {\n const result = await receiveSQSMessage(\n {\n ...input,\n maxNumberOfMessages: input.maxNumberOfMessages || 1,\n visibilityTimeout: input.visibilityTimeout || 30,\n },\n log,\n );\n if (!result.success) {\n throw new Error(result.error);\n }\n return result.data;\n },\n});\n\nconst awsSqsPurgeQueue = fabricService({\n alias: \"aws_sqs_purge_queue\",\n description:\n \"Delete all messages from an SQS queue. Use with caution - this is irreversible.\",\n input: {\n queueUrl: {\n type: String,\n required: true,\n description: \"SQS queue URL\",\n },\n profile: {\n type: String,\n required: false,\n description: \"AWS profile to use\",\n },\n region: {\n type: String,\n required: false,\n description: \"AWS region\",\n },\n },\n service: async (input: {\n queueUrl: string;\n profile?: string;\n region?: string;\n }) => {\n const result = await purgeSQSQueue(input, log);\n if (!result.success) {\n throw new Error(result.error);\n }\n return { success: true };\n },\n});\n\n// =============================================================================\n// SUITE CREATION\n// =============================================================================\n\nconst VERSION = \"0.3.4\";\n\nexport const suite = createServiceSuite({\n name: \"jaypie\",\n version: VERSION,\n});\n\n// Register docs services\nsuite.register(skill, \"docs\");\nsuite.register(version, \"docs\");\nsuite.register(listPrompts, \"docs\");\nsuite.register(readPrompt, \"docs\");\nsuite.register(listReleaseNotes, \"docs\");\nsuite.register(readReleaseNote, \"docs\");\n\n// Register Datadog services\nsuite.register(datadogLogs, \"datadog\");\nsuite.register(datadogLogAnalytics, \"datadog\");\nsuite.register(datadogMonitors, \"datadog\");\nsuite.register(datadogSynthetics, \"datadog\");\nsuite.register(datadogMetrics, \"datadog\");\nsuite.register(datadogRum, \"datadog\");\n\n// Register LLM services\nsuite.register(llmDebugCall, \"llm\");\nsuite.register(llmListProviders, \"llm\");\n\n// Register AWS services\nsuite.register(awsListProfiles, \"aws\");\nsuite.register(awsStepfunctionsListExecutions, \"aws\");\nsuite.register(awsStepfunctionsStopExecution, \"aws\");\nsuite.register(awsLambdaListFunctions, \"aws\");\nsuite.register(awsLambdaGetFunction, \"aws\");\nsuite.register(awsLogsFilterLogEvents, \"aws\");\nsuite.register(awsS3ListObjects, \"aws\");\nsuite.register(awsCloudformationDescribeStack, \"aws\");\nsuite.register(awsDynamodbDescribeTable, \"aws\");\nsuite.register(awsDynamodbScan, \"aws\");\nsuite.register(awsDynamodbQuery, \"aws\");\nsuite.register(awsDynamodbGetItem, \"aws\");\nsuite.register(awsSqsListQueues, \"aws\");\nsuite.register(awsSqsGetQueueAttributes, \"aws\");\nsuite.register(awsSqsReceiveMessage, \"aws\");\nsuite.register(awsSqsPurgeQueue, \"aws\");\n"],"names":["__filename","__dirname"],"mappings":";;;;;;;;;;;;AAAA;AACA;AAyCA,MAAM,oBAAoB,GAEpB;IACmB;AAEzB,MAAMA,YAAU,GAAG,aAAa,CAAC,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC;AACjD,MAAMC,WAAS,GAAG,IAAI,CAAC,OAAO,CAACD,YAAU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A8B,EAAE,KAAK,CAAC;AACrD,KAAK,CAAC,QAAQ,CAAC,6BAA6B,EAAE,KAAK,CAAC;AACpD,KAAK,CAAC,QAAQ,CAAC,sBAAsB,EAAE,KAAK,CAAC;AAC7C,KAAK,CAAC,QAAQ,CAAC,oBAAoB,EAAE,KAAK,CAAC;AAC3C,KAAK,CAAC,QAAQ,CAAC,sBAAsB,EAAE,KAAK,CAAC;AAC7C,KAAK,CAAC,QAAQ,CAAC,gBAAgB,EAAE,KAAK,CAAC;AACvC,KAAK,CAAC,QAAQ,CAAC,8BAA8B,EAAE,KAAK,CAAC;AACrD,KAAK,CAAC,QAAQ,CAAC,wBAAwB,EAAE,KAAK,CAAC;AAC/C,KAAK,CAAC,QAAQ,CAAC,eAAe,EAAE,KAAK,CAAC;AACtC,KAAK,CAAC,QAAQ,CAAC,gBAAgB,EAAE,KAAK,CAAC;AACvC,KAAK,CAAC,QAAQ,CAAC,kBAAkB,EAAE,KAAK,CAAC;AACzC,KAAK,CAAC,QAAQ,CAAC,gBAAgB,EAAE,KAAK,CAAC;AACvC,KAAK,CAAC,QAAQ,CAAC,wBAAwB,EAAE,KAAK,CAAC;AAC/C,KAAK,CAAC,QAAQ,CAAC,oBAAoB,EAAE,KAAK,CAAC;AAC3C,KAAK,CAAC,QAAQ,CAAC,gBAAgB,EAAE,KAAK,CAAC;;;;"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jaypie/mcp",
3
- "version": "0.3.1",
3
+ "version": "0.3.4",
4
4
  "description": "Jaypie MCP",
5
5
  "repository": {
6
6
  "type": "git",
@@ -13,6 +13,10 @@
13
13
  ".": {
14
14
  "types": "./dist/index.d.ts",
15
15
  "import": "./dist/index.js"
16
+ },
17
+ "./suite": {
18
+ "types": "./dist/suite.d.ts",
19
+ "import": "./dist/suite.js"
16
20
  }
17
21
  },
18
22
  "main": "dist/index.js",
@@ -22,7 +26,9 @@
22
26
  },
23
27
  "files": [
24
28
  "dist",
25
- "prompts"
29
+ "prompts",
30
+ "release-notes",
31
+ "skills"
26
32
  ],
27
33
  "scripts": {
28
34
  "build": "rollup --config && chmod +x dist/index.js",
@@ -34,16 +40,19 @@
34
40
  "typecheck": "tsc --noEmit"
35
41
  },
36
42
  "dependencies": {
43
+ "@jaypie/fabric": "^0.1.0",
37
44
  "@jaypie/llm": "^1.2.2",
38
45
  "@modelcontextprotocol/sdk": "^1.17.0",
39
46
  "commander": "^14.0.0",
40
47
  "gray-matter": "^4.0.3",
48
+ "semver": "^7.7.3",
41
49
  "zod": "^4.1.13"
42
50
  },
43
51
  "devDependencies": {
44
52
  "@rollup/plugin-replace": "^6.0.3",
45
53
  "@rollup/plugin-typescript": "^12.3.0",
46
54
  "@types/express": "^5.0.3",
55
+ "@types/semver": "^7.7.1",
47
56
  "express": "^5.1.0",
48
57
  "rollup": "^4.53.3",
49
58
  "typescript": "^5.9.3"
@@ -213,9 +213,29 @@ const transport = new StdioServerTransport();
213
213
  await server.connect(transport);
214
214
  ```
215
215
 
216
- ## Input Validation
216
+ ## Input Validation and Schema Generation
217
217
 
218
- The adapter delegates input validation to the service handler. Invalid inputs result in errors:
218
+ The adapter automatically converts fabric input definitions to Zod schemas for the MCP SDK, enabling proper parameter validation and type inference:
219
+
220
+ ```typescript
221
+ // Fabric input definitions:
222
+ input: {
223
+ name: { type: String, description: "User name" },
224
+ count: { type: Number, default: 10 },
225
+ active: { type: Boolean, required: false },
226
+ status: { type: ["pending", "active", "done"] },
227
+ tags: { type: [String] },
228
+ }
229
+
230
+ // Automatically generates equivalent Zod schemas:
231
+ // name: z.string().describe("User name")
232
+ // count: z.number().optional().default(10)
233
+ // active: z.boolean().optional()
234
+ // status: z.enum(["active", "done", "pending"])
235
+ // tags: z.array(z.string())
236
+ ```
237
+
238
+ The adapter also delegates input validation to the service handler. Invalid inputs result in errors:
219
239
 
220
240
  ```typescript
221
241
  // If handler expects:
@@ -503,6 +503,92 @@ await handler({ priority: 10 }); // Validation fails (not in [1,2
503
503
  await handler({}); // Missing required field
504
504
  ```
505
505
 
506
+ ## ServiceSuite
507
+
508
+ ServiceSuite groups fabricService instances for discovery, metadata export, and direct execution. Useful for exposing services through MCP or other interfaces.
509
+
510
+ ### Creating a ServiceSuite
511
+
512
+ ```typescript
513
+ import { createServiceSuite, fabricService } from "@jaypie/fabric";
514
+
515
+ const suite = createServiceSuite({
516
+ name: "myapp",
517
+ version: "1.0.0",
518
+ });
519
+ ```
520
+
521
+ ### Registering Services
522
+
523
+ ```typescript
524
+ const greetService = fabricService({
525
+ alias: "greet",
526
+ description: "Greet a user",
527
+ input: {
528
+ name: { type: String, required: true, description: "User's name" },
529
+ },
530
+ service: ({ name }) => `Hello, ${name}!`,
531
+ });
532
+
533
+ const echoService = fabricService({
534
+ alias: "echo",
535
+ description: "Echo input back",
536
+ input: {
537
+ message: { type: String, default: "Hello", description: "Message to echo" },
538
+ },
539
+ service: ({ message }) => message,
540
+ });
541
+
542
+ suite.register(greetService, "utils");
543
+ suite.register(echoService, "utils");
544
+ ```
545
+
546
+ ### Suite Properties and Methods
547
+
548
+ ```typescript
549
+ // Properties
550
+ suite.name; // "myapp"
551
+ suite.version; // "1.0.0"
552
+ suite.categories; // ["utils"] - sorted array of registered categories
553
+ suite.services; // Array of ServiceMeta for all registered services
554
+
555
+ // Methods
556
+ suite.getService("greet"); // ServiceMeta | undefined
557
+ suite.getServicesByCategory("utils"); // ServiceMeta[]
558
+ await suite.execute("greet", { name: "Alice" }); // "Hello, Alice!"
559
+ ```
560
+
561
+ ### ServiceMeta Structure
562
+
563
+ ```typescript
564
+ interface ServiceMeta {
565
+ name: string; // Service alias
566
+ description: string; // Service description
567
+ category: string; // Category from registration
568
+ inputs: ServiceInput[]; // Input parameter definitions
569
+ executable?: boolean; // True if service can run with no inputs
570
+ }
571
+
572
+ interface ServiceInput {
573
+ name: string;
574
+ type: string; // "string", "number", "boolean", "object", "array"
575
+ required: boolean;
576
+ description: string;
577
+ enum?: string[]; // For validated string/number types
578
+ }
579
+ ```
580
+
581
+ ### TypeScript Types
582
+
583
+ ```typescript
584
+ import type {
585
+ CreateServiceSuiteConfig,
586
+ ServiceInput,
587
+ ServiceMeta,
588
+ ServiceSuite,
589
+ } from "@jaypie/fabric";
590
+ ```
591
+
506
592
  ## Integration with Other Packages
507
593
 
508
594
  Fabric is designed to be consumed by:
@@ -19,6 +19,7 @@ packages/mcp/
19
19
  │ ├── datadog.ts # Datadog API integration (https-based)
20
20
  │ └── llm.ts # LLM debug utilities
21
21
  ├── prompts/ # Markdown guides served via list_prompts/read_prompt tools
22
+ ├── release-notes/ # Version history by package (e.g., release-notes/mcp/0.3.2.md)
22
23
  └── dist/ # Built output
23
24
  ```
24
25
 
@@ -50,15 +51,17 @@ import { createMcpServer } from "@jaypie/mcp";
50
51
  const server = createMcpServer({ version: "1.0.0", verbose: true });
51
52
  ```
52
53
 
53
- ## MCP Tools (27 total)
54
+ ## MCP Tools (29 total)
54
55
 
55
- ### Documentation Tools (3)
56
+ ### Documentation Tools (5)
56
57
 
57
58
  | Tool | Description |
58
59
  |------|-------------|
59
60
  | `list_prompts` | Lists all `.md` files in `prompts/` with descriptions and required file patterns |
60
61
  | `read_prompt` | Returns content of a specific prompt file |
61
62
  | `version` | Returns package version string |
63
+ | `list_release_notes` | Lists release notes by package, supports `since_version` filtering |
64
+ | `read_release_note` | Returns full content of a specific release note |
62
65
 
63
66
  ### AWS CLI Tools (16)
64
67
 
@@ -225,6 +228,35 @@ Markdown content here...
225
228
 
226
229
  Prompts are automatically available via `list_prompts` and `read_prompt` tools.
227
230
 
231
+ ## Adding New Release Notes
232
+
233
+ Release notes are organized by package in `release-notes/`:
234
+
235
+ ```
236
+ release-notes/
237
+ ├── jaypie/
238
+ │ └── 1.2.3.md
239
+ └── mcp/
240
+ └── 0.3.2.md
241
+ ```
242
+
243
+ Each release note uses YAML frontmatter:
244
+
245
+ ```yaml
246
+ ---
247
+ version: 0.3.2
248
+ date: 2025-01-19
249
+ summary: Brief one-line summary for listing
250
+ ---
251
+
252
+ ## Changes
253
+
254
+ - Feature 1
255
+ - Bug fix 2
256
+ ```
257
+
258
+ Release notes are automatically available via `list_release_notes` and `read_release_note` tools. The `since_version` parameter allows clients to query only releases newer than a specific version.
259
+
228
260
  ## Exports
229
261
 
230
262
  ```typescript
@@ -0,0 +1,11 @@
1
+ ---
2
+ version: 1.2.17
3
+ date: 2025-01-20
4
+ summary: Added CloudFormation outputs for bucket deployment automation
5
+ ---
6
+
7
+ ## Changes
8
+
9
+ - Added `DestinationBucketName` CfnOutput to `JaypieWebDeploymentBucket` for workflow automation
10
+ - Added `DistributionId` CfnOutput to `JaypieWebDeploymentBucket` for CloudFront cache invalidation
11
+ - Workflows can now dynamically fetch deployment outputs from CloudFormation instead of requiring manual GitHub variable configuration
@@ -0,0 +1,17 @@
1
+ ---
2
+ version: 0.1.1
3
+ date: 2025-01-19
4
+ summary: Added HTTP server, Express router, Commander CLI, streaming support, and FabricData CRUD generator
5
+ ---
6
+
7
+ ## Changes
8
+
9
+ - Added `FabricHttpServer` for standalone multi-service Lambda/server routing
10
+ - Added `FabricRouter` for Express multi-service routing
11
+ - Added `fabricExpress` middleware adapter
12
+ - Added `fabricCommand` for Commander CLI integration
13
+ - Added `FabricData` CRUD service generator for DynamoDB models
14
+ - Added streaming support with SSE/NDJSON utilities
15
+ - Fixed MCP adapter registration
16
+ - Renamed `convert` to `resolve` for consistency
17
+ - Refactored organizational unit to scope naming
@@ -0,0 +1,11 @@
1
+ ---
2
+ version: 0.1.2
3
+ date: 2025-01-20
4
+ summary: Added ServiceSuite for grouping and discovering fabricService instances
5
+ ---
6
+
7
+ ## Changes
8
+
9
+ - Added `createServiceSuite` function for grouping fabricService instances
10
+ - ServiceSuite provides service discovery, metadata export, and direct execution
11
+ - New exports: `createServiceSuite`, `CreateServiceSuiteConfig`, `ServiceInput`, `ServiceMeta`, `ServiceSuite`
@@ -0,0 +1,14 @@
1
+ ---
2
+ version: 0.3.2
3
+ date: 2025-01-19
4
+ summary: Added release notes tools for querying package version history
5
+ ---
6
+
7
+ ## Changes
8
+
9
+ - Added `list_release_notes` tool to list available release notes by package and version
10
+ - Added `read_release_note` tool to read full release note content
11
+ - Added `release-notes/` directory structure organized by package name
12
+ - Added `semver` dependency for version comparison and filtering
13
+ - Release notes support YAML frontmatter with version, date, and summary fields
14
+ - Supports filtering by `since_version` to get only newer releases
@@ -0,0 +1,12 @@
1
+ ---
2
+ version: 0.3.3
3
+ date: 2025-01-20
4
+ summary: Added suite export for direct service execution
5
+ ---
6
+
7
+ ## Changes
8
+
9
+ - Added `@jaypie/mcp/suite` export exposing a pre-built ServiceSuite with all MCP tools
10
+ - Suite enables programmatic discovery and execution of MCP services
11
+ - Added `@jaypie/fabric` dependency for ServiceSuite support
12
+ - Updated rollup config to build suite entry point
@@ -0,0 +1,36 @@
1
+ ---
2
+ version: 0.3.4
3
+ date: 2025-01-20
4
+ summary: Add skill tool for cleaner documentation access
5
+ ---
6
+
7
+ ## Changes
8
+
9
+ ### New Features
10
+
11
+ - **skill tool**: New `skill(alias)` function for accessing Jaypie documentation
12
+ - Call `skill("index")` to list all available skills with descriptions
13
+ - Call `skill("aws")`, `skill("tests")`, etc. to get specific documentation
14
+ - Path traversal protection for security
15
+ - Case insensitive alias matching
16
+
17
+ ### New Skills
18
+
19
+ Added 25 skill files covering all aspects of Jaypie development:
20
+ - **Infrastructure**: aws, cdk, cicd, datadog, dns, dynamodb, secrets, variables
21
+ - **Development**: debugging, errors, logs, mocks, style, tests, writing
22
+ - **Patterns**: fabric, models, services, tools
23
+ - **Reference**: agents, index, jaypie, legacy, releasenotes, topics
24
+
25
+ ### Skill Frontmatter
26
+
27
+ Skills use YAML frontmatter with:
28
+ - `description` - Brief description shown in index listing
29
+ - `related` - Comma-separated list of related skill aliases
30
+
31
+ ### Deprecations
32
+
33
+ - `list_prompts` - Use `skill("index")` instead
34
+ - `read_prompt` - Use `skill(alias)` instead
35
+
36
+ Both deprecated tools remain functional for backwards compatibility.
@@ -0,0 +1,25 @@
1
+ ---
2
+ description: Minimal agent instructions
3
+ ---
4
+
5
+ # Agent Instructions
6
+
7
+ Add to CLAUDE.md or AGENTS.md:
8
+
9
+ ```markdown
10
+ ## Jaypie
11
+
12
+ Query `mcp__jaypie__skill(alias: String)` for development guidance:
13
+
14
+ Contents: index, releasenotes, topics
15
+ Development: debugging, errors, logs, mocks, style, tests, writing
16
+ Infrastructure: aws, cdk, cicd, datadog, dns, dynamodb, secrets, variables
17
+ Patterns: fabric, models, services, tools
18
+ Meta: agents, jaypie, legacy
19
+ ```
20
+
21
+ Or, for one line,
22
+
23
+ ```markdown
24
+ `mcp__jaypie__skill(index)` describes Jaypie development skills for this repository.
25
+ ```