[Sprint 01] feat: Remove old server and create MCP base server structure #23

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

Delete old subprocess-based server and create new MCP HTTP server with marketplace imports and base structure.

Dependencies

Tasks

  • Delete src/gitea_mcp_remote/server.py
  • Create src/gitea_mcp_remote/server_http.py
  • Add imports from marketplace: from mcp_server import ...
  • Implement GiteaMCPServer class:
    • GiteaClient initialization with GiteaConfig
    • ToolFilter integration
    • Tool definitions loading
    • Tool dispatcher creation
  • Add startup/shutdown handlers
  • Create basic route structure
  • Keep health endpoints: /health, /healthz, /ping
  • Verify imports: from gitea_mcp_remote.server_http import GiteaMCPServer

Acceptance Criteria

  • Old server.py deleted
  • New server_http.py exists
  • Imports from marketplace mcp_server package
  • GiteaMCPServer class initialized with GiteaClient
  • Health endpoints functional
  • No subprocess spawning code
  • Can import server module successfully

Implementation Reference

See docs/sprint-proposals/sprint-01-implementation-guide.md - Phase 4, Issue #7-8 (Part 1)

Estimated Time: 2-3 hours

Note: This is part 1 of 2. Issue #24 will implement the MCP protocol endpoints.

Delete old subprocess-based server and create new MCP HTTP server with marketplace imports and base structure. ## Dependencies - Blocked by: #19, #20, #22 ## Tasks - [ ] Delete `src/gitea_mcp_remote/server.py` - [ ] Create `src/gitea_mcp_remote/server_http.py` - [ ] Add imports from marketplace: `from mcp_server import ...` - [ ] Implement GiteaMCPServer class: - GiteaClient initialization with GiteaConfig - ToolFilter integration - Tool definitions loading - Tool dispatcher creation - [ ] Add startup/shutdown handlers - [ ] Create basic route structure - [ ] Keep health endpoints: /health, /healthz, /ping - [ ] Verify imports: `from gitea_mcp_remote.server_http import GiteaMCPServer` ## Acceptance Criteria - Old `server.py` deleted - New `server_http.py` exists - Imports from marketplace `mcp_server` package - GiteaMCPServer class initialized with GiteaClient - Health endpoints functional - No subprocess spawning code - Can import server module successfully ## Implementation Reference See `docs/sprint-proposals/sprint-01-implementation-guide.md` - Phase 4, Issue #7-8 (Part 1) **Estimated Time:** 2-3 hours **Note:** This is part 1 of 2. Issue #24 will implement the MCP protocol endpoints.
lmiranda added this to the Sprint 01: Core Architecture Correction milestone 2026-02-03 22:50:44 +00:00
lmiranda added the Type/FeatureComponent/CoreSize/MPriority/Critical labels 2026-02-03 22:50:44 +00:00
Author
Owner

Completed and merged in commit 53a0006 (Merge feat/23: Remove old server and create MCP base server structure)

Completed and merged in commit 53a0006 (Merge feat/23: Remove old server and create MCP base server structure)
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#23