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
- Install uv.
- Clone the repo
git clone git@github.com:piebro/mcp-client-for-testing.git. - Go into the root dir
cd mcp-client-for-testing. - 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:
- 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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d8ce2b9fb81ccc88f3ae745011598942c950d4a3379675d9e8856e8ab9dc5efd
|
|
| MD5 |
5d3a9a16d07466e22bdb0a3d2d9b86f2
|
|
| BLAKE2b-256 |
c2782487d8286b2dea57d25dc0de3e6164662194336c957bfa5b938f377a3f8b
|
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
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
mcp_client_for_testing-0.1.1.tar.gz -
Subject digest:
d8ce2b9fb81ccc88f3ae745011598942c950d4a3379675d9e8856e8ab9dc5efd - Sigstore transparency entry: 195592302
- Sigstore integration time:
-
Permalink:
piebro/mcp-client-for-testing@4ed719d1c3a0a9305f628495e91674a142d87bec -
Branch / Tag:
refs/tags/v0.1.1 - Owner: https://github.com/piebro
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@4ed719d1c3a0a9305f628495e91674a142d87bec -
Trigger Event:
push
-
Statement type:
File details
Details for the file mcp_client_for_testing-0.1.1-py3-none-any.whl.
File metadata
- Download URL: mcp_client_for_testing-0.1.1-py3-none-any.whl
- Upload date:
- Size: 5.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
7148d7a5594713738db47d2f96808ad5155540c88a6dc093e404295973e5fa1a
|
|
| MD5 |
806452e7680a3fc4f44baf8b5752afad
|
|
| BLAKE2b-256 |
fb37360c6c4a595aa59928b8723f34d727d7211b1ead1381a342619093e2dd53
|
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
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
mcp_client_for_testing-0.1.1-py3-none-any.whl -
Subject digest:
7148d7a5594713738db47d2f96808ad5155540c88a6dc093e404295973e5fa1a - Sigstore transparency entry: 195592306
- Sigstore integration time:
-
Permalink:
piebro/mcp-client-for-testing@4ed719d1c3a0a9305f628495e91674a142d87bec -
Branch / Tag:
refs/tags/v0.1.1 - Owner: https://github.com/piebro
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@4ed719d1c3a0a9305f628495e91674a142d87bec -
Trigger Event:
push
-
Statement type: