mirror of
https://github.com/getpaseo/paseo.git
synced 2026-07-29 12:01:31 +00:00
- Add pino with pino-pretty for structured logging
- Create root logger in index.ts with child loggers per module
- Support log level via PASEO_LOG env var and config.json
- Support log format (pretty/json) via PASEO_LOG_FORMAT and config.json
- Replace all console.* in runtime code with appropriate log levels
- Scripts use process.stdout/stderr for output
- Error logging uses correct pattern: logger.error({ err }, msg)
28 lines
904 B
TypeScript
28 lines
904 B
TypeScript
// Quick script to verify buildCodexMcpConfig includes MCP servers
|
|
|
|
import { buildPaseoDaemonConfigFromEnv } from "../src/server/config.js";
|
|
|
|
const config = buildPaseoDaemonConfigFromEnv();
|
|
|
|
process.stdout.write("=== agentControlMcp config ===\n");
|
|
process.stdout.write(JSON.stringify(config.agentControlMcp, null, 2) + "\n");
|
|
|
|
// 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"],
|
|
};
|
|
|
|
process.stdout.write("\n=== Built MCP servers config ===\n");
|
|
process.stdout.write(JSON.stringify(mcpServers, null, 2) + "\n");
|