From fc4a6361dc39925e52bbc981d23f049e0dac0ee5 Mon Sep 17 00:00:00 2001 From: Brian O'Kelley Date: Fri, 12 Dec 2025 14:56:29 -0500 Subject: [PATCH 1/3] Make registered agents immediately visible in directory MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Remove approval requirement for agents. All registered agents now appear in the directory immediately. Also remove code that reset approval status on agent updates since approval is no longer used. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude --- server/src/db/migrations/017_approve_all_agents.sql | 9 +++++++++ server/src/http.ts | 11 +++-------- 2 files changed, 12 insertions(+), 8 deletions(-) create mode 100644 server/src/db/migrations/017_approve_all_agents.sql diff --git a/server/src/db/migrations/017_approve_all_agents.sql b/server/src/db/migrations/017_approve_all_agents.sql new file mode 100644 index 0000000000..76f9e56f9f --- /dev/null +++ b/server/src/db/migrations/017_approve_all_agents.sql @@ -0,0 +1,9 @@ +-- Approve all pending agents +-- Now that approval is no longer required, approve any existing pending agents + +UPDATE registry_entries +SET approval_status = 'approved', + approved_at = NOW(), + updated_at = NOW() +WHERE entry_type = 'agent' + AND approval_status = 'pending'; diff --git a/server/src/http.ts b/server/src/http.ts index 685a575155..bdfcb077b4 100644 --- a/server/src/http.ts +++ b/server/src/http.ts @@ -5959,7 +5959,7 @@ export class HTTPServer { contact_name, contact_email, contact_website, - approval_status: 'pending', // New agents need approval + approval_status: 'approved', workos_organization_id: targetOrgId, }); @@ -5971,7 +5971,7 @@ export class HTTPServer { res.status(201).json({ agent: entry, - message: 'Agent created successfully. It will be visible in the registry once approved.', + message: 'Agent created successfully.', }); } catch (error) { logger.error({ err: error }, 'Create agent error'); @@ -6070,11 +6070,6 @@ export class HTTPServer { allowedUpdates.metadata = metadata; } - // Updates reset approval status to pending (agent needs re-review) - if (Object.keys(allowedUpdates).length > 0) { - allowedUpdates.approval_status = 'pending'; - } - const updatedAgent = await registryDb.updateEntry(existingAgent.slug, allowedUpdates); logger.info({ @@ -6084,7 +6079,7 @@ export class HTTPServer { res.json({ agent: updatedAgent, - message: 'Agent updated successfully. Changes will be visible once approved.', + message: 'Agent updated successfully.', }); } catch (error) { logger.error({ err: error }, 'Update agent error'); From 402d6f46779e7a44c59a8c0f93d3e27338d73d0a Mon Sep 17 00:00:00 2001 From: Brian O'Kelley Date: Fri, 12 Dec 2025 15:07:29 -0500 Subject: [PATCH 2/3] Add changeset for agent directory fix MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude --- .changeset/fix-agent-directory-visibility.md | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 .changeset/fix-agent-directory-visibility.md diff --git a/.changeset/fix-agent-directory-visibility.md b/.changeset/fix-agent-directory-visibility.md new file mode 100644 index 0000000000..d0a3e8542a --- /dev/null +++ b/.changeset/fix-agent-directory-visibility.md @@ -0,0 +1,5 @@ +--- +"adcontextprotocol": patch +--- + +Fix agent directory visibility - registered agents now appear immediately without approval From a2ff1d1e4d9a9c835f8a0adb9fb1891c126c8ac0 Mon Sep 17 00:00:00 2001 From: Brian O'Kelley Date: Fri, 12 Dec 2025 15:13:02 -0500 Subject: [PATCH 3/3] Use empty changeset (no version bump) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude --- .changeset/fix-agent-directory-visibility.md | 1 - 1 file changed, 1 deletion(-) diff --git a/.changeset/fix-agent-directory-visibility.md b/.changeset/fix-agent-directory-visibility.md index d0a3e8542a..5c7b29047e 100644 --- a/.changeset/fix-agent-directory-visibility.md +++ b/.changeset/fix-agent-directory-visibility.md @@ -1,5 +1,4 @@ --- -"adcontextprotocol": patch --- Fix agent directory visibility - registered agents now appear immediately without approval