# COBOL Bridge

AI-powered COBOL mainframe modernization platform with 11 MCP tools, 3 resources, and 3 prompts. Parse copybooks, assess CICS integrations, scan JCL batch jobs, map VSAM files, translate EBCDIC, brid…

## Quick Start

```bash
# Connect this server (installs CLI if needed)
npx -y @smithery/cli@latest mcp add csgaglobal/cobol-bridge

# Browse available tools
npx -y @smithery/cli@latest tool list csgaglobal/cobol-bridge

# Get full schema for a tool
npx -y @smithery/cli@latest tool get csgaglobal/cobol-bridge cobol.transform.records

# Call a tool
npx -y @smithery/cli@latest tool call csgaglobal/cobol-bridge cobol.transform.records '{}'
```

## Direct MCP Connection

Endpoint: `https://cobol-bridge.run.tools`

**Optional config:**
- `apiKey` (query) — Optional API key for authenticated access
- `outputFormat` (query) — Preferred output format for tool results (json or text)
- `timeout` (query) — Request timeout in milliseconds
- `verbose` (query) — Enable verbose logging for debugging

## Tools (11)

- `cobol.transform.records` — Parse COBOL copybooks into structured JSON with field types, sizes, and hierarchy. Extracts PIC clauses, REDEFINES, OCC…
- `cobol.analyze.transactions` — Analyze CICS transaction programs for API bridge compatibility. Identifies EXEC CICS commands, BMS maps, COMMAREA struc…
- `cobol.analyze.jobs` — Scan JCL job streams to extract step dependencies, dataset usage, program calls, and scheduling metadata for batch mode…
- `cobol.discover.copybooks` — Map VSAM file structures (KSDS, ESDS, RRDS) to modern database schemas. Generates SQL DDL, index recommendations, and m…
- `cobol.transform.encoding` — Translate EBCDIC-encoded data to ASCII/UTF-8 with support for packed decimal (COMP-3), binary (COMP), and zoned decimal…
- `bridge.output.payments` — Transform legacy payment messages from MT (SWIFT) to MX (ISO 20022) format. Generates pacs, camt, and pain message type…
- `bridge.validate.encryption` — Assess cryptographic posture of COBOL systems for post-quantum readiness. Inventories crypto usage, maps to NIST-approv…
- `bridge.validate.compliance` — Map COBOL systems to 76+ global regulations including DORA, GDPR, Basel III, SOX, PCI-DSS, HIPAA, and MiFID II. Perform…
- `cobol.discover.programs` — AI-powered COBOL codebase discovery and cataloging. Performs dependency mapping, complexity analysis (cyclomatic, Halst…
- `bridge.output.interface` — Generate REST, GraphQL, and gRPC API definitions from COBOL copybooks and program interfaces. Produces OpenAPI 3.0 spec…
- `bridge.output.tests` — Capture COBOL program behavior as test baselines and detect regressions with intelligent diffing. Generates test cases …

```bash
# Get full input/output schema for a tool
npx -y @smithery/cli@latest tool get csgaglobal/cobol-bridge <tool-name>
```

## Resources

- `cobol-bridge://docs/api-reference`
- `cobol-bridge://docs/iso20022-guide`
- `cobol-bridge://docs/regulatory-frameworks`

## Prompts (3)

- `modernization-assessment` (programSource) — Complete COBOL modernization assessment with risk scoring and migration roadmap
- `iso20022-migration` (messageType, sampleMessage) — Plan and execute ISO 20022 MT to MX migration for SWIFT messages
- `security-audit` (target) — Full security audit including PQC readiness, regulatory compliance, and vulnerability assessment
