Metadata-Version: 2.4
Name: mcp-test-harness-openai
Version: 4.0.1
Summary: OpenAI function calling 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: mcp,mcp-test-harness,openai,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>=4.0.1
Description-Content-Type: text/markdown

# mcp-test-harness-openai

OpenAI function calling 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-openai
```

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

## Usage

```python
from mcp_test_harness_openai import assert_openai_tool, mcp_tools_to_openai_functions, create_openai_test_config

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

def test_schema_bridge(mcp_tools):
    # mcp_tools from list_tools — convert for OpenAI SDKs
    return mcp_tools_to_openai_functions(mcp_tools)

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

## Helpers

- Tool call assertion with optional text check
- MCP tool → OpenAI 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).
