valent-pipeline 0.2.14 → 0.2.15

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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "valent-pipeline",
3
- "version": "0.2.14",
3
+ "version": "0.2.15",
4
4
  "description": "v3 multi-agent AI pipeline for software development lifecycle",
5
5
  "type": "module",
6
6
  "bin": {
@@ -113,33 +113,13 @@ export async function init(options = {}) {
113
113
  ? uiProjectTypes.includes(config.project?.type || 'fullstack-web')
114
114
  : config.install_browser_mcp;
115
115
  if (shouldInstallMcp) {
116
- const mcpName = config.tech_stack?.browser_automation_mcp || 'playwright-mcp';
117
- const mcpPackage = '@playwright/mcp';
118
- console.log(` Installing ${mcpPackage}...`);
116
+ console.log(' Registering playwright MCP server...');
119
117
  const { execSync } = await import('child_process');
120
118
  try {
121
- execSync(`npm install -g ${mcpPackage}`, { stdio: 'pipe' });
122
- console.log(` Installed ${mcpPackage}`);
119
+ execSync('claude mcp add --scope project playwright -- npx -y @playwright/mcp', { cwd: projectRoot, stdio: 'pipe' });
120
+ console.log(' Registered playwright MCP server (project scope)');
123
121
  } catch (err) {
124
- console.warn(` Warning: Failed to install ${mcpPackage}. Run "npm install -g ${mcpPackage}" manually.`);
125
- }
126
- // Register in .mcp.json (project-scope MCP config)
127
- const mcpJsonPath = join(projectRoot, '.mcp.json');
128
- let mcpConfig = {};
129
- if (fileExists(mcpJsonPath)) {
130
- try {
131
- mcpConfig = JSON.parse(readFileSync(mcpJsonPath, 'utf-8'));
132
- } catch { /* start fresh if parse fails */ }
133
- }
134
- if (!mcpConfig.mcpServers) mcpConfig.mcpServers = {};
135
- if (!mcpConfig.mcpServers[mcpName]) {
136
- mcpConfig.mcpServers[mcpName] = {
137
- type: 'stdio',
138
- command: 'npx',
139
- args: ['-y', mcpPackage]
140
- };
141
- writeFileSafe(mcpJsonPath, JSON.stringify(mcpConfig, null, 2) + '\n');
142
- console.log(` Registered ${mcpName} in .mcp.json`);
122
+ console.warn(' Warning: Failed to register playwright MCP. Run "claude mcp add --scope project playwright -- npx -y @playwright/mcp" manually.');
143
123
  }
144
124
  }
145
125