Skip to content

armgit / eve

Public Imported from GitHub
0

The Open Framework for Building Agents

fix(eve): accept the documented auth.displayName on connections (#4980)

roboeve[bot]299db19354bf
diff --git a/.changeset/connection-auth-display-name.md b/.changeset/connection-auth-display-name.md
new file mode 100644
index 000000000..5a378267a
--- /dev/null
+++ b/.changeset/connection-auth-display-name.md
@@ -0,0 +1,5 @@
+---
+"eve": patch
+---
+
+Connections now accept the documented `auth.displayName` field instead of failing validation with `Unknown key "displayName"`.
diff --git a/packages/eve/src/internal/authored-definition/connection.test.ts b/packages/eve/src/internal/authored-definition/connection.test.ts
index 97f2b7635..a10728995 100644
--- a/packages/eve/src/internal/authored-definition/connection.test.ts
+++ b/packages/eve/src/internal/authored-definition/connection.test.ts
@@ -185,8 +185,7 @@ describe("normalizeMcpClientConnectionDefinition", () => {
expect((result.auth as Record<string, unknown>).evict).toBe(evict);
});
- // Bug #4978: the documented `auth.displayName` is rejected as an unknown key.
- it.fails("preserves the optional auth displayName", () => {
+ it("preserves the optional auth displayName", () => {
const result = normalizeMcpClientConnectionDefinition(
validInput({
auth: {
diff --git a/packages/eve/src/internal/authored-definition/connection.ts b/packages/eve/src/internal/authored-definition/connection.ts
index a3e302aae..e7b253835 100644
--- a/packages/eve/src/internal/authored-definition/connection.ts
+++ b/packages/eve/src/internal/authored-definition/connection.ts
@@ -41,6 +41,7 @@ const KNOWN_OPENAPI_TOP_LEVEL_KEYS = [
const KNOWN_AUTHORIZATION_KEYS = [
"completeAuthorization",
"credentialOwner",
+ "displayName",
"evict",
"getToken",
"principalType",