@lazyagent/lazy-agents 0.0.2 → 0.0.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/src/setup.js +5 -5
package/package.json
CHANGED
package/src/setup.js
CHANGED
|
@@ -126,7 +126,7 @@ Think like an attacker. Never assume internal data is safe.`,
|
|
|
126
126
|
// MCP server definitions
|
|
127
127
|
// ──────────────────────────────────────────────
|
|
128
128
|
function buildMcpConfig(githubToken, cwd, serverUrl) {
|
|
129
|
-
const lazyServerUrl = serverUrl || '
|
|
129
|
+
const lazyServerUrl = serverUrl || 'https://let-me-being-lazy-be-production.up.railway.app';
|
|
130
130
|
const token = githubToken || '${GITHUB_TOKEN}';
|
|
131
131
|
|
|
132
132
|
return {
|
|
@@ -189,7 +189,7 @@ async function setup({
|
|
|
189
189
|
const cwd = cwdArg || process.cwd();
|
|
190
190
|
const claudeDir = path.join(cwd, '.claude');
|
|
191
191
|
const agentsDir = path.join(claudeDir, 'agents');
|
|
192
|
-
const mcpFile = path.join(
|
|
192
|
+
const mcpFile = path.join(cwd, '.mcp.json');
|
|
193
193
|
|
|
194
194
|
// Resolve which roles to create
|
|
195
195
|
const allRoles = Object.keys(AGENT_TEMPLATES);
|
|
@@ -242,12 +242,12 @@ async function setup({
|
|
|
242
242
|
// ── Create mcp.json ──
|
|
243
243
|
if (!agentsOnly) {
|
|
244
244
|
if (fs.existsSync(mcpFile) && !force) {
|
|
245
|
-
console.log('[lazy] skip .
|
|
245
|
+
console.log('[lazy] skip .mcp.json (--force to overwrite)');
|
|
246
246
|
skipped++;
|
|
247
247
|
} else {
|
|
248
248
|
const config = buildMcpConfig(resolvedToken, cwd, serverUrl);
|
|
249
249
|
fs.writeFileSync(mcpFile, JSON.stringify(config, null, 2) + '\n', 'utf8');
|
|
250
|
-
console.log('[lazy] wrote .
|
|
250
|
+
console.log('[lazy] wrote .mcp.json');
|
|
251
251
|
created++;
|
|
252
252
|
}
|
|
253
253
|
}
|
|
@@ -260,7 +260,7 @@ async function setup({
|
|
|
260
260
|
}
|
|
261
261
|
|
|
262
262
|
if (!agentsOnly) {
|
|
263
|
-
const resolvedServer = serverUrl || '
|
|
263
|
+
const resolvedServer = serverUrl || 'https://let-me-being-lazy-be-production.up.railway.app';
|
|
264
264
|
const tokenNote = resolvedToken ? '(token saved)' : '(set GITHUB_TOKEN env var or re-run with --github-token)';
|
|
265
265
|
console.log(`\nMCP servers:
|
|
266
266
|
lazy-agents mcp-remote ${resolvedServer}/mcp --header x-github-token ${tokenNote}`);
|