Added details for setting up a development environment and running an MCP server locally #113
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description of MCP Server Setup Script Lines
These lines outline the initial steps required to set up a local development environment for an MCP Server script, using
uv
as the package installer, which is recommended by the MCP ecosystem. This setup is crucial before you can begin developing or modifying your MCP server code.curl -LsSf https://astral.sh/uv/install.sh | sh
Description: This command downloads and executes the installation script for
uv
, a fast Python package installer and dependency resolver.uv
is recommended for its performance and efficiency within the MCP ecosystem, making it a preferred tool for managing project dependencies.Description: After
uv
is installed, this command sources a script that addsuv
's executable directory (typically$HOME/.local/bin
) to your system'sPATH
environment variable. This allows you to runuv
commands directly from any directory in your terminal without specifying the full path to the executable.Description: This command verifies that
uv
has been successfully installed and is accessible in yourPATH
. It prints the installed version ofuv
, confirming that you can proceed with using it for package management.Description: This line creates a new Python virtual environment named
myenv
. Virtual environments are isolated Python environments that allow you to manage project-specific dependencies without interfering with your system's global Python packages. The&& source myenv/bin/activate
part then activates this newly created virtual environment, meaning any subsequent Python commands or package installations will apply only withinmyenv
.Description: Inside the activated virtual environment, this command uses
uv
to install the coremcp
library. This is the fundamental package required to run and develop applications within the Multi-Cloud Platform (MCP) framework.uv pip install "mcp[cli]"
Description: This command installs the
mcp
library along with its command-line interface (CLI) dependencies. The[cli]
extra ensures that all necessary components for interacting with MCP via the command line are available, providing utilities for development, deployment, and management.Description: Finally, this command runs your MCP server script (named
server.py
in this example) in development mode. Themcp dev
command typically provides features like auto-reloading on code changes, detailed logging, and other developer-friendly functionalities, making it easier to test and debug your MCP server locally before deployment.