Skip to content

fix(den): Cowork marketplace import survives GitHub limits - #5624

Merged
benjaminshafii merged 3 commits into
devfrom
feat/den-cowork-plugin-import-proof
Oct 5, 2026
Merged

benjaminshafii merged 3 commits into
devfrom
feat/den-cowork-plugin-import-proof

Conversation

@benjaminshafii

Copy link
Copy Markdown
Member

What is this about?

Den's "import plugins from GitHub" now works on real Claude Cowork marketplaces such as Anthropic's knowledge-work-plugins, and an agent driving it through OpenWork MCP gets clear answers instead of opaque failures.

What problem does it solve?

Moving a team from Cowork means importing their plugin marketplace into the organization. On a real marketplace that failed before it started, and when it did get through, the agent couldn't explain what was missing.

What was the situation before?

  • Previewing anthropics/knowledge-work-plugins failed with "API rate limit exceeded": every file was a separate GitHub API call, without credentials, sharing 60 calls an hour per server IP.
  • A server the preview called "supported" made the import fail with a bare internal_server_error.
  • get_skill on an imported skill said "no longer available" when it was really waiting for an admin to set up its connections.

How is this implemented?

  • routes/org/plugin-system/store.ts: files come from raw.githubusercontent.com at the resolved commit, so only 3 API calls are made. Those calls use the OAuth app's client credentials when set (5,000/hour).
  • Same file: the preview applies the import's URL guard, the import returns 400 naming the server, and both honor DEN_ALLOW_PRIVATE_MCP_URLS like every other MCP path.
  • mcp/agent.ts, mcp/skill-tools.ts: a withheld skill returns skill_needs_setup with the readiness hint and action.
  • DEN_PUBLIC_GITHUB_API_BASE / _RAW_BASE let specs serve a fixed repo. There is a new world, den-cowork-marketplace, whose fake GitHub runs inside the Den sandbox on Daytona.

What else changed?

none

Release note

Importing a plugin marketplace from GitHub (for example Anthropic's Cowork plugins) no longer hits GitHub's rate limit, and agents now say which connections a newly imported skill still needs.

Evidence

evals/specs/den-cowork-marketplace-import.e2e.test.ts — the agent previews a Cowork-shaped marketplace with 3 GitHub API calls, imports skills and connectors, and is told "needs an org admin to configure its connection" rather than "no longer available". Passed locally and on Daytona at 9154b13.

@benjaminshafii
benjaminshafii requested a review from a team October 4, 2026 05:44
@vercel

vercel Bot commented Oct 4, 2026 •

Copy link
Copy Markdown
Contributor

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
openwork-app Ready Ready Preview Oct 4, 2026 9:50pm UTC
openwork-den Ready Ready Preview Oct 4, 2026 9:50pm UTC
openwork-diagnostics Ready Ready Preview Oct 4, 2026 9:50pm UTC
openwork-landing Ready Ready Preview, v0 Oct 4, 2026 9:50pm UTC

@github-actions

github-actions Bot commented Oct 4, 2026 •

Copy link
Copy Markdown
Contributor

OpenWork evidence

Status Commit Preview Updated
🟢 Ready · evidence passed 7dd3303 Open preview 2026-10-04 21:53:58 UTC

Run details · Open the preview to inspect evidence and sandbox options.

Benjamin Shafii added 3 commits October 4, 2026 14:49
…ns blocked skills

Importing a Claude Cowork marketplace (e.g. anthropics/knowledge-work-plugins)
through Den failed or misled an agent in four ways:

- Every file was read through GitHub's /contents API without credentials,
  so one marketplace preview (250+ SKILL.md files) exhausted the 60
  requests/hour shared by the server IP. Files now come from
  raw.githubusercontent.com at the resolved commit, and the three API calls
  use the OAuth app's client credentials when set (5,000/hour).
- The preview marked servers the import's egress guard rejects as
  supported, and the import then failed with a bare 500. The preview applies
  the same guard; the import returns 400 naming the server.
- The import ignored DEN_ALLOW_PRIVATE_MCP_URLS, unlike every other MCP path.
- get_skill answered "no longer available" for an imported skill whose
  plugin still needs connections set up. It now returns skill_needs_setup
  with the readiness hint and action.

DEN_PUBLIC_GITHUB_API_BASE / DEN_PUBLIC_GITHUB_RAW_BASE let specs serve a
fixed repository. Adds the den-cowork-marketplace world (fake GitHub inside
the Den sandbox on Daytona) and a spec that drives preview → import →
list_skills → get_skill through the OpenWork MCP as an admin's agent.

Signed-off-by: Benjamin Shafii <[email protected]>
@benjaminshafii
benjaminshafii force-pushed the feat/den-cowork-plugin-import-proof branch from 9154b13 to 7dd3303 Compare October 4, 2026 21:49
@cloudflare-workers-and-pages

cloudflare-workers-and-pages Bot commented Oct 4, 2026 •

Copy link
Copy Markdown

Deploying openwork with  Cloudflare Pages  Cloudflare Pages

Latest commit: 7dd3303
Status: ✅  Deploy successful!
Preview URL: https://6bf5c122.openwork.pages.dev
Branch Preview URL: https://feat-den-cowork-plugin-impor.openwork.pages.dev

View logs

This branch was successfully deployed

5 active and 1 inactive deployments
Evidence / PR 5624 — 7dd3303c Deployed Oct 4, 2026 by github-actions[bot]
Preview – openwork-app — 7dd3303c Deployed Oct 4, 2026 by vercel[bot]
Preview – openwork-landing — 7dd3303c Deployed Oct 4, 2026 by vercel[bot]
Preview – openwork-den — 7dd3303c Deployed Oct 4, 2026 by vercel[bot]
Preview – openwork-diagnostics — 7dd3303c Deployed Oct 4, 2026 by vercel[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant