
A VS Code extension that parses SWIFT MT messages and presents them in a human-readable, editable table view with real-time validation.
Features
- Table view — opens
.mtand.swiftfiles in a structured, readable table layout - Inline editing — edit tag values directly in the table; changes sync back to the source file
- Real-time validation — structural, tag-level, and value-level validation with error/warning indicators
- Reference regeneration — regenerate reference fields automatically
- Command Palette support — open the viewer for any file via
Swift Message: Open Viewer
Supported Message Types
| Type | Description |
|---|---|
| MT101 | Request for Transfer |
| MT541 | Receive Against Payment |
| MT910 | Confirmation of Credit |
| MT940 | Customer Statement Message |
| MT942 | Interim Transaction Report |
Usage
- Open a
.mtor.swiftfile — the viewer activates automatically - Or run Swift Message: Open Viewer from the Command Palette (
Ctrl+Shift+P) on any file - Edit tag values inline in the table
- Validation runs automatically on open and after each edit (500ms debounce)
- Run Swift Message: Validate manually from the Command Palette at any time
Keybindings
Ctrl+Shift+M(Mac:Cmd+Shift+M) — Open ViewerCtrl+Shift+V(Mac:Cmd+Shift+V) — Manual Validation
Validation
The extension validates messages at three levels:
- Structural — block delimiters, Block 4 terminator (
-}), tag syntax - Tag-level — mandatory/optional tags per MT type, sequence rules
- Value-level — field format checks (length, character set, date/amount formats)
Errors and warnings are shown in a banner at the top of the viewer and highlighted inline.
Requirements
- VS Code 1.85.0 or later
Extension Settings
This extension does not contribute any configurable settings.
Release Notes
0.1.0
Initial release with support for MT101, MT541, MT910, MT940, and MT942 message types.