Skip to main content
Glama

Nx MCP Server

Official
by nrwl
check-formatting.js825 B
const { execSync } = require('child_process'); console.log('checking formatting...'); try { execSync('npx nx format:check', { stdio: 'ignore' }); } catch (e) { console.error('nx format:check failed'); process.exit(1); } const changedFiles = execSync('git diff --cached --name-only', { encoding: 'utf-8', }).split('\n'); const ktFiles = changedFiles.filter((file) => file.endsWith('.kt')); if (ktFiles.length > 0) { console.log('Detected .kt files, running ktfmtCheck...'); try { execSync('npx nx run intellij:ktfmtCheck', { stdio: 'ignore', }); } catch (e) { console.error('ktfmtCheck failed'); process.exit(1); } } console.log('nx sync:check'); try { execSync('npx nx sync:check', { stdio: 'ignore' }); } catch (e) { console.error('nx sync:check failed'); process.exit(1); }

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/nrwl/nx-console'

If you have feedback or need assistance with the MCP directory API, please join our Discord server