Skip to content

Commit 90f52a3

Browse files
committed
fix: another tweak
1 parent c7210d1 commit 90f52a3

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

core/context/mcp/MCPConnection.ts

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -169,7 +169,12 @@ class MCPConnection {
169169

170170
const vars = getTemplateVariables(JSON.stringify(this.options));
171171
const unrendered = vars.map((v) => {
172-
return decodeSecretLocation(v.replace("secrets.", "")).secretName;
172+
const stripped = v.replace("secrets.", "");
173+
try {
174+
return decodeSecretLocation(stripped).secretName;
175+
} catch {
176+
return stripped;
177+
}
173178
});
174179

175180
if (unrendered.length > 0) {

0 commit comments

Comments
 (0)