|
| 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