Commit Graph

3 Commits

Author SHA1 Message Date
autofix-ci[bot] c069d7a1f8
[autofix.ci] apply automated fixes 2025-12-11 01:35:31 +00:00
Saber 0219d41a1c
Update api/tests/unit_tests/controllers/mcp/test_mcp.py
Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com>
2025-12-09 17:08:42 -08:00
saber04414 e93d80ba1a test: add comprehensive unit tests for MCP controller
- Add extensive test coverage for MCP (Model Context Protocol) controller
  * Test JSON-RPC request parsing and validation
  * Test server code validation (existence, status)
  * Test request vs notification handling
  * Test user input form extraction and conversion
  * Test error handling for various failure scenarios
  * Test end user management (creation, retrieval)
  * Test app availability validation
  * Test different request types (initialize, tools/list, tools/call, ping)
  * Test notification handling (notifications/initialized)
  * Test invalid request formats and error responses

- All tests include extensive comments explaining:
  * Test purpose and what is being verified
  * Test setup and arrangement
  * Expected behavior and assertions
  * Edge cases and error conditions

Branch: test/mcp-controller
2025-12-09 22:00:26 -03:00