OpenWork MCP Gateway

com.openworklabs由 openworklabs.com 发布官方发布者v1.0.0更新于 Nov 2, 2026

Your OpenWork org's skills, plugins, workflows, and connections through one OAuth MCP URL.

已验证Streamable HTTP可网页运行效率与工作流AI 与机器学习

概览

AI 生成的概览

远程 OAuth MCP 网关,通过一个 URL 让助手访问 OpenWork 组织的技能、插件、工作流与连接。

可以做什么
  • 通过单一 OAuth 保护的 MCP 端点访问 OpenWork 组织的技能、插件、工作流和连接。
  • 清单未列出具体工具,因此无法在此说明确切操作。
  • README 描述的是底层 Den 控制平面(认证、用户、组织、SCIM、管理、worker),并非 MCP 工具面。
适用场景
适合团队已在运行 OpenWork 组织,并希望助手直接使用其共享技能、插件、工作流和连接,而无需逐个接入各集成时使用。
运行要求
需要服务商 API 主机上的远程 streamable HTTP 端点,并必须使用 OAuth 认证。未声明任何软件包、环境变量或请求头。
安装前请注意
OAuth 会授予助手访问组织 OpenWork 资源的权限,连接前请确认授权范围及所连接的组织。清单未列出任何工具,请先确认该网关可读取或修改哪些内容。README 还提到底层 API 的管理、worker 删除与 SCIM 路由。

安装

在 SourceWeft 中

  1. 打开 控制台中的 OpenWork MCP Gateway,将其添加到工作区。
  2. 连接 所需的 凭据。它们会被私密存储,绝不会在公开页面上展示。
  3. 为需要使用其工具的对话启用该服务。

Web executable,通过 Streamable HTTP。 远程服务在工作区中配置后即可从网页运行时运行。

交给智能体安装

把这段提示词粘贴到 Claude Code、Codex、Cursor 等智能体,或 SourceWeft 对话中。智能体会读取该服务器的安装指南,先向你展示发布者、端点和登录方式,经你同意后再把它添加到你的客户端。密钥不会写进任何命令。

阅读 https://sourceweft.com/mcp/com.openworklabs%2Fopenwork/install.md,并按其中说明把这个 MCP 服务器接入我的客户端。修改任何配置之前,先告诉我它的发布者、端点和登录方式,等我确认。不要把 API 密钥写进命令或我会提交的文件;问我密钥应从哪里获取。

查看智能体所依据的安装指南

其他 MCP 客户端

把它添加到你客户端的 mcpServers 配置中。 客户端会在首次连接时完成 OAuth 登录。

{
  "mcpServers": {
    "openwork-gateway": {
      "type": "http",
      "url": "https://api.openworklabs.com/mcp/agent"
    }
  }
}

README

Den API

Hono-based Den control plane implementation (den-api, formerly den-controller).

This package is the active Den control plane implementation.

It carries the full migrated Den API route surface in a foldered Hono structure so agents can navigate one area at a time without scanning the whole service.

Quick start

bash
pnpm --filter @openwork-ee/den-api dev:local

Local demo org seed

With a local Den MySQL database running, seed a demo organization:

bash
pnpm --filter @openwork-ee/den-api seed:demo-org

This creates Acme Robotics with demo users, teams, pending invites, and an imported Anthropic Knowledge Work Plugins marketplace. It is guarded by OPENWORK_DEV_MODE=1, defaults to the local Den DB URL, and does not create workers or active external integrations.

Default owner login: [email protected] / OpenWorkDemo123!.

Observability

DEN_OBSERVABILITY_BACKEND selects one backend: none, otel, or sentry.

  • none (default): structured JSON logs are written to stdout.
  • otel: initializes the OpenTelemetry Node SDK before Hono/DB imports, exports OTLP HTTP/protobuf traces, metrics, and logs from standard OTEL_* variables, and uses @hono/otel for normalized request spans/metrics without inbound HTTP auto-instrumentation.
  • sentry: initializes @sentry/hono/node before app imports and uses the official Hono middleware for errors/tracing/Sentry Logs. Do not combine it with the OTEL backend.

