@soapbox.pub/js-dev-mcp

0.6.2 • Public • Published

JS Dev MCP Server

Developer MCP specifically geared towards managing JavaScript and TypeScript projects.

Usage

Add the command to your MCP client:

npx @soapbox.pub/js-dev-mcp

Development

  • Build: npm run build
  • Test: npm test
  • Type check: npm run check
  • Development: npm run dev

Available Tools

The implementation provides nine powerful tools:

  1. shell: Execute a command in the shell

    • Parameters:
      • command (string): The command to execute
  2. text_editor_view: View the content of a file

    • Parameters:
      • path (string): Absolute path to the file to view
      • start_line (number, optional): Starting line number (1-indexed, inclusive)
      • end_line (number, optional): Ending line number (1-indexed, inclusive)
  3. text_editor_write: Create or overwrite a file with new content

    • Parameters:
      • path (string): Absolute path to the file to write
      • file_text (string): Content to write to the file
  4. text_editor_str_replace: Replace a string in a file with a new string

    • Parameters:
      • path (string): Absolute path to the file
      • old_str (string): The string to replace
      • new_str (string): The new string to insert
  5. npm_run_script: Run one of the available scripts in the project directory

    • Parameters:
      • script (string): Name of the script to run from package.json or deno.json
  6. npm_add_package: Safely add a package to your project using npm. Creates package.json if it doesn't exist.

    • Parameters:
      • name (string): Name of the npm package
      • version (string, optional): Version string (optional)
      • dev (boolean, optional): If true, add to devDependencies (default: false)
  7. npm_remove_package: Safely remove a package from your project using npm.

    • Parameters:
      • name (string): Name of the npm package to remove
      • dev (boolean, optional): If true, remove from devDependencies (default: false)
  8. jsr_add_package: Safely add a JSR package to the project in the current directory. JSR is the JavaScript Registry at https://jsr.io

    • Parameters:
      • name (string): Name of the JSR package
      • version (string, optional): Version (optional)
      • dev (boolean, optional): If true, add to devDependencies (default: false)
  9. jsr_remove_package: Safely remove a JSR package from the project in the current directory.

    • Parameters:
      • name (string): Name of the JSR package to remove

Readme

Keywords

none

Package Sidebar

Install

npm i @soapbox.pub/js-dev-mcp

Weekly Downloads

987

Version

0.6.2

License

none

Unpacked Size

322 kB

Total Files

4

Last publish

Collaborators

  • alexgleason