ci
Clean install dependencies from lockfile for CI environments to ensure consistent builds.
Instructions
Clean install dependencies from lockfile (for CI environments)
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | Absolute path to the package directory |
Implementation Reference
- src/index.ts:844-862 (handler)Implementation of the "ci" tool, which runs `npm ci` in a given path.
server.tool( "ci", "Clean install dependencies from lockfile (for CI environments)", { path: z.string().describe("Absolute path to the package directory"), }, async ({ path }) => { const args = ["ci"]; try { const { stdout, stderr } = await run(args, path); return { content: [{ type: "text", text: stdout + stderr }] }; } catch (e: any) { return { content: [{ type: "text", text: `Error: ${e.stderr || e.message}` }], isError: true, }; } }, );