For the complete documentation index, see llms.txt. This page is also available as Markdown.

Test your integration

You should create comprehensive unit tests in <VendorName>MCP_test.py and include the following:

  • Use @pytest.mark.asyncio for all async tests.

  • Use AsyncMock for mocking async client methods.

  • Test all command branches, including test-module, list-tools, call-tool, and OAuth commands if applicable.

  • Test success cases, error cases, and edge cases.

  • Test call-tool both with and without the arguments parameter.

For a simple example, review: Packs/GitHubMCP/Integrations/GitHubMCP/GitHubMCP_test.py .

For a comprehensive example, review:

Packs/GenericMCP/Integrations/GenericMCP/GenericMCP_test.py

Last updated

Was this helpful?