Skip to content

Split server.py into per-domain handler modules #11

Description

@hrco

Found in: pre-shipment review 2026-06-30
Parent: #7
File: xbridge_mcp/server.py (~1961 lines)

Violates project convention of small focused functions. Hard to navigate and maintain. Split into:

  • chat.pyhandle_grok_chat
  • search.pyhandle_grok_web_search, handle_grok_x_search
  • sessions.py — session CRUD handlers
  • chains.py — chain execution handlers
  • images.py — image/video handlers
  • docs.py — docs proxy handlers

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions