Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -39,5 +39,10 @@ yarn-error.log*
.env*


# next.js
/.next/
/out/
next-env.d.ts

# typescript
*.tsbuildinfo
24 changes: 24 additions & 0 deletions bin/start.js
Original file line number Diff line number Diff line change
Expand Up @@ -334,6 +334,8 @@ async function main() {
const envVars = {};
let parsingFlags = true;
let ollamaModel = null;
let mcpServerCommand = null;
let mcpServerArgs = [];

for (let i = 0; i < args.length; i++) {
const arg = args[i];
Expand Down Expand Up @@ -366,7 +368,29 @@ async function main() {
} else {
envVars[envVar] = "";
}
continue;
}

// If we encounter a non-flag argument, treat it as MCP server command
if (parsingFlags && !arg.startsWith("-")) {
mcpServerCommand = arg;
// Collect all remaining arguments as server arguments
mcpServerArgs = args.slice(i + 1);
break;
}
}

// Handle MCP server configuration if provided
if (mcpServerCommand) {
logStep("MCP Server", `Configuring auto-connection to: ${mcpServerCommand} ${mcpServerArgs.join(' ')}`);

// Pass MCP server config via environment variables
envVars.MCP_SERVER_COMMAND = mcpServerCommand;
if (mcpServerArgs.length > 0) {
envVars.MCP_SERVER_ARGS = JSON.stringify(mcpServerArgs);
}

logSuccess(`MCP server will auto-connect on startup`);
}

// Handle Ollama setup if requested
Expand Down
Loading