Add TOML config file support with array-of-tables format#3596
Merged
aponcedeleonch merged 1 commit intomainfrom Feb 5, 2026
Merged
Add TOML config file support with array-of-tables format#3596aponcedeleonch merged 1 commit intomainfrom
aponcedeleonch merged 1 commit intomainfrom
Conversation
aponcedeleonch
added a commit
that referenced
this pull request
Feb 4, 2026
Add support for TOML configuration files using the nested tables format ([section.servername]), which is used by clients like Codex. This PR adds: - TOMLStorageTypeMap constant for nested tables format - TOMLMapConfigUpdater struct and methods - Conditional logic in retrieveConfigFileMetadata to select updater based on TOMLStorageType - Comprehensive tests for the nested tables format This builds on top of the array-of-tables TOML support added in PR #3596. Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This was referenced Feb 4, 2026
Add support for TOML configuration files using the array-of-tables format ([[section]]), which is used by clients like Mistral Vibe. This PR adds: - TOML extension constant and TOMLStorageType type - Shared TOML helper functions (tomlWithFileLock, readTOMLConfig, writeTOMLConfig, extractURLFromMCPServer, convertToAnySlice) - TOMLConfigUpdater struct for array-of-tables format - Helper functions extractServersKeyFromConfig and extractURLLabelFromConfig for extracting configuration values - Changes to validateConfigFileFormat for TOML support - Changes to CreateClientConfig for TOML file creation - Changes to retrieveConfigFileMetadata for TOML updater creation - Comprehensive tests for the array-of-tables format Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
51c3d8a to
3fe280b
Compare
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #3596 +/- ##
==========================================
- Coverage 65.51% 65.50% -0.01%
==========================================
Files 406 406
Lines 39996 40123 +127
==========================================
+ Hits 26202 26283 +81
- Misses 11762 11797 +35
- Partials 2032 2043 +11 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
dmjb
requested changes
Feb 4, 2026
dmjb
approved these changes
Feb 5, 2026
aponcedeleonch
added a commit
that referenced
this pull request
Feb 5, 2026
Add support for TOML configuration files using the nested tables format ([section.servername]), which is used by clients like Codex. This PR adds: - TOMLStorageTypeMap constant for nested tables format - TOMLMapConfigUpdater struct and methods - Conditional logic in retrieveConfigFileMetadata to select updater based on TOMLStorageType - Comprehensive tests for the nested tables format This builds on top of the array-of-tables TOML support added in PR #3596. Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
aponcedeleonch
added a commit
that referenced
this pull request
Feb 5, 2026
Add support for TOML configuration files using the nested tables format ([section.servername]), which is used by clients like Codex. This PR adds: - TOMLStorageTypeMap constant for nested tables format - TOMLMapConfigUpdater struct and methods - Conditional logic in retrieveConfigFileMetadata to select updater based on TOMLStorageType - Comprehensive tests for the nested tables format This builds on top of the array-of-tables TOML support added in PR #3596. Co-authored-by: Claude Opus 4.5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
[[section]]) formatChanges
TOMLextension constant andTOMLStorageTypetype withTOMLStorageTypeArrayconstanttomlWithFileLock,readTOMLConfig,writeTOMLConfig,extractURLFromMCPServer,convertToAnySliceTOMLConfigUpdaterstruct and methods for array-of-tables formatextractServersKeyFromConfigandextractURLLabelFromConfigvalidateConfigFileFormatto support TOML validationCreateClientConfigto support TOML file creationretrieveConfigFileMetadatato create TOML updatersTOMLConfigUpdater🤖 Generated with Claude Code