Metadata-Version: 2.4
Name: sap-search-mcp
Version: 1.1.0
Summary: MCP server for searching SAP test cases using Azure AI Search
Author-email: SAP Search MCP Contributors <support@example.com>
License: MIT
Project-URL: Homepage, https://github.com/yourusername/sap-search-mcp
Project-URL: Repository, https://github.com/yourusername/sap-search-mcp
Keywords: mcp,sap,azure,search,test-cases
Classifier: Development Status :: 4 - Beta
Classifier: Intended Audience :: Developers
Classifier: License :: OSI Approved :: MIT License
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.8
Classifier: Programming Language :: Python :: 3.9
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Requires-Python: >=3.8
Description-Content-Type: text/markdown
License-File: LICENSE
Requires-Dist: mcp>=0.5.0
Requires-Dist: azure-search-documents>=11.4.0
Requires-Dist: azure-core>=1.29.0
Requires-Dist: openai>=1.0.0
Requires-Dist: python-dotenv>=1.0.0
Requires-Dist: tenacity>=8.2.0
Requires-Dist: python-docx>=1.0.0
Provides-Extra: dev
Requires-Dist: pytest>=7.0.0; extra == "dev"
Requires-Dist: black>=23.0.0; extra == "dev"
Requires-Dist: mypy>=1.0.0; extra == "dev"
Dynamic: license-file

# SAP Search MCP Server

MCP server that provides semantic search over SAP test cases using Azure AI Search.

## Quick Start

### 1. Install
```bash
pip install sap-search-mcp
```

### 2. Set Environment Variables

Create a `.env` file:
```bash
AZURE_SEARCH_ENDPOINT=https://your-service.search.windows.net
AZURE_SEARCH_KEY=your_key
AZURE_SEARCH_OPENAI_ENDPOINT=https://your-openai.cognitiveservices.azure.com/
AZURE_SEARCH_OPENAI_KEY=your_key
```

### 3. Test
```bash
python test.py
```

### 4. Use with Claude Desktop

Edit `%APPDATA%\Claude\claude_desktop_config.json`:
```json
{
  "mcpServers": {
    "sap-search": {
      "command": "sap-search-mcp",
      "env": {
        "AZURE_SEARCH_ENDPOINT": "https://your-service.search.windows.net",
        "AZURE_SEARCH_KEY": "your_key",
        "AZURE_SEARCH_OPENAI_ENDPOINT": "https://your-openai.cognitiveservices.azure.com/",
        "AZURE_SEARCH_OPENAI_KEY": "your_key"
      }
    }
  }
}
```

Restart Claude Desktop.

## Tools

### search_sap_test_cases
Find single best-matching test case.
```json
{"prompt": "Create sales order"}
```

### search_sap_test_cases_with_options
Get multiple results (1-10).
```json
{"prompt": "Show me 5 invoice test cases"}
```

### select_test_case_option
Select from previous results.
```json
{"option_number": 2, "original_prompt": "Show me 5 invoice test cases"}
```

## Development

```bash
git clone <repo>
cd sap_search_mcp
pip install -e .
python test.py
```

## License

MIT
