Skip to main content

A minimalistic MCP client for testing MCP Server

Project description

MCP Client for Testing

A minimalistic MCP client for testing MCP Server

Installation

From PyPI using uv

uv pip install mcp-client-for-testing

From Source using uv

  1. Install uv.
  2. Clone the repo git clone git@github.com:piebro/mcp-client-for-testing.git.
  3. Go into the root dir cd mcp-client-for-testing.
  4. Install in development mode: uv pip install -e .

Building with uv

If you want to build distribution packages:

# Build both source and wheel distributions
uv build .

# Install from the built wheel
uv pip install dist/mcp_client_for_testing-0.1.0-py3-none-any.whl

Releasing a New Version

To release a new version of the package to PyPI:

  1. Create and push a new Git tag following semantic versioning:
    git tag v0.2.0
    git push origin v0.2.0
    

The GitHub Actions workflow will automatically build and publish the package to PyPI when a new tag is pushed. The version number will be derived directly from the Git tag.

Usage

As a Python package

import asyncio
import json
from mcp_client_for_testing.client import execute_tool

async def main():
    config = [
        {
            "name": "name of mcp server",
            "command": "uv",
            "args": [
                "--directory", 
                "path/to/root/dir/", 
                "run", 
                "server.py"
            ],
            "env": {}
        }
    ]
    tool_call = {"name": "tool-name", "arguments": {}}
    
    await execute_tool(config, tool_call)

if __name__ == "__main__":
    asyncio.run(main())

As a command-line tool

After installation, you can use the provided command-line tool:

mcp-client \
    --config '
    [
        {
            "name": "name of mcp server",
            "command": "uv",
            "args": [
                "--directory", 
                "path/to/root/dir/", 
                "run", 
                "server.py"
            ],
            "env": {}
        }
    ]
    ' \
    --tool_call '{"name": "tool-name", "arguments": {}}'

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

mcp_client_for_testing-0.1.1.tar.gz (19.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

mcp_client_for_testing-0.1.1-py3-none-any.whl (5.0 kB view details)

Uploaded Python 3

File details

Details for the file mcp_client_for_testing-0.1.1.tar.gz.

File metadata

  • Download URL: mcp_client_for_testing-0.1.1.tar.gz
  • Upload date:
  • Size: 19.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for mcp_client_for_testing-0.1.1.tar.gz
Algorithm Hash digest
SHA256 d8ce2b9fb81ccc88f3ae745011598942c950d4a3379675d9e8856e8ab9dc5efd
MD5 5d3a9a16d07466e22bdb0a3d2d9b86f2
BLAKE2b-256 c2782487d8286b2dea57d25dc0de3e6164662194336c957bfa5b938f377a3f8b

See more details on using hashes here.

Provenance

The following attestation bundles were made for mcp_client_for_testing-0.1.1.tar.gz:

Publisher: publish.yml on piebro/mcp-client-for-testing

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file mcp_client_for_testing-0.1.1-py3-none-any.whl.

File metadata

File hashes

Hashes for mcp_client_for_testing-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 7148d7a5594713738db47d2f96808ad5155540c88a6dc093e404295973e5fa1a
MD5 806452e7680a3fc4f44baf8b5752afad
BLAKE2b-256 fb37360c6c4a595aa59928b8723f34d727d7211b1ead1381a342619093e2dd53

See more details on using hashes here.

Provenance

The following attestation bundles were made for mcp_client_for_testing-0.1.1-py3-none-any.whl:

Publisher: publish.yml on piebro/mcp-client-for-testing

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page