Metadata-Version: 2.4
Name: mcp-test-harness-anthropic
Version: 3.0.10
Summary: Anthropic Claude tool use testing helpers for MCP Test Harness
Project-URL: Homepage, https://github.com/vaquarkhan/mcp-test-harness
Project-URL: Repository, https://github.com/vaquarkhan/mcp-test-harness
Author-email: Vaquar Khan <vaquarkhan@gmail.com>
License: Non-commercial use only with mandatory attribution
Keywords: anthropic,mcp,mcp-test-harness,testing
Classifier: Development Status :: 5 - Production/Stable
Classifier: Intended Audience :: Developers
Classifier: Programming Language :: Python :: 3
Classifier: Topic :: Software Development :: Testing
Requires-Python: >=3.10
Requires-Dist: mcp-test-harness>=3.0.10
Description-Content-Type: text/markdown

# mcp-test-harness-anthropic

Anthropic Claude tool use testing helpers for [MCP Test Harness](https://github.com/vaquarkhan/mcp-test-harness).

Author: Vaquar Khan -- https://github.com/vaquarkhan

## Install

```bash
pip install mcp-test-harness-anthropic
```

This automatically installs `mcp-test-harness` as a dependency.

## Usage

```python
from mcp_test_harness_anthropic import assert_anthropic_tool, mcp_tools_to_anthropic_tools, create_anthropic_test_config

async def test_tool(mcp_server):
    await assert_anthropic_tool(mcp_server, "my_tool", {}, expected_text="ok")

def test_schema_bridge(mcp_tools):
    # mcp_tools from list_tools — convert for Anthropic SDKs
    return mcp_tools_to_anthropic_tools(mcp_tools)

cfg = create_anthropic_test_config("python server.py", timeout=45)
```

## Helpers

- Tool call assertion with optional text check
- MCP tool → Anthropic schema converter
- `mcp-test.yaml`-shaped config builder

## License

Non-commercial use only with mandatory attribution. See [LICENSE](https://github.com/vaquarkhan/mcp-test-harness/blob/main/LICENSE).
