feat(mcp): enable assistant connections through experimental settings

Co-Authored-By: Paperclip <noreply@paperclip.ing>
This commit is contained in:
DottaandPaperclip committed 2026-10-02 09:32:06 -05:00
1 parent 6aa0962d4f
commit 7a5f597e84
16 files changed
+140 -13

No files matched your search

+1
View File
@@ -23,6 +23,7 @@ export async function establishPublicMcpSession(api: RunnerApi, page: Page, secr
api.setBrowserSession(cookies.join("; "));
await page.context().addCookies(cookies.map(cookie => ({ name: cookie.slice(0, cookie.indexOf("=")), value: cookie.slice(cookie.indexOf("=") + 1), url: api.baseURL, httpOnly: true, sameSite: "Lax" })));
await api.post("/api/bootstrap/claim");
await api.patch("/api/instance/settings/experimental", { enablePublicMcp: true });
return user.user.id;
}
-1
View File
@@ -52,7 +52,6 @@ const serverEnvironment = buildPaperclipServerEnvironment(process.env, {
PAPERCLIP_BIND_HOST: "127.0.0.1",
PAPERCLIP_DEPLOYMENT_MODE: process.env.PAPERCLIP_RUNNER_E2E_PUBLIC_MCP === "1" ? "authenticated" : "local_trusted",
...(process.env.PAPERCLIP_RUNNER_E2E_PUBLIC_MCP === "1" ? {
PAPERCLIP_PUBLIC_MCP_ENABLED: "true",
PAPERCLIP_PUBLIC_URL: `http://127.0.0.1:${port}`,
PAPERCLIP_AUTH_PUBLIC_BASE_URL: `http://127.0.0.1:${port}`,
PAPERCLIP_AUTH_BASE_URL_MODE: "explicit",