Skip to content

Conversation

@aponcedeleonch
Copy link
Member

@aponcedeleonch aponcedeleonch commented Feb 4, 2026

Summary

Changes

  • Added TOMLStorageTypeMap constant for nested tables format
  • Added TOMLMapConfigUpdater struct and methods (Upsert, Remove, getServersMap, buildServerEntry)
  • Added conditional logic in retrieveConfigFileMetadata to select the appropriate updater based on TOMLStorageType
  • Added comprehensive tests for TOMLMapConfigUpdater

Dependencies

This PR depends on #3596 which adds the foundation TOML support with the array-of-tables format.

🤖 Generated with Claude Code

aponcedeleonch and others added 2 commits February 4, 2026 15:34
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>
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>
@codecov
Copy link

codecov bot commented Feb 4, 2026

Codecov Report

❌ Patch coverage is 56.43564% with 88 lines in your changes missing coverage. Please review.
✅ Project coverage is 65.52%. Comparing base (ac82979) to head (2342e8c).
⚠️ Report is 1 commits behind head on toml-array-of-tables.

Files with missing lines Patch % Lines
pkg/client/config_editor.go 64.63% 37 Missing and 21 partials ⚠️
pkg/client/config.go 21.05% 30 Missing ⚠️
Additional details and impacted files
@@                   Coverage Diff                    @@
##           toml-array-of-tables    #3597      +/-   ##
========================================================
+ Coverage                 65.51%   65.52%   +0.01%     
========================================================
  Files                       406      406              
  Lines                     39996    40193     +197     
========================================================
+ Hits                      26202    26338     +136     
- Misses                    11762    11799      +37     
- Partials                   2032     2056      +24     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@aponcedeleonch aponcedeleonch marked this pull request as draft February 4, 2026 13:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

size/M Medium PR: 300-599 lines changed

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant