Skip to main content

Tree Sitter -- Technical Specification

Version: v1.1.9 | Status: Active | Last Updated: March 2026

Functional Requirements​

FR-1: Core Functionality​

  • The module shall provide tree sitter capabilities as described in the module docstring.
  • The module shall export 6 public symbols via __all__.

FR-2: MCP Integration​

  • The module shall expose 3 MCP tools for agent consumption.

Interface Contracts​

MCP Tool Signatures​

  • parse_code()
  • list_languages()
  • extract_symbols()

Non-Functional Requirements​

NFR-1: Zero-Mock Testing​

  • All tests follow the Zero-Mock policy -- no unittest.mock, MagicMock, or monkeypatch.

NFR-2: Explicit Failure​

  • All failures shall raise exceptions; no silent fallbacks or placeholder returns.