Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 6 additions & 6 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@waishnav/devspace",
"version": "1.0.19",
"version": "1.0.20",
"description": "Expose a secure local coding workspace through an MCP server.",
"type": "module",
"main": "dist/server.js",
Expand Down Expand Up @@ -41,7 +41,7 @@
"@anthropic-ai/sandbox-runtime": "0.0.71",
"@clack/prompts": "^1.5.1",
"@earendil-works/pi-coding-agent": "^0.80.3",
"@modelcontextprotocol/ext-apps": "^1.7.2",
"@modelcontextprotocol/ext-apps": "^1.7.5",
"@modelcontextprotocol/sdk": "^1.29.0",
"@opencode-ai/sdk": "^1.17.13",
"@pierre/diffs": "^1.2.5",
Expand Down
10 changes: 5 additions & 5 deletions src/server.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ test("workspace app resource declares its dedicated public origin", async (t) =>
const context = await fixture(t);
const listed = await context.client.listResources();
const resource = listed.resources.find((entry) =>
entry.uri === "ui://devspace/workspace-app/v1.html"
entry.uri === "ui://devspace/workspace-app/v2.html"
);
assert.ok(resource);

Expand All @@ -39,17 +39,17 @@ test("workspace app resource declares its dedicated public origin", async (t) =>
assert.deepEqual(ui?.csp?.connectDomains, [origin]);
});

test("widget tools expose the ChatGPT outputTemplate compatibility alias", async (t) => {
test("widget tools use the MCP Apps resource URI without the legacy ChatGPT alias", async (t) => {
const context = await fixture(t);
const listed = await context.client.listTools();
const openWorkspace = listed.tools.find((tool) => tool.name === "open_workspace");
assert.ok(openWorkspace);

const meta = openWorkspace._meta as Record<string, unknown> | undefined;
assert.equal(meta?.["openai/outputTemplate"], "ui://devspace/workspace-app/v1.html");
assert.equal(meta?.["ui/resourceUri"], "ui://devspace/workspace-app/v1.html");
assert.equal(meta?.["openai/outputTemplate"], undefined);
assert.equal(meta?.["ui/resourceUri"], "ui://devspace/workspace-app/v2.html");
assert.deepEqual(meta?.ui, {
resourceUri: "ui://devspace/workspace-app/v1.html",
resourceUri: "ui://devspace/workspace-app/v2.html",
visibility: ["model"],
});
});
Expand Down
4 changes: 1 addition & 3 deletions src/server.ts
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ import {
} from "./local-agent-availability.js";

const PROCESS_HANDOFF_MS = 2_000;
const WORKSPACE_APP_URI = "ui://devspace/workspace-app/v1.html";
const WORKSPACE_APP_URI = "ui://devspace/workspace-app/v2.html";
const WORKSPACE_APP_MANIFEST_ENTRY = "workspace-app.html";
const WRITE_TOOL_ANNOTATIONS = {
readOnlyHint: false,
Expand Down Expand Up @@ -134,7 +134,6 @@ interface ToolDefinitionMeta extends Record<string, unknown> {
resourceUri: string;
visibility: ["model"];
};
"openai/outputTemplate": string;
}

type EmptyToolDefinitionMeta = Record<string, unknown> & {
Expand Down Expand Up @@ -168,7 +167,6 @@ function toolWidgetDescriptorMeta(
resourceUri: WORKSPACE_APP_URI,
visibility: ["model"],
},
"openai/outputTemplate": WORKSPACE_APP_URI,
},
};
}
Expand Down
4 changes: 2 additions & 2 deletions src/stateless-mcp-http.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import { SqliteOAuthStore } from "./oauth-store.js";
import { createServer } from "./server.js";

const PROTOCOL_VERSION = "2025-06-18";
const WORKSPACE_APP_URI = "ui://devspace/workspace-app/v1.html";
const WORKSPACE_APP_URI = "ui://devspace/workspace-app/v2.html";

test("stateless MCP keeps resources readable after more than 32 fresh client initializations", async (t) => {
const root = await mkdtemp(join(tmpdir(), "devspace-stateless-http-test-"));
Expand Down Expand Up @@ -107,7 +107,7 @@ test("stateless MCP keeps resources readable after more than 32 fresh client ini
assert.equal(resource.status, 200);
assert.equal(resource.headers.get("mcp-session-id"), null);
const body = await resource.text();
assert.match(body, /ui:\/\/devspace\/workspace-app\/v1\.html/);
assert.match(body, /ui:\/\/devspace\/workspace-app\/v2\.html/);
assert.match(body, /text\/html/);
}
});
Expand Down
4 changes: 2 additions & 2 deletions src/ui/workspace-app.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ if (!maybeAppRoot) {
const appRoot = maybeAppRoot;

const CARD_PROBE_PREFIX = "[DevSpace card-probe]";
const CARD_PROBE_BUILD = "card-race-v4";
const CARD_PROBE_BUILD = "card-race-v5";

void boot();

Expand All @@ -91,7 +91,7 @@ async function boot(): Promise<void> {
render();

app = new App(
{ name: "devspace-tool-cards", version: "0.5.0-card-store-probe" },
{ name: "devspace-tool-cards", version: "0.6.0-mcp-apps-only" },
{},
);

Expand Down