Skip to content

armgit / mso

Public Imported from GitHub
0

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.

fix(infra): expose bounded Dokploy integration operations

Rahman74c2d0c4f9df
diff --git a/docs/CHANGELOG.md b/docs/CHANGELOG.md
index 821b43aa..76b9d760 100644
--- a/docs/CHANGELOG.md
+++ b/docs/CHANGELOG.md
@@ -12,6 +12,7 @@ this is the *what*, and it is what Settings → About shows as “What's new”.
**Fixed**
+- `infra` expose bounded Dokploy integration operations
- `infra` support modern pinned DNS lookups
## 2026-09-05
diff --git a/lib/mcp/integration-model-contract.test.ts b/lib/mcp/integration-model-contract.test.ts
index ae9dae5d..48a48562 100644
--- a/lib/mcp/integration-model-contract.test.ts
+++ b/lib/mcp/integration-model-contract.test.ts
@@ -17,6 +17,15 @@ it("uses the same native metadata services through actual MCP calls and rejects
const metadata=await call(4,"integration_query",{view:"resolve",user:"alice",provider:"convex-cloud",connection:"mimin-production"});expect((metadata.result as any)?.structuredContent?.result).toMatchObject({user:"alice",id:"mimin-production",source:"direct",authMethod:"deployment"});
const inputRejected=await call(5,"integration_manage",{action:"user.create",user:"eve",confirm:true,token:"synthetic"});expect((await readIntegrationState()).users.eve).toBeUndefined();expect(inputRejected.error??(inputRejected.result as any)?.isError).toBeTruthy();
});
+it("exposes the bounded Dokploy application operations through integration_execute without adding a generic request escape hatch",async()=>{
+ const {INTEGRATION_TOOLS}=await import("./tools-integrations");
+ const tool=INTEGRATION_TOOLS.find(entry=>entry.name==="integration_execute")!;
+ const schema=tool.inputSchema as {properties?:Record<string,{enum?:string[]}>};
+ const operations=schema.properties?.operation?.enum??[];
+ expect(operations).toContain("dokploy.applications.list");
+ expect(operations).toContain("dokploy.application.publicEnv.upsert");
+ expect(operations.some(operation=>/request|fetch|raw/i.test(operation))).toBe(false);
+});
it("returns identity-bound setup only in UI-private metadata on both supported MCP profiles",async()=>{
const {integrationManage}=await import("@/lib/infra/connection-manage");await integrationManage({action:"user.create",user:"alice",confirm:true});await integrationManage({action:"connection.create",user:"alice",provider:"github",connection:"work",source:"direct",authMethod:"direct",confirm:true});
const {dispatch}=await import("./dispatch");
diff --git a/lib/mcp/tools-integrations.ts b/lib/mcp/tools-integrations.ts
index e37e876c..40ace7a0 100644
--- a/lib/mcp/tools-integrations.ts
+++ b/lib/mcp/tools-integrations.ts
@@ -19,7 +19,7 @@ export const INTEGRATION_TOOLS:McpTool[]=[
},
{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.",
- inputSchema:S({...BASE,operation:{type:"string",enum:["route","verify","dokploy.projects.list","dokploy.project.ensure","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,
+ inputSchema:S({...BASE,operation:{type:"string",enum:["route","verify","dokploy.projects.list","dokploy.applications.list","dokploy.application.publicEnv.upsert","dokploy.project.ensure","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)}),
},
];