@@ -28,39 +28,27 @@ export type ExtensionKind = "mcp" | "plugin" | "skill" | "ui-control" | "extensi
2828
2929export type McpDirectoryInfo = {
3030 id ?: string ;
31- /** Display name shown in the UI. */
3231 name : string ;
33- /** Safe server name for opencode.jsonc (alphanumeric, - and _ only). Auto-derived from name if omitted. */
3432 serverName ?: string ;
3533 description : string ;
3634 url ?: string ;
3735 type ?: "remote" | "local" ;
3836 command ?: string [ ] ;
3937 oauth : boolean ;
40- /** Route OAuth through the local OpenWork gateway instead of delegating it to OpenCode. */
4138 managedOAuth ?: boolean ;
42- /** Identifies MCP entries owned by OpenWork Connect instead of workspace configuration. */
4339 managedBy ?: "openwork-connect" ;
4440 oauthConfig ?: {
4541 clientId ?: string ;
4642 clientSecret ?: string ;
4743 scope ?: string ;
4844 } ;
49- /** Extension category for UI grouping. Defaults to "mcp". */
5045 kind ?: ExtensionKind ;
51- /** Simple Icons slug for brand icon (e.g. "notion", "stripe", "figma"). */
5246 iconSlug ?: string ;
53- /** Direct icon URL (e.g. local SVG). Takes priority over iconSlug. */
5447 iconSrc ?: string ;
55- /** Prompt inserted from the composer extension picker. */
5648 composerPrompt ?: string ;
57- /** Whether OpenWork should show this extension as enabled before user setup. */
5849 defaultEnabled ?: boolean ;
59- /** Whether OpenWork should hide this extension from the default catalog view. */
6050 defaultHidden ?: boolean ;
61- /** Whether this extension is still in preview. */
6251 preview ?: boolean ;
63- /** Normalized extension manifest backing this catalog entry. */
6452 extensionManifest ?: OpenWorkExtensionManifest ;
6553} ;
6654
@@ -89,7 +77,6 @@ export function isBuiltInOpenWorkExtension(entry: Pick<McpDirectoryInfo, "kind"
8977 return entry . kind === "extension" && isTrustedBuiltInExtension ( entry . extensionManifest ) ;
9078}
9179
92- /** Derive a safe MCP server name from a display name or explicit serverName. */
9380export function getMcpServerName ( entry : McpDirectoryInfo ) : string {
9481 if ( entry . serverName ) return entry . serverName ;
9582 return canonicalMcpServerName ( entry . name ) ;
@@ -156,11 +143,6 @@ export const MCP_QUICK_CONNECT: McpDirectoryInfo[] = [
156143 serverName : "openwork-cloud" ,
157144 get description ( ) { return t ( "mcp.quick_connect_openwork_cloud_desc" ) ; } ,
158145 get url ( ) {
159- // The desktop app connects to the minimal, harness-facing surface
160- // (/mcp/agent: search_capabilities + execute_capability only), not the
161- // full catalog at bare /mcp. getDenMcpUrl heals stale web-app origins;
162- // never at the web app's root (see
163- // packages/docs/cloud/run-in-the-cloud/cloud-mcp.mdx).
164146 try {
165147 return `${ getDenMcpUrl ( ) } /agent` ;
166148 } catch {
@@ -172,23 +154,17 @@ export const MCP_QUICK_CONNECT: McpDirectoryInfo[] = [
172154 managedBy : "openwork-connect" ,
173155 kind : "mcp" ,
174156 iconSrc : "/openwork-mark.svg" ,
175- // Auto-managed by the signed-in cloud reconciler (syncCloudControlMcp):
176- // configured + enabled while signed in to OpenWork Cloud. Hidden from the
177- // default catalog; "Show hidden" reveals it.
178157 defaultHidden : true ,
179158 } ,
180159 {
181160 get name ( ) { return t ( "mcp.quick_connect_openwork_ui_title" ) ; } ,
182161 serverName : "openwork-ui" ,
183162 get description ( ) { return t ( "mcp.quick_connect_openwork_ui_desc" ) ; } ,
184163 type : "local" ,
185- // Dev builds replace this with the local checkout path before writing config.
186164 command : [ "npx" , "-y" , "openwork-ui-mcp" ] ,
187165 oauth : false ,
188166 kind : "ui-control" ,
189167 iconSrc : "/openwork-mark.svg" ,
190- // Internal UI-control surface for agents driving the desktop app. Hidden
191- // from the default catalog; "Show hidden" reveals it.
192168 defaultHidden : true ,
193169 } ,
194170 ...BUILT_IN_OPENWORK_EXTENSION_MANIFESTS . map ( extensionManifestToDirectoryInfo ) ,
0 commit comments