semvec/pypi-packages huggingface dataset:
mcp-run 0.5.0
A Python client for mcp.run
Requires Python: >=3.10

# mcp-run
[![PyPI](https://img.shields.io/pypi/v/mcp-run)](https://pypi.org/project/mcp-run/)


A Python client for https://www.mcp.run

## Dependencies

- `uv`
- `npm`

## mcp.run Setup

You will need to get an mcp.run session ID by running:

```bash
npx --yes -p @dylibso/mcpx gen-session --write
```

This will generate a new session and write the session ID to a configuration file that can be used
by `mcp-run`.
 
If you need to store the session ID in  an environment variable you can run `gen-session`
without the `--write` flag:

```bash
npx --yes -p @dylibso/mcpx gen-session
```

which should output something like:

```
Login successful!
Session: kabA7w6qH58H7kKOQ5su4v3bX_CeFn4k.Y4l/s/9dQwkjv9r8t/xZFjsn2fkLzf+tkve89P1vKhQ
```

Then set the `MPC_RUN_SESSION_ID` environment variable:

```
$ export MCP_RUN_SESSION_ID=kabA7w6qH58H7kKOQ5su4v3bX_CeFn4k.Y4l/s/9dQwkjv9r8t/xZFjsn2fkLzf+tkve89P1vKhQ
```

## Python Usage

### Installation

Using `uv`:

```bash
uv add mcp-run
```

Or `pip`:

```bash
pip install mcp-run
```

### Example code

```python
from mcp_run import Client  # Import the mcp.run client

client = Client()  # Create the client, this will check the
# default location for the mcp.run config or
# the `MCP_RUN_SESSION_ID` env var can be used
# to specify a valid mcp.run session id

# Call a tool with the given input
results = client.call_tool("eval-js", params={"code": "'Hello, world!'"})

# Iterate over the results
for content in results.content:
    print(content.text)
```

More examples can be found in the [examples/](https://github.com/dylibso/mcp-run-py/tree/main/examples) directory
productmap-cli 0.1.25
The ProductMap CLI tool for validation and execution of map generation process in the ProductMap tool
Requires Python: >=3.12

# ProductMap CLI
This is a command line interface (CLI) for the ProductMap library. The CLI provides a way to interact with the library from the command line.

# Install it
Use the following command to install the library:

```bash
pip install .
```

# Usage

To use the library, you can create a script or run it directly from the command line (for local purposes):

```bash
pm-cli <file-path> <Repository-username> <Repository-email> --action=["generate", "validate"]
```

This setup provides a basic structure for validating and generating a product map. The logic for generating and validating the product map content will be added in the `validate_file` and `generate_map` functions.

# Example

Here is an example of how to use the CLI to generate a product map:

```bash
pm-cli <your-product-map-token> "tests/sample_file/main.cpp" "AxelGithub" "axel.reichwein@koneksys.com" --action="validate"
```
This command will validate the content of the `main.cpp` file and should provide an output like this:

```bash
Validating file tests/sample_file/main.cpp
File 'tests/sample_file/main.cpp' successfully read! Size: 233 bytes.
File 'tests/sample_file/main.cpp' validated successfully!
{"valid":true,"lines_of_code":6,"consumed_lines_of_code":139437,"remaining_lines_of_code":10563}
```