Skip to content

Integrate Serena MCP Server for Symbol-Level Code Navigation #1359

@rysweet

Description

@rysweet

Objective

Integrate Serena coding agent toolkit as an optional MCP (Model Context Protocol) server in amplihack.

Context

Serena (https://github.com/oraios/serena) provides:

  • Symbol-level code navigation via LSP
  • Supports 30+ programming languages
  • Tools: find_symbol, find_referencing_symbols, insert_after_symbol
  • MCP server compatible with Claude Code
  • Install: uvx --from git+https://github.com/oraios/serena

Requirements

Prerequisites:

  • Detect uv package manager
  • Validate Serena installation
  • Platform-specific guidance

Installation:

  • NEVER auto-install (security)
  • Clear installation commands
  • Success/failure detection

Configuration:

  • Platform-specific MCP config location
  • Preserve existing MCP servers
  • JSON validation

Integration:

  • Serena tools via MCP
  • Graceful degradation
  • Usage logging

Implementation Phases

  1. Detection & Prerequisites (4h)
  2. Installation Workflow (6h)
  3. Configuration Management (6h)
  4. Runtime Integration (4h)
  5. Testing & Documentation (8h)

Acceptance Criteria

  • Detects uv availability
  • MCP config works cross-platform
  • Agents discover Serena tools
  • Graceful when unavailable
  • Clear error diagnostics
  • 60+ tests (60/30/10 pyramid)

Technical

Module: src/amplihack/integrations/serena.py
Tests: Platform coverage (Linux/macOS/Windows/WSL)
Docs: Integration guide with examples

Complexity: Medium (1-3 days)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions