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.2.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.2-py3-none-any.whl (5.1 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: mcp_client_for_testing-0.1.2.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.2.tar.gz
Algorithm Hash digest
SHA256 86fddc60ae30072bb69e7a4dd12ef86eddd4d9528ea1b3dc69a5747089506971
MD5 5340393581e9f8d10b3786e3b3c91627
BLAKE2b-256 63dd6ea1a71de219f8f6a5041dfcd66535c193a91bd0fb168a9794e20ba5d3f2

See more details on using hashes here.

Provenance

The following attestation bundles were made for mcp_client_for_testing-0.1.2.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.2-py3-none-any.whl.

File metadata

File hashes

Hashes for mcp_client_for_testing-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 e4c688e93a9d7b677ec175557d6c144f536171b701784bc69ca92a4d02c5afae
MD5 e7a941c22edf703e2a5c8edc7865d09d
BLAKE2b-256 79da0826ebe5a61e404e4aee3477869128dbfe88b79786ab6f396baceb872271

See more details on using hashes here.

Provenance

The following attestation bundles were made for mcp_client_for_testing-0.1.2-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