Using whl file
Generate whl file
cd to the root folder of mcp-composer
Change Permission
chmod +x scripts/build.sh
and Run
./scripts/build.sh
Install whl file
- Downlaod the whl from given location
- cd the folder where you installed it
- There are different ways to install the
.whl
file
Using python3
- Install the whl
python3 -m pip install mcp_composer-0.1.0-py3-none-any.whl
Using pipx
install pipx
brew install pipx
install mcp-composer
pipx install mcp_composer-0.1.0-py3-none-any.whl
ensure path
pipx ensurepath
update the .zhs
echo 'export PATH="$HOME/.local/bin:$PATH"' >> ~/.zshrc
and
source ~/.zshrc
Validate and Add to claude desktop
Validate the installation by running the following command
which mcp-composer
The output will look like
/Users/<username>/.local/bin/mcp-composer
update the claude desktop configuration by adding the following json inside the
claude_desktop_config.json
{
"mcpServers": {
"composer":{
"command": "/Users/<username>/.local/bin/mcp-composer",
"args": ["--mode", "stdio"],
"env":{
"SERVER_CONFIG_FILE_PATH": "/<path to the config file>/config.json"
}
}
}
}
The
config.json
is an example of mcp server configuration for the mcp compsoer[{ "id": "mcp-wxO", "type": "openapi", "open_api": { "endpoint": "https://api.dl.watson-orchestrate.ibm.com/instances/<instance_id>/v1/orchestrate/", "spec_filepath": "/<path-to-the-openapi-spec>/wxo-openapi-spec.json", "custom_routes": [ { "methods": [ "GET" ], "pattern": ".*/.*", "mcp_type": "TOOL" }, { "methods": [ "POST", "DELETE", "PUT", "PATCH" ], "pattern": ".*", "mcp_type": "EXCLUDE" } ] }, "auth_strategy": "dynamic_bearer", "auth": { "apikey": "<api key>", "token_url": "https://iam.platform.saas.ibm.com/siusermgr/api/1.0/apikeys/token", "media_type": "json" } }]
Run claude desktop
Run from cli
- run the following command to run in http mode
mcp-composer --mode http --port 9000
- To tun in
stdio
mode
mcp-composer --mode stdio
Uninstall mcp-composer
Using pipx
pipx uninstall mcp-composer
and validate
which mcp-composer