[Sprint 01] test: Create startup scripts and MCP server tests #26

Closed
opened 2026-02-03 22:51:32 +00:00 by lmiranda · 1 comment
Owner

Create production utility scripts and comprehensive tests for the new MCP HTTP server.

Dependencies

Tasks

  • Create scripts/start.sh (production startup)
  • Create scripts/healthcheck.sh (Docker healthcheck)
  • Make scripts executable
  • Create tests/test_server_http.py:
    • Health endpoint tests
    • MCP HEAD endpoint test (protocol version)
    • MCP POST endpoint tests (initialize, tools/list, tools/call)
    • JSON-RPC error handling tests
    • Tool filtering integration test
  • Run new tests and verify they pass

Acceptance Criteria

  • scripts/start.sh validates environment and starts server
  • scripts/healthcheck.sh checks health endpoint
  • Both scripts are executable
  • tests/test_server_http.py exists with comprehensive coverage
  • All new tests pass: pytest tests/test_server_http.py -v
  • All existing tests still pass: pytest tests/ -v

Implementation Reference

See docs/sprint-proposals/sprint-01-implementation-guide.md - Phase 7-8, Issues #15-16

Estimated Time: 2-3 hours

Create production utility scripts and comprehensive tests for the new MCP HTTP server. ## Dependencies - Blocked by: #24 ## Tasks - [ ] Create `scripts/start.sh` (production startup) - [ ] Create `scripts/healthcheck.sh` (Docker healthcheck) - [ ] Make scripts executable - [ ] Create `tests/test_server_http.py`: - Health endpoint tests - MCP HEAD endpoint test (protocol version) - MCP POST endpoint tests (initialize, tools/list, tools/call) - JSON-RPC error handling tests - Tool filtering integration test - [ ] Run new tests and verify they pass ## Acceptance Criteria - `scripts/start.sh` validates environment and starts server - `scripts/healthcheck.sh` checks health endpoint - Both scripts are executable - `tests/test_server_http.py` exists with comprehensive coverage - All new tests pass: `pytest tests/test_server_http.py -v` - All existing tests still pass: `pytest tests/ -v` ## Implementation Reference See `docs/sprint-proposals/sprint-01-implementation-guide.md` - Phase 7-8, Issues #15-16 **Estimated Time:** 2-3 hours
lmiranda added this to the Sprint 01: Core Architecture Correction milestone 2026-02-03 22:51:32 +00:00
lmiranda added the Component/TestingSize/MPriority/MediumType/Test labels 2026-02-03 22:51:32 +00:00
Author
Owner

Completed: Created scripts/start.sh and scripts/healthcheck.sh. Added health endpoint tests to test_mcp_endpoints.py. Fixed middleware order and test configuration.

Completed: Created scripts/start.sh and scripts/healthcheck.sh. Added health endpoint tests to test_mcp_endpoints.py. Fixed middleware order and test configuration.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: personal-projects/gitea-mcp-remote#26