The request access log records request id, method, normalized route, status, duration and the number of database statements the request issued (db_queries, a count only), and omits health/readiness noise. Health/readiness requests also skip den-api's Hono observability middleware. Authorization, cookie, body, and query values are redacted from app telemetry. OTEL_SERVICE_NAME overrides the default den-api service name. Daytona's own OTEL bootstrap remains disabled; do not set Daytona OTEL enable variables from den-api.

Builds generate source maps. Sentry source maps are uploaded only when DEN_OBSERVABILITY_BACKEND=sentry and SENTRY_AUTH_TOKEN, SENTRY_ORG, SENTRY_PROJECT, and SENTRY_RELEASE are present; SENTRY_DIST is passed through when set. The auth token must stay in secret storage and is never written to env examples or logs.

Approved web origins

Organization owners and admins approve self-hosted OpenWork Web instances in the Den dashboard under Org settings → Approved web origins (/v1/org/web-origins). Each entry is an exact HTTPS origin — scheme, host, and optional port, with no path, query, fragment, credentials, or wildcard — and an organization can approve up to 20. An approved origin can receive web sign-in handoffs back to /signin only while that organization is active, and is allowed for credentialed browser requests to Den API. Handoff approval is checked on every request; CORS approval is cached per process and takes effect within about 30 seconds on every Den API replica. If DEN_CORS_HANDLED_BY_EDGE=true, the edge must also allow the same exact origin and the Authorization preflight.

