Skip to content

Commit 1f20fbf

Browse files
authored
Merge pull request #59 from arvoreeducacao/joao-barros/mcp-custom-command
feat(core): support custom command in pi MCP entries
2 parents 9fe0928 + 795d091 commit 1f20fbf

2 files changed

Lines changed: 9 additions & 0 deletions

File tree

packages/core/src/prompt-builders.ts

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -273,6 +273,14 @@ export function buildPiMcpEntry(mcp: MCPConfig): Record<string, unknown> {
273273
args.push(mcp.image);
274274
return { command: "docker", args, ...extra };
275275
}
276+
if (mcp.command) {
277+
return {
278+
command: mcp.command,
279+
...(mcp.args && { args: mcp.args }),
280+
...(env && { env }),
281+
...extra,
282+
};
283+
}
276284
return {
277285
command: "npx",
278286
args: ["-y", mcp.package!, ...(mcp.args || [])],

packages/core/src/types.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@ export interface MCPConfig {
3333
description?: string;
3434
instructions?: string;
3535
package?: string;
36+
command?: string;
3637
args?: string[];
3738
url?: string;
3839
image?: string;

0 commit comments

Comments
 (0)