feat(mcp-server): Add create_project tool and improve test coverage #449
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Summary
Enhances the MCP Ambient Server with project creation capabilities and significantly improves test coverage.
Changes
API Client (
client.py)create_project()method with proper error handling (ConnectError, TimeoutException)check_health()endpoint to correctly use/health(not under/api)MCP Server (
server.py)create_projectMCP tool for creating projects via MCP interfacename(required),display_name(optional),description(optional)Test Suite (
test_client.py)pytest_asyncioand properAsyncMockusagemock_httpx_response()helper for cleaner test setuptest_create_project_success/test_create_project_conflicttest_check_project_access_success/test_check_project_access_forbiddentest_get_session_success/test_get_session_not_foundtest_get_session_k8s_resources_successtest_list_ootb_workflows_successtest_get_workflow_metadata_success/test_get_workflow_metadata_not_foundtest_get_cluster_info_successtest_list_sessions_emptytest_list_session_workspace_successE2E Tests (
vteam.cy.ts)/api/cluster-info,/api/workflows/ootb)Configuration (
.gitignore).mcp.json- Contains sensitive auth tokens, user-specificLOCAL_SETUP.md- Developer-specific setup documentationQuality Assurance
All checks passing:
Test Coverage
Breaking Changes
None - all changes are additive.
Dependencies
No new dependencies added.
🤖 Generated with Claude Code