Current routes

  • GET / -> 302 https://openworklabs.com
  • GET /health
  • Better Auth mount at /api/auth/*
  • desktop handoff routes under /v1/auth/*
  • current user routes under /v1/me*
  • organization routes under /v1/orgs*
  • active-organization SCIM management routes under /v1/scim*
  • admin routes under /v1/admin*
  • worker list, delete, and activity heartbeat routes under /v1/workers* (OpenWork Web instances are worker rows; their lifecycle lives under /v1/cloud/*)

Folder map

  • src/routes/auth/: Better Auth mount + desktop handoff endpoints
  • src/routes/me/: current user and current user's org resolution routes
  • src/routes/org/: organization CRUD-ish surfaces, split by area
  • src/routes/admin/: admin-only reporting endpoints
  • src/routes/workers/: worker list, delete, and activity heartbeat endpoints
  • src/middleware/: reusable Hono middleware for auth context, org context, teams, and validation
  • src/cache.ts: shared Redis-backed read-through cache. Add expensive read helpers here, keyed as cache:${cacheParent}:${cacheChild}:${id}; for example cache.auth.session(token) and cache.org.members(orgId). Redis is optional, so every helper must fall back to the DB loader.

Each major folder also has its own README.md so future agents can inspect one area in isolation.

Shared query cache

Use src/cache.ts for Den API read-through Redis caching. Do not create ad-hoc Redis calls in route handlers or domain modules.

Current public helpers:

ts
const session = await cache.auth.session(token)const members = await cache.org.members(orgId)

Cache key format:

txt
cache:${cacheParent}:${cacheChild}:${id}

Example key:

txt
cache:auth:session:<token>cache:org:members:org_...

Rules for adding cache helpers:

  • Add helpers under the exported cache namespace in src/cache.ts.
  • Keep each helper as a read-through function: check Redis, run the DB loader on miss, write Redis, then return the loaded value.
  • Redis is optional. Helpers must work when DATABASE_REDIS_URL is unset.
  • Non-local Redis should use rediss://. Set DATABASE_REDIS_ALLOW_INSECURE_INTERNAL=1 only when the redis:// endpoint is private, non-public, and restricted to a trusted internal network.
  • Use short TTLs unless invalidation is explicit and tested.
  • Auth sessions are DB-authoritative and cached for at most one hour. Any session delete or identity-changing update must invalidate cache.auth.deleteSession(token).
  • Do not add new security-critical cache helpers without explicit invalidation and tests.
  • Prefer names that read like domain calls, for example cache.auth.session(token) or cache.org.members(orgId).

SCIM existing-user adoption

The SCIM plugin in src/auth.ts requires existing membership in the connector's organization before adopting an existing account. Its shouldLinkUser callback also performs an uncached membership read by normalized user and organization IDs with removed_at IS NULL. Better Auth 1.7.0-beta.10's built-in membership lookup does not exclude removed rows, so both checks must remain enabled. Invitations without a joined user, removed memberships, outside-org accounts, and tokens without an organization cannot authorize adoption. No email-domain exception applies. Successful adoption preserves the user ID and membership role; the new-user provisioning path is unchanged.

The plugin evaluates this policy before its account-creation transaction. The fresh read excludes already-removed memberships, but does not serialize a concurrent removal with linking. Closing that race requires transactional policy support in the plugin; this callback is not an atomic membership lock.

Run the installed-plugin regression suite in its own Node process:

bash
pnpm --filter @openwork-ee/den-api test:scim-existing-user-linking

It uses Better Auth's memory adapter and compiles the membership SQL without executing it. It does not import Den's full auth graph, start MySQL, configure OAuth, or require real credentials.

TypeID validation

  • Shared Den TypeID validation lives in ee/packages/utils/src/typeid.ts.
  • Use typeId.schema("...") or the compatibility helpers like normalizeDenTypeId("...", value) when an endpoint accepts or returns a Den TypeID.
  • ee/apps/den-api/src/openapi.ts exposes denTypeIdSchema(...) so path params, request bodies, and response fields all share the same validation rules and Swagger examples.
  • Swagger now documents Den IDs with their required prefix and fixed 26-character TypeID suffix, so invalid IDs fail request validation before route logic runs.

OpenAPI contract

  • packages/docs/openapi.json is an ignored build artifact generated by pnpm den:contract and linted with pnpm api:lint. CI generates OpenAPI/SDK from source and fails on generation/type errors, Spectral errors, or warnings above .spectral-baseline.json. Hosted docs read the same normalized public contract from /openapi.json?public=1; .github/workflows/refresh-api-docs.yml rebuilds them once production serves a contract change.
  • Every route registration carries a describeRoute() with summary, tags, security and responses; conventions and documented exceptions are in docs/api-style.md.

Migration approach

  1. Keep den-api (formerly den-controller) as the source of truth for Den control-plane behavior.
  2. Add endpoints in focused Hono route groups one surface at a time.
  3. Reuse shared middleware and Zod validators instead of duplicating request/session/org plumbing.
  4. Leave a short README in each route area when the structure changes so later agents can recover context fast.

来源:ee/apps/den-api/README.md,提交 9cc6772

工具

0
该服务器需要登录,因此 SourceWeft 无法在没有账号的情况下读取其工具,也未收录。已连接账号所能看到的内容可能因账号及其权限而异。

版本历史

1
  1. v1.0.0最新Sep 27, 2026

评分

已满足适用检查项的 75%

该评分衡量此收录条目的完整程度,依据注册中心条目、端点与公开来源计算得出。它不是对服务器本身的评价,也不表示服务器安全或当前可用:可连通性是带日期的检查结果,评分也不包含安装量或用户评价。

  • 近 30 天内可连通必需25 分
  • 已声明认证方式必需10 分
  • 已列出工具15 分

    请让服务器在无凭据时响应 tools/list,或发布可在沙箱中无凭据启动的软件包。

  • 描述必需15 分
  • 图标10 分
  • 文档15 分
  • 许可证10 分

    请在仓库或注册中心条目中声明许可证。