[Sprint 01] feat: Implement MCP server core and authentication #2

Closed
opened 2026-02-03 19:40:23 +00:00 by lmiranda · 2 comments
Owner

Set up the core MCP server infrastructure with Gitea API authentication.

Acceptance Criteria:

  • Create server.py with MCP server initialization
  • Implement auth.py for API token management
  • Load GITEA_API_URL and GITEA_API_TOKEN from environment
  • Create base HTTP client with authentication headers
  • Implement error handling for API connection failures
  • Server starts successfully and reports available tools

Technical Notes:

  • Use MCP StdioServerTransport
  • Validate environment variables on startup
  • Create reusable authenticated httpx client
  • Implement proper logging for debugging

Blocked By: #1

Set up the core MCP server infrastructure with Gitea API authentication. **Acceptance Criteria:** - [ ] Create server.py with MCP server initialization - [ ] Implement auth.py for API token management - [ ] Load GITEA_API_URL and GITEA_API_TOKEN from environment - [ ] Create base HTTP client with authentication headers - [ ] Implement error handling for API connection failures - [ ] Server starts successfully and reports available tools **Technical Notes:** - Use MCP StdioServerTransport - Validate environment variables on startup - Create reusable authenticated httpx client - Implement proper logging for debugging **Blocked By:** #1
Author
Owner

⚠️ Blocked By: #1

⚠️ **Blocked By:** #1
Author
Owner

✓ Implementation complete on branch feat/2-mcp-core

Completed:

  • Created server.py with MCP server initialization using StdioServerTransport
  • Implemented auth.py for API token management and environment variable loading
  • Configured GITEA_API_URL and GITEA_API_TOKEN loading from environment
  • Created base authenticated httpx AsyncClient with proper headers
  • Implemented error handling for API connection failures and missing credentials
  • Server starts successfully and reports tool registry
  • Added logging infrastructure for debugging

Files Created/Modified:

  • src/gitea_mcp/server.py - MCP server core
  • src/gitea_mcp/auth.py - Authentication and HTTP client
  • src/gitea_mcp/init.py - Package initialization

Testing:

  • Server initialization verified
  • Environment variable validation working
  • HTTP client authentication headers configured

All acceptance criteria met. Foundation ready for tool implementations.

✓ Implementation complete on branch `feat/2-mcp-core` ## Completed: - Created server.py with MCP server initialization using StdioServerTransport - Implemented auth.py for API token management and environment variable loading - Configured GITEA_API_URL and GITEA_API_TOKEN loading from environment - Created base authenticated httpx AsyncClient with proper headers - Implemented error handling for API connection failures and missing credentials - Server starts successfully and reports tool registry - Added logging infrastructure for debugging ## Files Created/Modified: - src/gitea_mcp/server.py - MCP server core - src/gitea_mcp/auth.py - Authentication and HTTP client - src/gitea_mcp/__init__.py - Package initialization ## Testing: - Server initialization verified - Environment variable validation working - HTTP client authentication headers configured All acceptance criteria met. Foundation ready for tool implementations.
Sign in to join this conversation.
No Label
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

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