MCPcopy Create free account
hub / github.com/CopilotKit/CopilotKit / generateEnvExample

Function generateEnvExample

showcase/scripts/create-integration/index.ts:1276–1294  ·  view source on GitHub ↗
(args: CLIArgs)

Source from the content-addressed store, hash-verified

1274}
1275
1276function generateEnvExample(args: CLIArgs): string {
1277 const lines = [
1278 "# API Keys (shared across integrations)",
1279 "OPENAI_API_KEY=sk-...",
1280 "ANTHROPIC_API_KEY=sk-ant-...",
1281 "",
1282 ];
1283
1284 if (args.language !== "typescript") {
1285 lines.push("# Agent backend URL (for the CopilotKit runtime proxy)");
1286 lines.push("AGENT_URL=http://localhost:8000");
1287 lines.push("");
1288 }
1289
1290 lines.push("# Showcase");
1291 lines.push("NEXT_PUBLIC_BASE_URL=http://localhost:3000");
1292
1293 return lines.join("\n") + "\n";
1294}
1295
1296function generateAgentServer(args: CLIArgs): string {
1297 if (args.language === "typescript") {

Callers 1

mainFunction · 0.85

Calls 2

pushMethod · 0.65
joinMethod · 0.65

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…