Skip to content

Commit 1a12eea

Browse files
authored
V next smart chuncking (#22)
smart chunking feature including multiple bug fixes.
1 parent f7239e7 commit 1a12eea

File tree

98 files changed

+37981
-3526
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

98 files changed

+37981
-3526
lines changed

.vscode/mcp.json

Lines changed: 82 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,82 @@
1+
{
2+
"$schema": "https://json.schemastore.org/mcp-config.json",
3+
"name": "COBOL Migration MCP",
4+
"description": "MCP configuration for COBOL to Java/C# migration project",
5+
"version": "1.0.0",
6+
7+
"servers": {
8+
"cobol-migration": {
9+
"command": "dotnet",
10+
"args": ["run", "--project", "McpChatWeb/McpChatWeb.csproj"],
11+
"cwd": "${workspaceFolder}",
12+
"env": {
13+
"ASPNETCORE_ENVIRONMENT": "Development",
14+
"ASPNETCORE_URLS": "http://localhost:5028"
15+
}
16+
}
17+
},
18+
19+
"tools": {
20+
"migration": {
21+
"description": "COBOL migration tools",
22+
"commands": {
23+
"run-java": {
24+
"command": "./doctor.sh run",
25+
"input": "1\nn\n",
26+
"description": "Run migration with Java as target language"
27+
},
28+
"run-csharp": {
29+
"command": "./doctor.sh run",
30+
"input": "2\nn\n",
31+
"description": "Run migration with C# as target language"
32+
},
33+
"status": {
34+
"command": "curl -s http://localhost:5028/api/runs/latest",
35+
"description": "Get latest migration run status"
36+
},
37+
"portal": {
38+
"command": "open http://localhost:5028",
39+
"description": "Open migration portal in browser"
40+
}
41+
}
42+
},
43+
"database": {
44+
"description": "Database query tools",
45+
"commands": {
46+
"runs": {
47+
"command": "sqlite3 Data/migration.db 'SELECT id, status, started_at FROM runs ORDER BY id DESC LIMIT 10;'",
48+
"description": "List recent migration runs"
49+
},
50+
"files": {
51+
"command": "sqlite3 Data/migration.db 'SELECT file_name, is_copybook FROM cobol_files WHERE run_id = (SELECT MAX(id) FROM runs);'",
52+
"description": "List files in latest run"
53+
}
54+
}
55+
}
56+
},
57+
58+
"autoApprove": {
59+
"commands": [
60+
"dotnet build",
61+
"dotnet run",
62+
"dotnet test",
63+
"./doctor.sh",
64+
"curl -s http://localhost:5028/*",
65+
"sqlite3 Data/migration.db *",
66+
"pkill -f CobolToQuarkusMigration",
67+
"pkill -f McpChatWeb",
68+
"lsof -i :5028",
69+
"ps aux | grep -E 'dotnet|McpChatWeb'"
70+
],
71+
"patterns": [
72+
"^cd\\s",
73+
"^ls\\s",
74+
"^cat\\s",
75+
"^head\\s",
76+
"^tail\\s",
77+
"^grep\\s",
78+
"^find\\s",
79+
"^echo\\s"
80+
]
81+
}
82+
}

0 commit comments

Comments
 (0)