mirror of
https://github.com/getpaseo/paseo.git
synced 2026-07-29 12:01:31 +00:00
28 lines
850 B
TypeScript
28 lines
850 B
TypeScript
// Quick script to verify buildCodexMcpConfig includes MCP servers
|
|
|
|
import { buildPaseoDaemonConfigFromEnv } from "../src/server/config.js";
|
|
|
|
const config = buildPaseoDaemonConfigFromEnv();
|
|
|
|
console.log("=== agentControlMcp config ===");
|
|
console.log(JSON.stringify(config.agentControlMcp, null, 2));
|
|
|
|
// Simulate what buildCodexMcpConfig does
|
|
const mcpServers: Record<string, unknown> = {};
|
|
|
|
if (config.agentControlMcp) {
|
|
const agentControlUrl = config.agentControlMcp.url;
|
|
mcpServers["agent-control"] = {
|
|
url: agentControlUrl,
|
|
...(config.agentControlMcp.headers ? { http_headers: config.agentControlMcp.headers } : {}),
|
|
};
|
|
}
|
|
|
|
mcpServers["playwright"] = {
|
|
command: "npx",
|
|
args: ["@playwright/mcp", "--headless", "--isolated"],
|
|
};
|
|
|
|
console.log("\n=== Built MCP servers config ===");
|
|
console.log(JSON.stringify(mcpServers, null, 2));
|