Skip to content

[Native install] VS Code / GitHub Copilot — direct setup and qualification #2828

Open

Description

@mickdarling

Outcome

Provide the simplest supported direct installation route for VS Code / GitHub Copilot from the beta Connect landing page. Priority: secondary. Parent route: #2809; program: #2807. This is a platform-sized qualification/implementation slice, not a claim that a native install URI already exists.

Platform scope

Qualify the documented native URI/import/add-server paths for a remote HTTP MCP connection, including user versus workspace scope. Test stable desktop first and record remote/WSL/agent-host differences for later passes. This is a separate developer-tool integration, not a substitute for the Microsoft hosted Copilot products.

Acceptance

External gateway internals belong only in the private companion linked from #2807; this issue owns public client setup and generic permission compatibility.

Starting evidence to revalidate during implementation

Activity

  1. added
    priority: medium
    area: platform-compat
    type: task
    target: beta
    on Sep 24, 2026
  2. mickdarling commented on Sep 25, 2026

    @mickdarling
    MemberAuthor

    First implementation slice is open as draft PR #2830, targeting beta at head b882e75272ee270cc33431f87ffde2a06dcf38fc.

    It adds a documented VS Code browser install link, retains Cursor’s native route, and centralizes safe endpoint/name configuration in a pure module. Editable names help preserve existing connections; invalid names clear stale actions. Permission evaluation is unchanged and the console does not claim local hooks are installed.

    35 focused tests, full lint/build, security tests and script typecheck pass. Independent Sol review and desktop/mobile UI checks found no blockers. Chrome → VS Code opened the native review page with the exact expected payload; saved installation, real hosted OAuth and an MCP tool call remain qualification work, so this issue stays open.

    The full unit run passed 14,703 tests; its sole auth-asset failure is reproduced only in hidden checkout paths and tracked in #2831 (focused unchanged-beta suite passes in a non-hidden checkout). The inherited beta npm audit gate is tracked separately in #2829. The PR remains a draft; automated reviews and CI must cover its latest head before promotion.

  3. mickdarling commented on Sep 25, 2026

    @mickdarling
    MemberAuthor

    Merged into beta with maintainer authorization after confirming all 23 checks passed and Codex/Claude review coverage of the unchanged head b882e75272ee270cc33431f87ffde2a06dcf38fc. Merge commit: 174b0fe09036729424a9dd0cf8bd1d2c382957ef.

    This completes the initial implementation slice in #2830. It does not close #2809 or the complete client-qualification scope of #2828. Deployment remains held for the inherited dependency audit (#2829) and real hosted VS Code OAuth/MCP qualification. No deployment was performed as part of this merge.

  4. mickdarling commented on Sep 25, 2026

    @mickdarling
    MemberAuthor

    VS Code hosted OAuth qualification — 2026-09-25

    Status: partial qualification. The exact vscodeLink produced by the merged connectionArtifacts builder installed in VS Code, reused an approved OAuth account, initialized the hosted MCP server, exposed 10 tools, and was removed. A real tools/call and canceled-authorization retry remain unverified.

    Version and provenance

    • Client: Visual Studio Code 1.122.1 on Darwin arm64.
    • Hosted endpoint: https://mcp.dollhousemcp.com/mcp; live /healthz identified service version 2.1.0-beta.2 (independently checked by the coordinating agent).
    • Candidate builder: src/web-console/ui/connect-config.js at b882e75272ee270cc33431f87ffde2a06dcf38fc, merged into beta as 174b0fe09036729424a9dd0cf8bd1d2c382957ef. The Connect UI change was not yet deployed. This qualifies the candidate link artifact against the current hosted endpoint, not a click on the production Connect page.
    • Isolation: VS Code's built-in New Window with Temporary Profile. Each test used only its own uniquely named MCP entry. No pre-existing server entry or local permission hook was modified.

    First run: raw protocol and OAuth smoke test

    The first run manually constructed a VS Code protocol payload with the name Dollhouse Hosted OAuth Test 2026-09-25. That name contains spaces and is rejected by the merged builder's validateConnectionName; this run must not be cited as testing builder output. It tested VS Code's protocol handoff and the hosted OAuth flow.

    Chrome handed the link to VS Code, whose review showed the intended http type and hosted endpoint. After installation, VS Code discovered protected-resource and authorization-server metadata. The consent page identified Visual Studio Code, native application type, resource https://mcp.dollhousemcp.com/mcp, loopback callback, and requested scope mcp (“Call the MCP server on your behalf”). It marked the client NEW CLIENT FOR THIS ACCOUNT. The user approved this exact grant before Authorize Client was clicked. Safari displayed Sign-in successful.

    VS Code recorded Connection state: Running and Discovered 10 tools. Initial start was 14:07:04.992 EDT; tool discovery was 14:09:33.077 EDT. The approximately 148-second interval included the wait for human consent and cannot be interpreted as server response time. VS Code's tool picker exposed describe_operation, ingest_openapi_spec, integration_request, list_operations, mcp_aql_create, mcp_aql_delete, mcp_aql_execute, mcp_aql_read, mcp_aql_update, and regenerate_integration_skill.

    In this first temporary profile, Stop Server changed the entry to Stopped. Start Server restored Running, rediscovered OAuth metadata, and logged Discovered 10 tools in about 0.64 seconds (14:12:01.210–14:12:01.845 EDT) without another consent prompt. Uninstall returned the detail to Install; MCP: List Servers then showed only Add Server. The temporary window and test browser tabs were closed.

    Second run: exact merged candidate artifact

    I called the real connectionArtifacts("https://mcp.dollhousemcp.com/mcp", "https://mcp.dollhousemcp.com", "DollhouseOAuthTest_20260925") export from the merged candidate checkout, and opened its returned vscodeLink in Chrome. DollhouseOAuthTest_20260925 satisfies the builder's 1–64-character name rule. VS Code's review displayed exactly that name, http type, and https://mcp.dollhousemcp.com/mcp URL. The entry was installed in a fresh temporary profile.

    VS Code asked the new server definition to authenticate to the same host, then offered the existing MCP account or Sign in to another account. I selected the existing MCP account; no new browser consent or expanded scope appeared. MCP: List Servers showed DollhouseOAuthTest_20260925 Running. Its output recorded protected-resource and authorization-server metadata discovery and Discovered 10 tools at 14:14:50.530 EDT, after a 14:14:37.992 EDT start. The candidate entry appeared in VS Code's Configure Tools picker with the same tool set (the picker visibly showed names including describe_operation, ingest_openapi_spec, integration_request, list_operations, mcp_aql_create, and mcp_aql_delete; the log confirmed count 10).

    Uninstall returned the candidate detail to Install; MCP: List Servers again showed only Add Server. I closed the fresh temporary profile and the candidate Chrome tab. The original mcp-server VS Code window remained open.

    Remaining limits

    • No tools/call was made. VS Code 1.122.1's built-in MCP UI exposed server lifecycle, output, configuration, and tool selection, but no direct tool-run command in its MCP command set. Chat in the temporary profile showed Sign In. A separate Copilot/model sign-in or subscription was not added solely for this check. A harmless read-only call such as mcp_aql_read / get_capabilities still needs a client with an available tool-invocation path.
    • Canceled OAuth and retry were not exercised. VS Code's Sign Out (MCP) might clear a host-scoped credential shared with another profile; this was avoided to preserve existing connections. The Safari prompt to reopen VS Code after the first successful loopback callback was canceled during tab cleanup; that was not cancellation of OAuth.
    • Removing temporary VS Code entries does not establish that the server-side OAuth grant or local credential was revoked. The native client registration may persist. It was not revoked because it identifies Visual Studio Code generally and may be used by other connections.
    • No deployment or hosted configuration change was made. Issue [Native install] VS Code / GitHub Copilot — direct setup and qualification #2828 should remain open pending real tool-call and canceled-auth/retry evidence.

    No authorization codes, tokens, state values, or full callback URLs are included here.

  5. mickdarling commented on Sep 25, 2026

    @mickdarling
    MemberAuthor

    The VS Code Connect installation links from #2830 are now live on the hosted beta as of 2026-09-25, deployed with revision 961029c1d7b96018491a623cac86a91b3fa7b96a via #2838. Public Connect assets matched that source twice; health/readiness, OAuth discovery, public signing keys, and the MCP scope challenge passed.

    Prior temporary-profile qualification established native-link setup, successful OAuth, a Running server, ten discovered tools, restart, and removal. It did not establish a real MCP tool call from VS Code; the temporary chat profile was signed out. Keep this issue open for that and the remaining acceptance coverage. A hosted MCP connection does not by itself install local enforcement hooks.

  6. mickdarling commented on Sep 26, 2026

    @mickdarling
    MemberAuthor

    VS Code / GitHub Copilot hosted Connect qualification — 2026-09-26

    Environment: macOS 26.5.2 arm64, VS Code 1.122.1, Safari, existing signed-in Copilot Pro account. From the production Connect page, the unique dollhouse-qual-vscode vscode:mcp/install link opened the VS Code preview with the expected HTTP transport, name and hosted endpoint. Selecting Install added the server. The OAuth client reported previously authorized by this account for the same mcp scope and loopback callback; refreshing authorization succeeded. This tests reuse/refresh of existing authorization, not a first-time grant.

    In a new folder-free VS Code window, a bounded chat with Copilot Auto (GPT-5.4 mini) showed the expanded actual tool panel for mcp_aql_read – dollhouse-qual-vscode (MCP Server). Input was {operation:"introspect",params:{query:"operations"}}; output had success:true and the operation catalog JSON. Exactly one read-only call was made. No workspace files or personal Dollhouse elements were read or changed. Uninstall returned the UI to Install; MCP List Servers showed only the prior dollhousemcp stopped global entry. The original restricted-mode workspace remained intact.

    Still untested: fresh OAuth consent, cancellation/retry, repeated setup, browser return and missing target app, remote/WSL/agent-host variants, and local hook/enforcement readiness. The platform issue remains open until those acceptance items are addressed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    area: platform-compatpriority: mediumstatus: in-progresstarget: betatype: task

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions