create-byan-agent 2.12.0 → 2.12.1
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/_byan/mcp/byan-mcp-server/LICENSE +21 -0
- package/_byan/mcp/byan-mcp-server/README.md +56 -0
- package/_byan/mcp/byan-mcp-server/lib/cli.js +108 -0
- package/_byan/mcp/byan-mcp-server/lib/copilot.js +148 -0
- package/_byan/mcp/byan-mcp-server/lib/dispatch.js +23 -0
- package/_byan/mcp/byan-mcp-server/lib/fd-state.js +163 -0
- package/_byan/mcp/byan-mcp-server/lib/kanban.js +226 -0
- package/_byan/mcp/byan-mcp-server/lib/peer-review.js +187 -0
- package/_byan/mcp/byan-mcp-server/lib/soul.js +64 -0
- package/_byan/mcp/byan-mcp-server/lib/workflow-scripts.js +156 -0
- package/_byan/mcp/byan-mcp-server/package.json +43 -0
- package/_byan/mcp/byan-mcp-server/server.js +1047 -0
- package/install/bin/create-byan-agent-v2.js +30 -3
- package/package.json +7 -1
|
@@ -1525,6 +1525,33 @@ async function install() {
|
|
|
1525
1525
|
if (apiConfigured) {
|
|
1526
1526
|
const apiSpinner = ora('Configuring BYAN API integration...').start();
|
|
1527
1527
|
try {
|
|
1528
|
+
// Copy embedded MCP server from the create-byan-agent package to the project
|
|
1529
|
+
const mcpSrcDir = path.join(__dirname, '..', '..', '_byan', 'mcp', 'byan-mcp-server');
|
|
1530
|
+
const mcpDstDir = path.join(projectRoot, '_byan', 'mcp', 'byan-mcp-server');
|
|
1531
|
+
|
|
1532
|
+
if (await fs.pathExists(mcpSrcDir)) {
|
|
1533
|
+
await fs.ensureDir(path.dirname(mcpDstDir));
|
|
1534
|
+
await fs.copy(mcpSrcDir, mcpDstDir, {
|
|
1535
|
+
filter: (src) => !src.includes('node_modules') && !src.endsWith('package-lock.json') && !src.includes('/test/'),
|
|
1536
|
+
overwrite: true
|
|
1537
|
+
});
|
|
1538
|
+
}
|
|
1539
|
+
|
|
1540
|
+
// Install MCP server dependencies (so `node server.js` runs)
|
|
1541
|
+
const mcpServerJs = path.join(mcpDstDir, 'server.js');
|
|
1542
|
+
if (await fs.pathExists(mcpServerJs)) {
|
|
1543
|
+
const { execSync } = require('child_process');
|
|
1544
|
+
try {
|
|
1545
|
+
execSync('npm install --silent --omit=dev --no-audit --no-fund', {
|
|
1546
|
+
cwd: mcpDstDir,
|
|
1547
|
+
stdio: 'pipe'
|
|
1548
|
+
});
|
|
1549
|
+
} catch (npmErr) {
|
|
1550
|
+
apiSpinner.warn(`MCP npm install failed: ${npmErr.message.split('\n')[0]}`);
|
|
1551
|
+
}
|
|
1552
|
+
}
|
|
1553
|
+
|
|
1554
|
+
// Write / merge .mcp.json
|
|
1528
1555
|
const mcpConfigPath = path.join(projectRoot, '.mcp.json');
|
|
1529
1556
|
let mcpConfig = { mcpServers: {} };
|
|
1530
1557
|
if (await fs.pathExists(mcpConfigPath)) {
|
|
@@ -1533,8 +1560,8 @@ async function install() {
|
|
|
1533
1560
|
}
|
|
1534
1561
|
|
|
1535
1562
|
mcpConfig.mcpServers.byan = {
|
|
1536
|
-
command: '
|
|
1537
|
-
args: [
|
|
1563
|
+
command: 'node',
|
|
1564
|
+
args: [mcpServerJs],
|
|
1538
1565
|
env: {
|
|
1539
1566
|
BYAN_API_URL: apiUrlFinal,
|
|
1540
1567
|
...(apiToken ? { BYAN_API_TOKEN: apiToken } : {})
|
|
@@ -1543,7 +1570,7 @@ async function install() {
|
|
|
1543
1570
|
|
|
1544
1571
|
await fs.writeJson(mcpConfigPath, mcpConfig, { spaces: 2 });
|
|
1545
1572
|
apiSpinner.succeed(`BYAN API configured → .mcp.json (${apiUrlFinal})`);
|
|
1546
|
-
console.log(chalk.gray(
|
|
1573
|
+
console.log(chalk.gray(` MCP server installed at ${path.relative(projectRoot, mcpServerJs)}`));
|
|
1547
1574
|
if (!apiToken) {
|
|
1548
1575
|
console.log(chalk.yellow(' Note: no token set — authenticated tools (list_projects, kanban, FD, etc.) will fail.'));
|
|
1549
1576
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "create-byan-agent",
|
|
3
|
-
"version": "2.12.
|
|
3
|
+
"version": "2.12.1",
|
|
4
4
|
"description": "BYAN v2.6.1 - Intelligent AI agent creator with ELO trust system + scientific fact-check + Hermes universal dispatcher. Multi-platform (Copilot CLI, Claude Code, Codex). Merise Agile + TDD + 64 Mantras. ~54% LLM cost savings.",
|
|
5
5
|
"main": "src/index.js",
|
|
6
6
|
"bin": {
|
|
@@ -45,6 +45,11 @@
|
|
|
45
45
|
"files": [
|
|
46
46
|
"src/",
|
|
47
47
|
"install/",
|
|
48
|
+
"_byan/mcp/byan-mcp-server/server.js",
|
|
49
|
+
"_byan/mcp/byan-mcp-server/lib/",
|
|
50
|
+
"_byan/mcp/byan-mcp-server/package.json",
|
|
51
|
+
"_byan/mcp/byan-mcp-server/README.md",
|
|
52
|
+
"_byan/mcp/byan-mcp-server/LICENSE",
|
|
48
53
|
"README.md",
|
|
49
54
|
"CHANGELOG.md",
|
|
50
55
|
"CHANGELOG-v2.1.0.md",
|
|
@@ -56,6 +61,7 @@
|
|
|
56
61
|
"LICENSE"
|
|
57
62
|
],
|
|
58
63
|
"dependencies": {
|
|
64
|
+
"@modelcontextprotocol/sdk": "^1.29.0",
|
|
59
65
|
"chalk": "^4.1.2",
|
|
60
66
|
"commander": "^11.1.0",
|
|
61
67
|
"fs-extra": "^11.2.0",
|