Browser-based graphical shell and control plane for a Linux server you own — real terminal, file manager, live metrics and BYOK AI in one mobile-first workspace. Next.js 16 · React 19 · node-pty · Tailwind v4 · shadcn/ui. Public alpha, self-hosted.
TypeScript browser-shellcontrol-planefile-managerhomelabmobile-firstnextjsptyreactself-hostedserver-managementshadcn-uisysadmintailwindcssterminaltypescriptvpsweb-desktopweb-terminal
feat(infra): add private DOKU MCP connections
Rahmanab4168481f6c
diff --git a/docs/CHANGELOG.md b/docs/CHANGELOG.mdindex 6c72beae..5b835ed0 100644--- a/docs/CHANGELOG.md+++ b/docs/CHANGELOG.md@@ -8,6 +8,7 @@ this is the *what*, and it is what Settings → About shows as “What's new”.**Added**+- `infra` add private DOKU MCP connections- `infra` add private Convex env presence checks- `infra` add safe Dokploy deployment recovery- `infra` manage Convex Cloud custom domains safelydiff --git a/docs/PROGRESS.md b/docs/PROGRESS.mdindex 3c7e6447..e8f1a48e 100644--- a/docs/PROGRESS.md+++ b/docs/PROGRESS.md@@ -2804,3 +2804,8 @@ Screenshot evidence previously lived in unrelated scratch directories or only in- Added `convex.env.presence`, a bounded deployment-admin read that accepts 1–32 exact environment variable names and returns only boolean presence for those requested names.- The operation creates a short-lived deploy key scoped only to `deployment:env:view`, always revokes it, never returns environment values, and never exposes unrequested environment-variable names.- Used the presence-only check to confirm CareerPack production has both `AUTH_GOOGLE_ID` and `AUTH_GOOGLE_SECRET`; therefore its custom `convexSite` remains non-canonical until the Google OAuth redirect URI is migrated.++### 2026-09-06 — Private DOKU MCP connections+- Added `doku` as a native named integration with one deliberately bounded auth method: DOKU MCP. Payment REST HMAC credentials are not accepted by this provider until MSO has a non-mutating official verification contract for them.+- DOKU MCP setup stores Client ID/API Key only through the private setup flow, pins environment to `sandbox|production`, derives only DOKU's official MCP endpoints, and verifies credentials with a read-only JSON-RPC `initialize` request before saving.+- Portable connection mapping supports `DOKU_MCP_CLIENT_ID`, `DOKU_MCP_API_KEY`, and `DOKU_MCP_ENV`; credential values remain redacted from summaries and tool output.diff --git a/lib/infra/additional-doctor.test.ts b/lib/infra/additional-doctor.test.tsindex a8b61ccf..191eb6db 100644--- a/lib/infra/additional-doctor.test.ts+++ b/lib/infra/additional-doctor.test.ts@@ -7,8 +7,8 @@ import { summarizeInfraProvider } from "./store";const KEY = "synthetic_api_credential_for_unit_test";afterEach(() => vi.unstubAllGlobals());describe("additional native credential providers", () => {- it("exposes twelve native providers with guided method-specific fields", () => {- const catalog = connectionCatalog(); expect(catalog).toHaveLength(12);+ it("exposes thirteen native providers with guided method-specific fields", () => {+ const catalog = connectionCatalog(); expect(catalog).toHaveLength(13);for (const p of catalog) for (const m of p.sources.find(s=>s.id==="direct")!.methods) {expect(m.fields.length).toBeGreaterThan(0); expect(m.guidance.steps.length).toBeGreaterThan(1);expect(m.guidance.url).toMatch(/^https:\/\//); expect(m.guidance.reference).toMatch(/^https:\/\//);@@ -16,6 +16,8 @@ describe("additional native credential providers", () => {expect(setupFields("convex-cloud", "personal").map(f => f.key)).toEqual(["personalToken"]);expect(setupFields("convex-cloud", "deployment").map(f => f.key)).toEqual(["deployKey", "deploymentName"]);expect(() => setupFields("convex-cloud", "organization")).toThrow();+ expect(setupFields("doku", "mcp").map(f => f.key)).toEqual(["mcpClientId", "mcpApiKey", "environment"]);+ expect(() => setupFields("doku", "direct")).toThrow();});it.each([["github", "https://api.github.com/user", { apiKey: KEY }],@@ -31,6 +33,26 @@ describe("additional native credential providers", () => {expect(result).toContain("authenticated"); expect(result).not.toContain(KEY);expect(mock.mock.calls[0]?.[0]).toBe(endpoint);});+ it("verifies DOKU MCP with a fixed official endpoint and never exposes credentials", async () => {+ const mock = vi.fn(async (input: RequestInfo | URL, init?: RequestInit) => {+ expect(String(input)).toBe("https://api-sandbox.doku.com/doku-mcp-server/mcp");+ const headers = new Headers(init?.headers);+ expect(headers.get("Client-Id")).toBe("BRN-synthetic");+ expect(headers.get("authorization")).toBe(`Basic ${Buffer.from(`${KEY}:`).toString("base64")}`);+ expect(JSON.parse(String(init?.body))).toMatchObject({ method: "initialize", id: "mso-doku-doctor" });+ return new Response(JSON.stringify({ jsonrpc: "2.0", id: "mso-doku-doctor", result: { protocolVersion: "2024-11-05", capabilities: {} } }), { status: 200, headers: { "content-type": "application/json" } });+ });+ vi.stubGlobal("fetch", mock);+ const result = await doctorAdditionalProvider("doku", { mcpClientId: "BRN-synthetic", mcpApiKey: KEY, environment: "sandbox" });+ expect(result).toBe("authenticated; sandbox MCP initialize verified");+ expect(result).not.toContain(KEY);+ expect(mock).toHaveBeenCalledTimes(1);+ });+ it("rejects arbitrary DOKU environments before sending credentials", async () => {+ const mock = vi.fn(); vi.stubGlobal("fetch", mock);+ await expect(doctorAdditionalProvider("doku", { mcpClientId: "BRN-synthetic", mcpApiKey: KEY, environment: "https://evil.invalid" })).rejects.toThrow("invalid environment");+ expect(mock).not.toHaveBeenCalled();+ });it("never echoes reflected provider errors or request secrets", async () => {vi.stubGlobal("fetch", vi.fn(async () => new Response(KEY, { status: 401 })));await expect(doctorAdditionalProvider("github", { apiKey: KEY })).rejects.toThrow("GitHub HTTP 401");@@ -48,5 +70,6 @@ describe("additional native credential providers", () => {expect(JSON.stringify(summarizeInfraProvider("convex-cloud", { personalToken: KEY }))).not.toContain(KEY);expect(JSON.stringify(summarizeInfraProvider("convex", { adminKey: KEY, apiUrl: "https://convex.example.com" }))).not.toContain(KEY);expect(JSON.stringify(summarizeInfraProvider("supabase", { managementToken: KEY }))).not.toContain(KEY);+ expect(JSON.stringify(summarizeInfraProvider("doku", { mcpClientId: "BRN-synthetic", mcpApiKey: KEY, environment: "sandbox" }))).not.toContain(KEY);});});diff --git a/lib/infra/additional-doctor.ts b/lib/infra/additional-doctor.tsindex 2c67afc8..39f0bbd8 100644--- a/lib/infra/additional-doctor.ts+++ b/lib/infra/additional-doctor.ts@@ -47,6 +47,58 @@ async function checked(provider: string, url: string, headers: HeadersInit, fetcreturn response;}++function dokuMcpEndpoint(environment: string): string {+ if (environment === "sandbox") return "https://api-sandbox.doku.com/doku-mcp-server/mcp";+ if (environment === "production") return "https://mcp.doku.com/mcp";+ throw new Error("DOKU MCP invalid environment");+}++function mcpInitializeResult(body: unknown, text: string): boolean {+ const direct = obj(body);+ if (direct.jsonrpc === "2.0" && direct.id === "mso-doku-doctor" && direct.result && typeof direct.result === "object") return true;+ for (const line of text.split(/\r?\n/)) {+ if (!line.startsWith("data:")) continue;+ try {+ const event = obj(JSON.parse(line.slice(5).trim()));+ if (event.jsonrpc === "2.0" && event.id === "mso-doku-doctor" && event.result && typeof event.result === "object") return true;+ } catch {}+ }+ return false;+}++async function doctorDokuMcp(values: Record<string, string>): Promise<string | null> {+ if (!present(values.mcpClientId) || !present(values.mcpApiKey) || !present(values.environment)) return null;+ const url = dokuMcpEndpoint(values.environment);+ let response;+ try {+ response = await request(url, {+ method: "POST",+ headers: {+ "Client-Id": values.mcpClientId,+ authorization: `Basic ${Buffer.from(`${values.mcpApiKey}:`).toString("base64")}`,+ "content-type": "application/json",+ accept: "application/json, text/event-stream",+ },+ body: JSON.stringify({+ jsonrpc: "2.0",+ id: "mso-doku-doctor",+ method: "initialize",+ params: {+ protocolVersion: "2024-11-05",+ capabilities: {},+ clientInfo: { name: "mso-integration-doctor", version: "1" },+ },+ }),+ }, TIMEOUT_MS);+ } catch {+ throw new Error("DOKU MCP request failed");+ }+ if (!response.ok) throw new Error(`DOKU MCP HTTP ${response.status}`);+ if (!mcpInitializeResult(response.body, response.text)) throw new Error("DOKU MCP invalid initialize response");+ return `authenticated; ${values.environment} MCP initialize verified`;+}+function countRows(body: unknown): number {if (Array.isArray(body)) return body.length;const value = obj(body);@@ -98,6 +150,8 @@ export async function doctorAdditionalProvider(id: string, values: Record<stringconst response = await checked("Supabase", "https://api.supabase.com/v1/projects", { authorization: `Bearer ${values.managementToken}`, accept: "application/json" });return `authenticated; ${countRows(response.body)} accessible project(s)`;}+ case "doku":+ return doctorDokuMcp(values);case "convex-cloud": {const deployKey = values.deployKey;const deploymentName = values.deploymentName;diff --git a/lib/infra/additional-providers.ts b/lib/infra/additional-providers.tsindex 6c131204..f782f28c 100644--- a/lib/infra/additional-providers.ts+++ b/lib/infra/additional-providers.ts@@ -81,6 +81,17 @@ export const ADDITIONAL_PROVIDERS = {feature: false,fields: [{ key: "organizationId", label: "Organization ID", secret: false, required: false, description: "Optional connection-specific configuration; retained during JSON transfer." }, { key: "managementToken", label: "Management access token", secret: true, required: true, description: "A Supabase personal access token for the Management API; it is distinct from project API keys." }],},+ doku: {+ id: "doku",+ title: "DOKU MCP",+ description: "Verify a DOKU MCP merchant connection without copying credentials into project MCP config.",+ feature: false,+ fields: [+ { key: "mcpClientId", label: "MCP Client ID", secret: true, required: true, description: "DOKU-issued Client ID for MCP access in the selected environment. Stored only in the owner-only integration store." },+ { key: "mcpApiKey", label: "MCP API Key", secret: true, required: true, description: "DOKU-issued MCP API Key. It is distinct from the REST payment HMAC Secret Key." },+ { key: "environment", label: "Environment", secret: false, required: true, description: "Exactly sandbox or production. MSO derives the official DOKU MCP endpoint from this value." },+ ],+ },} as const satisfies Record<string, AdditionalProvider>;export type AdditionalProviderId = keyof typeof ADDITIONAL_PROVIDERS;@@ -94,4 +105,5 @@ export const ADDITIONAL_GUIDANCE = {stripe: { url: "https://dashboard.stripe.com/apikeys", reference: "https://docs.stripe.com/keys", steps: ["Open Developers → API keys in the intended Stripe account.", "Use a restricted key when its available permissions cover the integration.", "Confirm whether you are using test or live mode before copying the secret key.", "Copy the key once and rotate it promptly if it is exposed."] },clerk: { url: "https://dashboard.clerk.com", reference: "https://clerk.com/docs/guides/development/api-keys", steps: ["Open the intended Clerk instance in the Clerk dashboard.", "Find its secret key in the API Keys or Developers settings.", "Keep the key server-side and limit access to the intended instance.", "Copy it into this form; this check only confirms Backend API authentication."] },supabase: { url: "https://supabase.com/dashboard/account/tokens", reference: "https://supabase.com/docs/reference/api/introduction", steps: ["Open Account → Access Tokens in the Supabase dashboard.", "Generate a personal access token for the account that owns the intended projects.", "Give it a clear name and an appropriate expiry.", "Copy it once into this form; project API keys cannot be used as Management API tokens."] },+ doku: { url: "https://developers.doku.com/accept-payments/doku-mcp-server", reference: "https://developers.doku.com/accept-payments/doku-mcp-server", steps: ["Open DOKU's official MCP Server guide and choose Sandbox first unless this project is explicitly approved for production payments.", "Obtain the DOKU Client ID and MCP API Key for that environment.", "Enter them only in this private setup form; do not paste them into chat, Baton notes, RR, Git, or project MCP JSON.", "MSO calls the fixed official DOKU MCP endpoint with a read-only MCP initialize request before saving the connection."] },} as const satisfies Record<AdditionalProviderId, { url: string; reference: string; steps: readonly string[] }>;diff --git a/lib/infra/catalog.ts b/lib/infra/catalog.tsindex e27e85f6..54647b18 100644--- a/lib/infra/catalog.ts+++ b/lib/infra/catalog.ts@@ -97,6 +97,11 @@ export function normalizeInfraValues(id: InfraProviderId, raw: Record<string, unlet url: URL; try { url = new URL(out.apiUrl); } catch { throw new Error("Invalid deployment URL"); }if (url.username || url.password || url.search || url.hash || (url.protocol !== "https:" && !(url.protocol === "http:" && ["localhost", "127.0.0.1", "[::1]"].includes(url.hostname)))) throw new Error("Invalid deployment URL");}+ if (id === "doku") {+ if (out.environment && !["sandbox", "production"].includes(out.environment)) throw new Error("DOKU environment must be sandbox or production");+ if (out.mcpClientId && (out.mcpClientId.length < 3 || out.mcpClientId.length > 256 || /[\s\x00-\x1f\x7f]/.test(out.mcpClientId))) throw new Error("DOKU MCP Client ID must be an opaque single-line value");+ if (out.mcpApiKey && (out.mcpApiKey.length < 8 || /[\s\x00-\x1f\x7f]/.test(out.mcpApiKey))) throw new Error("DOKU MCP API Key must be an opaque single-line value");+ }if (id === "hostinger") {if (out.apiToken && out.apiToken.length < 24) throw new Error("Hostinger API token is too short");if (out.mailApiToken && out.mailApiToken.length < 24) throw new Error("Hostinger Mail API token is too short");diff --git a/lib/infra/connection-registry.ts b/lib/infra/connection-registry.tsindex 8c7533a4..60ec59ce 100644--- a/lib/infra/connection-registry.ts+++ b/lib/infra/connection-registry.ts@@ -17,7 +17,7 @@ export function providerDefinition(provider:string) {}export function connectionMethods(provider:string, source:ConnectionSource) {const p=providerDefinition(provider);- if(source==="direct") return setupMethods(p.id).map(m=>({id:m.id as string,label:m.label,scope:provider==="convex-cloud"?(m.id==="deployment"?"deployment":"account"):provider==="composio"?m.id:provider==="dokploy"?"server":provider==="hostinger"&&m.id==="mail"?"mail-order":"account",fields:setupFields(p.id,m.id),guidance:setupGuidance(p.id,m.id)}));+ if(source==="direct") return setupMethods(p.id).map(m=>({id:m.id as string,label:m.label,scope:provider==="convex-cloud"?(m.id==="deployment"?"deployment":"account"):provider==="composio"?m.id:provider==="dokploy"?"server":provider==="hostinger"&&m.id==="mail"?"mail-order":provider==="doku"?"merchant":"account",fields:setupFields(p.id,m.id),guidance:setupGuidance(p.id,m.id)}));if(source==="composio" && COMPOSIO[provider]) return COMPOSIO[provider].methods.map(id=>({id,label:id==="oauth2"?"OAuth2":"Hosted API key",scope:"account",fields:[],guidance:{url:"https://platform.composio.dev",reference:`https://docs.composio.dev/toolkits/${COMPOSIO[provider].toolkit}`,steps:["Configure a Composio project key under this same credential user.","Choose a matching authentication configuration for this provider and method.","Open the hosted authorization link. Enter credentials only on the provider/Composio page.","Return and refresh status. MSO stores routing identifiers, not provider OAuth tokens."]}}));if(source==="native-mcp" && NATIVE[provider])return[{id:"provider-oauth",label:"Provider-owned MCP / OAuth",scope:"account",fields:[],guidance:{url:NATIVE[provider].reference,reference:NATIVE[provider].reference,steps:["Connect the provider-owned MCP server in your client.","Complete authorization in that provider's browser flow.","Use this named MSO connection to identify the intended provider route; the authenticated MCP session remains client-owned.","MSO does not copy provider access/refresh tokens or silently fall back to a local key."]}}];throw new IntegrationError("unsupported_connection_source");@@ -35,5 +35,5 @@ export function connectionSummary(user:string,c:IntegrationConnection,isDefault=export const composioDefinition=(provider:string)=>COMPOSIO[provider];export const nativeDefinition=(provider:string)=>NATIVE[provider];export function legacyMethod(provider:string,values:Record<string,string>):SetupMethod {- return provider==="composio"?(values.orgApiKey?"organization":"project"):provider==="convex-cloud"?(values.deployKey?"deployment":"personal"):"direct";+ return provider==="composio"?(values.orgApiKey?"organization":"project"):provider==="convex-cloud"?(values.deployKey?"deployment":"personal"):provider==="doku"?"mcp":"direct";}diff --git a/lib/infra/portable/mapping.ts b/lib/infra/portable/mapping.tsindex e8e4a1c4..6c97be2b 100644--- a/lib/infra/portable/mapping.ts+++ b/lib/infra/portable/mapping.ts@@ -12,8 +12,9 @@ export const FIELD_MAP:Record<string,Record<string,string>>={resend:{RESEND_API_KEY:'apiKey',RESEND_FROM_DOMAIN:'fromDomain'},clerk:{CLERK_SECRET_KEY:'apiKey',NEXT_PUBLIC_CLERK_PUBLISHABLE_KEY:'publishableKey',NEXT_PUBLIC_CLERK_FRONTEND_API_URL:'frontendUrl'},supabase:{SUPABASE_ACCESS_TOKEN:'managementToken',SUPABASE_ORG_ID:'organizationId'},+ doku:{DOKU_MCP_CLIENT_ID:'mcpClientId',DOKU_MCP_API_KEY:'mcpApiKey',DOKU_MCP_ENV:'environment'},};-const DIRECT:Record<string,string>={github:'classic-pat',dokploy:'admin-api-key',cloudflare:'api-token',hostinger:'api-token',convex:'self-hosted-admin',vercel:'account-token',stripe:'secret-key',resend:'api-key',clerk:'instance-keys',supabase:'personal-access-token'};+const DIRECT:Record<string,string>={github:'classic-pat',dokploy:'admin-api-key',cloudflare:'api-token',hostinger:'api-token',convex:'self-hosted-admin',vercel:'account-token',stripe:'secret-key',resend:'api-key',clerk:'instance-keys',supabase:'personal-access-token',doku:'mcp-api-key'};export function wireMethod(provider:string,source:string,method:string){if(source!=='direct')return source==='native-mcp'?'provider-oauth':method;return provider==='composio'?(method==='organization'?'organization-token':'project-api-key'):provider==='convex-cloud'?(method==='deployment'?'deployment-key':'personal-access-token'):provider==='hostinger'?(method==='mail'?'mail-api-token':'api-token'):DIRECT[provider]??method;@@ -23,6 +24,7 @@ export function nativeMethod(provider:string,source:string,method:string){if(source!=='direct')return method;if(provider==='composio')return({'project-api-key':'project','organization-token':'organization'} as Record<string,string>)[method]??method;if(provider==='convex-cloud')return({'deployment-key':'deployment','personal-access-token':'personal'} as Record<string,string>)[method]??method;+ if(provider==='doku')return method==='mcp-api-key'?'mcp':method;if(provider==='hostinger')return({'mail-api-token':'mail','api-token':'direct'} as Record<string,string>)[method]??method;return method===DIRECT[provider]?'direct':method;}diff --git a/lib/infra/setup-guidance.ts b/lib/infra/setup-guidance.tsindex 9152ca41..ea0e1b9d 100644--- a/lib/infra/setup-guidance.ts+++ b/lib/infra/setup-guidance.ts@@ -2,13 +2,18 @@ import { ADDITIONAL_GUIDANCE, type AdditionalProviderId } from "./additional-proimport { getInfraProviderDefinition } from "./catalog";import type { InfraProviderId } from "./types";-export type SetupMethod = "direct" | "project" | "organization" | "personal" | "deployment" | "mail";+export type SetupMethod = "direct" | "project" | "organization" | "personal" | "deployment" | "mail" | "mcp";export function setupFields(provider: InfraProviderId, method: SetupMethod) {if (provider === "hostinger") {if (!["direct", "mail"].includes(method)) throw new Error("Choose Hostinger account or scoped Mail API token");const keys = method === "mail" ? ["mailApiToken", "mailOrderId"] : ["apiToken"];return getInfraProviderDefinition(provider).fields.filter(f => keys.includes(f.key)).map(f => ({ ...f, required: true }));}+ if (provider === "doku") {+ if (method !== "mcp") throw new Error("DOKU currently supports only the verified MCP credential method");+ const keys = ["mcpClientId", "mcpApiKey", "environment"];+ return getInfraProviderDefinition(provider).fields.filter(f => keys.includes(f.key)).map(f => ({ ...f, required: true }));+ }if (provider === "convex-cloud") {if (!["personal", "deployment"].includes(method)) throw new Error("Choose a Convex personal token or deployment key");const keys = method === "personal" ? ["personalToken"] : ["deployKey", "deploymentName"];@@ -22,8 +27,8 @@ export function setupFields(provider: InfraProviderId, method: SetupMethod) {return getInfraProviderDefinition(provider).fields;}export function setupMethod(provider: InfraProviderId, method?: string): SetupMethod {- const value = method ?? (provider === "composio" ? "project" : provider === "convex-cloud" ? "personal" : "direct");- if (!["direct", "project", "organization", "personal", "deployment", "mail"].includes(value)) throw new Error("Unsupported authentication method");+ const value = method ?? (provider === "composio" ? "project" : provider === "convex-cloud" ? "personal" : provider === "doku" ? "mcp" : "direct");+ if (!["direct", "project", "organization", "personal", "deployment", "mail", "mcp"].includes(value)) throw new Error("Unsupported authentication method");setupFields(provider, value as SetupMethod);return value as SetupMethod;}@@ -31,6 +36,7 @@ export function setupMethods(provider: InfraProviderId): Array<{id: SetupMethod;if (provider === "hostinger") return [{ id: "direct", label: "Account API token" }, { id: "mail", label: "Scoped Mail API token" }];if (provider === "composio") return [{ id: "project", label: "Project API key" }, { id: "organization", label: "Organization API key" }];if (provider === "convex-cloud") return [{ id: "personal", label: "Personal access token" }, { id: "deployment", label: "Deployment key" }];+ if (provider === "doku") return [{ id: "mcp", label: "DOKU MCP credential" }];return [{ id: "direct", label: "Direct credential" }];}export function setupGuidance(provider: InfraProviderId, method: SetupMethod) {diff --git a/lib/infra/types.ts b/lib/infra/types.tsindex 61f33b10..676001da 100644--- a/lib/infra/types.ts+++ b/lib/infra/types.ts@@ -1,4 +1,4 @@-export const INFRA_PROVIDER_IDS = ["dokploy", "cloudflare", "hostinger", "composio", "github", "vercel", "convex-cloud", "convex", "resend", "stripe", "clerk", "supabase"] as const;+export const INFRA_PROVIDER_IDS = ["dokploy", "cloudflare", "hostinger", "composio", "github", "vercel", "convex-cloud", "convex", "resend", "stripe", "clerk", "supabase", "doku"] as const;export type InfraProviderId = (typeof INFRA_PROVIDER_IDS)[number];export type InfraProviderValues = Record<string, string>;diff --git a/lib/mcp/tools-integrations.ts b/lib/mcp/tools-integrations.tsindex 3e62dd86..d9bd22d3 100644--- a/lib/mcp/tools-integrations.ts+++ b/lib/mcp/tools-integrations.ts@@ -8,20 +8,20 @@ const OUTPUT={type:"object",properties:{result:{type:"object"}},required:["resulexport const INTEGRATION_TOOLS:McpTool[]=[{name:"integration_query",title:"Inspect Integration Connections",scope:"read",annotations:{readOnlyHint:true,idempotentHint:true,openWorldHint:false},description:"Read native MSO credential users, providers, named connections, source/auth guidance and directory resolution. Never returns keys. User profiles are credential owners, not device roles. Resolve before acting when multiple accounts or deployments exist.",- chatgptDescription:"Inspect named integrations and routing.",+ chatgptDescription:"Inspect integrations.",inputSchema:S({...BASE,view:{type:"string",enum:["snapshot","catalog","users","connections","which","resolve","request"]},source:{type:"string",enum:[...SOURCES]},authMethod:{type:"string",maxLength:64}}),outputSchema:OUTPUT,meta:{ui:{visibility:["model","app"]},"openai/widgetAccessible":true},run:async a=>({result:await queryIntegrationAction(a)}),},{name:"integration_manage",title:"Manage Named Integrations",scope:"write",annotations:{readOnlyHint:false,destructiveHint:true,idempotentHint:false,openWorldHint:true},audit:{action:"infra.write",targetArg:"user"},limit:{key:"integration.manage",max:30,windowMs:60000},description:"Manage native credential users, directory bindings and named provider connections. Actions require confirm=true. Direct credential values are forbidden: use integration_setup_open with user/provider/connection. Composio authorization keeps only external IDs/status and returns its transient URL privately to the UI. Native MCP authorization stays provider-owned.",- chatgptDescription:"Manage named integrations; secrets stay in private setup.",+ chatgptDescription:"Manage integrations privately.",inputSchema:S({...BASE,action:{type:"string",enum:[...INTEGRATION_ACTIONS,"connection.authorize","connection.import-convex-cli"]},confirm:{type:"boolean",const:true},target:{type:"string",maxLength:64},label:{type:"string",maxLength:120},path:{type:"string",maxLength:4096},source:{type:"string",enum:[...SOURCES]},authMethod:{type:"string",maxLength:64},copyCredentials:{type:"boolean",description:"Explicit opt-in when duplicating a user; default copies metadata only."},makeDefault:{type:"boolean"},key:{type:"string",maxLength:64},authConfigId:{type:"string",maxLength:64},brokerConnection:{type:"string",maxLength:64},createManaged:{type:"boolean"}},["action","confirm"]),outputSchema:OUTPUT,meta:{ui:{visibility:["model","app"]},"openai/widgetAccessible":true},run:async a=>{const out=await manageIntegrationAction(a);if("privateUrl" in out){const{privateUrl,...safe}=out;return mcpDirect([{type:"text",text:"Authorization link available in the private integration UI."}],false,{result:safe},{integrationAuthorization:{url:privateUrl}});}return{result:out};},},{name:"integration_execute",title:"Use an Exact Integration Connection",scope:"exec",annotations:{readOnlyHint:false,destructiveHint:true,openWorldHint:true},audit:{action:"infra.write",targetArg:"connection"},limit:{key:"integration.execute",max:30,windowMs:60000},description:"Execute using an explicit user/provider/named connection. Verify or inspect its route; bounded direct operations reject external backends. Composio tool execution requires an ACTIVE matching connected account and a toolkit-prefixed tool. Native-MCP returns the provider route without copying OAuth tokens. Non-verification operations require confirm=true. No credentials in arguments.",- chatgptDescription:"Run one bounded named-integration operation.",+ chatgptDescription:"Run a bounded integration operation.",inputSchema:S({...BASE,operation:{type:"string",enum:["route","verify","dokploy.projects.list","dokploy.applications.list","dokploy.deployments.list","dokploy.deployment.logs","dokploy.git.recover","dokploy.application.publicEnv.upsert","dokploy.project.ensure","convex.customDomains.list","convex.customDomain.ensure","convex.canonical.get","convex.env.presence","convex.canonical.set","cloudflare.zones.list","cloudflare.dns.upsert","hostinger.dns.upsert","hostinger.mail.orders.list","hostinger.mail.plan.get","hostinger.mail.list","hostinger.mail.logs.list","hostinger.mail.mutate","composio.tool"]},confirm:{type:"boolean"},tool:{type:"string",maxLength:180},arguments:{type:"object",additionalProperties:true}},["user","provider","connection","operation"]),outputSchema:OUTPUT,meta:{ui:{visibility:["model","app"]},"openai/widgetAccessible":true},run:async a=>({result:await executeIntegrationAction(a)}),},