Skip to content

Commit ffe6110

Browse files
authored
fix: remove mcp.ts from generated .llm-context folder (#310)
MCP support is not yet public-facing; stop vending mcp.ts schema to the .llm-context directory created by `agentcore create`.
1 parent 5a1e0b4 commit ffe6110

3 files changed

Lines changed: 0 additions & 5 deletions

File tree

src/cli/templates/schema-assets.ts

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,6 @@ import llmContextReadmeSrc from '../../schema/llm-compacted/README.md';
1212
import agentcoreSchemaSrc from '../../schema/llm-compacted/agentcore.ts';
1313
// @ts-expect-error - text import handled by build plugin
1414
import awsTargetsSchemaSrc from '../../schema/llm-compacted/aws-targets.ts';
15-
// @ts-expect-error - text import handled by build plugin
16-
import mcpSchemaSrc from '../../schema/llm-compacted/mcp.ts';
1715
import { readFileSync } from 'fs';
1816
import { dirname, join } from 'path';
1917
import { fileURLToPath } from 'url';
@@ -38,6 +36,5 @@ function getContent(imported: unknown, filename: string): string {
3836
export const LLM_CONTEXT_FILES: Record<string, string> = {
3937
'README.md': getContent(llmContextReadmeSrc, 'README.md'),
4038
'agentcore.ts': getContent(agentcoreSchemaSrc, 'agentcore.ts'),
41-
'mcp.ts': getContent(mcpSchemaSrc, 'mcp.ts'),
4239
'aws-targets.ts': getContent(awsTargetsSchemaSrc, 'aws-targets.ts'),
4340
};

src/schema/llm-compacted/README.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@
77
| File | JSON Config | Purpose |
88
| ---------------- | ------------------ | ------------------------------------ |
99
| `agentcore.ts` | `agentcore.json` | Project and agent environment config |
10-
| `mcp.ts` | `mcp.json` | MCP gateways and tools |
1110
| `aws-targets.ts` | `aws-targets.json` | Deployment targets |
1211

1312
## Usage

web-harness/schema-assets-mock.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,5 @@
88
export const LLM_CONTEXT_FILES: Record<string, string> = {
99
'README.md': '# LLM Context Files\n\nMock content for browser testing.',
1010
'agentcore.ts': 'export const AgentCoreSchema = {};',
11-
'mcp.ts': 'export const McpSchema = {};',
1211
'aws-targets.ts': 'export const AwsTargetsSchema = {};',
1312
};

0 commit comments

Comments
 (0)