Download the PHP package vodmal/composer-scripts-mcp-server without Composer

On this page you can find all versions of the php package vodmal/composer-scripts-mcp-server. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package composer-scripts-mcp-server

VoDmAl Composer Scripts MCP Server

A PHP library that exposes your project's Composer scripts as MCP (Model Context Protocol) tools. Once installed, AI assistants (or any MCP client) can discover and execute your Composer scripts automatically—no need to explain commands each time.

This works with any PHP project, and you can connect multiple projects without limits. Each project's MCP tool name is derived automatically from its composer.json (e.g., the "name" field).

Why Use Composer Scripts?

Composer scripts let you standardize and automate common tasks (tests, linting, code generation, etc.) without adding extra dependencies. Key benefits include:

While this approach has many advantages, there are some limitations:

Despite these minor drawbacks, the convenience of having commands available immediately after composer install without additional external dependencies is a significant advantage. This is where this tool comes in - it allows AI assistants to discover and execute your Composer scripts without you having to explain the commands each time.

Real-World Example

Here's an example of how powerful Composer scripts can be in a real project:

With these scripts, developers can run comprehensive checks before committing or pushing code with simple commands like composer check:before:commit. The MCP server exposes these scripts to AI assistants, allowing them to understand and execute the appropriate commands without requiring you to explain your project's specific testing or validation procedures each time.

One of the biggest advantages of this approach is that you don't need to repeatedly explain to each LLM how to run tests, check code style, or perform other common development tasks. Instead, the LLM can discover the available commands through the MCP server and suggest the appropriate command for the task at hand. This saves time and reduces friction when working with AI assistants on your PHP projects.

Features

By installing VoDmAl Composer Scripts MCP Server, you get two major advantages:

  1. Automatic discovery of all Composer scripts in your project as MCP tools.
  2. One-step integration with AI assistants (e.g., Claude Desktop), so they can list and run any script without manual setup.

Requirements

Simple Installation & Automatic Setup

To get started, run:

As soon as Composer finishes, your project's composer.json will include two new scripts:

You now have everything you need. You do not need to run composer mcp:server:start immediately. Instead, if you want to integrate with Claude Desktop (or any MCP-compatible LLM), run:

If Claude Desktop is installed and its configuration file is detected, this command merges the MCP configuration automatically.

If it doesn't find Claude's config, it prints out a JSON snippet. Paste that snippet into your claude_config.json under "tools" and restart Claude.

Connect to any number of projects You can run composer mcp:server:install in each PHP project folder without limit. Each project's tool name is pulled from its own composer.json "name" field, so multiple projects appear distinctly in Claude's tool list.

If you're not using Claude Running:

will output a JSON block showing exactly how to launch the MCP server. Copy that into whatever LLM or MCP client configuration you need. Once that's configured, your AI assistant can call the composer_list and composer_run MCP methods without further setup.

Advanced Manual Configuration & Startup

With stdio Transport

To start the server with stdio transport (for integration with AI assistants):

With HTTP Transport

To start the server with HTTP transport (for testing with the client):

By default, the server will listen on 127.0.0.1:8088.

Integration with Claude Desktop

To integrate this MCP server with Claude Desktop, you can use the provided mcp-server-install command:

This command will automatically detect your operating system and search for the Claude Desktop configuration file. If found, it will update it to include the MCP server configuration. If not found, it will output the configuration that you need to manually merge with your Claude Desktop configuration file. The server will automatically expose all Composer scripts in your project as MCP tools.

Command Options

Multiple Servers

If you have multiple PHP projects with this library installed, you can add each of them to the same configuration file:

Using the Configuration

  1. Restart Claude Desktop completely
  2. After restarting, you should see a slider icon in the bottom left corner of the input box
  3. Click on the slider icon to see the available tools (your Composer scripts)
  4. You can now ask Claude to run any of your Composer scripts

Troubleshooting

If the server isn't being picked up by Claude Desktop:

  1. Make sure Claude Desktop is on the latest version
  2. Check that the configuration file syntax is correct
  3. Verify that the file paths in the configuration are valid and absolute (not relative)
  4. Look at logs to see why the server is not connecting:
    • macOS: ~/Library/Logs/Claude
    • Windows: %APPDATA%\Claude\logs
  5. Try manually running the server to see if you get any errors:

Note: When using stdio transport with LLM applications, all log messages are written to stderr instead of stdout. This prevents log messages from interfering with the JSON communication between the server and the LLM application, which could cause JSON parsing errors.

Available MCP Tools

The library provides the following MCP tools:

composer_list

Lists all available Composer scripts.

Parameters: None

Returns:

composer_run

Runs a Composer script.

Parameters:

Returns:

License

This project is dual-licensed:

Open Source License

This project is licensed under the GNU General Public License v3.0 (GPL-3.0) for open source use. See the LICENSE-GPL file for details.

Commercial License

For commercial use in proprietary software, a separate commercial license is available. Contact [ваш email] for commercial licensing terms.

License Summary

If you're unsure which license applies to your use case, please contact us.


All versions of composer-scripts-mcp-server with dependencies

PHP Build Version
Package Version
Requires php Version >=8.1
composer-plugin-api Version ^2.0
php-mcp/server Version ^2.1
symfony/console Version ^7.3
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package vodmal/composer-scripts-mcp-server contains the following files

Loading the files please wait ...