npm-run-mcp-server 0.2.1 → 0.2.3

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.
Files changed (2) hide show
  1. package/dist/index.js +5 -2
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -162,9 +162,12 @@ async function main() {
162
162
  const toolName = scriptName.toLowerCase().replace(/[^a-z0-9_-]/g, '_');
163
163
  // Create a more descriptive description
164
164
  const scriptCommand = scripts[scriptName];
165
- const description = `Run npm script '${scriptName}': ${scriptCommand}`;
165
+ const description = `Run script ${scriptName}`;
166
+ if (verbose) {
167
+ console.error(`[mcp] registering tool: ${toolName} with description: ${description}`);
168
+ }
166
169
  server.tool(toolName, {
167
- description,
170
+ description: description,
168
171
  inputSchema: {
169
172
  type: 'object',
170
173
  properties: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "npm-run-mcp-server",
3
- "version": "0.2.1",
3
+ "version": "0.2.3",
4
4
  "description": "An MCP server that exposes package.json scripts as tools for agents.",
5
5
  "bin": {
6
6
  "npm-run-mcp-server": "dist/index.js"