Skip to content

The cross-harness, self-improving memory layer for AI agents. Join our community: https://discord.com/invite/zdNChS2fBu

mcpconnect: run on the Windows CI leg; new TOML uses LF

Claudec1e3679f46d7
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
index 02cfa2fd..01ac48bb 100644
--- a/.github/workflows/ci.yml
+++ b/.github/workflows/ci.yml
@@ -487,6 +487,7 @@ jobs:
./internal/hermessession/... `
./internal/learning/... `
./internal/managedprivacy/... `
+ ./internal/mcpconnect/... `
./internal/mcpserver/... `
./internal/onboarding/... `
./internal/openclawsession/... `
diff --git a/cli/beacon/internal/mcpconnect/tomledit.go b/cli/beacon/internal/mcpconnect/tomledit.go
index 4c02568b..fd996dde 100644
--- a/cli/beacon/internal/mcpconnect/tomledit.go
+++ b/cli/beacon/internal/mcpconnect/tomledit.go
@@ -3,7 +3,6 @@ package mcpconnect
import (
"fmt"
"regexp"
- "runtime"
"strings"
"github.com/pelletier/go-toml/v2"
@@ -32,15 +31,13 @@ func tomlString(value string) string {
return jsonString(value)
}
-// tomlLineEnding is the line ending the document already uses.
+// tomlLineEnding is the line ending the document already uses. A new document gets "\n" on every
+// platform, as `codex mcp add` writes it.
func tomlLineEnding(text string) string {
if strings.Contains(text, "\r\n") {
return "\r\n"
}
- if strings.Contains(text, "\n") || runtime.GOOS != "windows" {
- return "\n"
- }
- return "\r\n"
+ return "\n"
}
// tomlBlock renders [mcp_servers.<name>] with fields in the order given.