Skip to main content
Glama

Photon (v0-beta) — by Nanoware AI

Local-first Python & TypeScript compiler patch engine (~48.6 MB INT4 ONNX) with a <4 ms Symbol-Dependency AST Slicer and MCP server.

1. Setup

pip install --pre nanoware-photon

Related MCP server: ast-editor

2. Quick Demo

photon fix app.py --line 2 --err "NameError: name 'requests' is not defined" --apply

3. MCP Setup (Cursor, Claude Code, Windsurf, Cline)

Add to .cursor/mcp.json, .mcp.json, or claude_desktop_config.json:

{
  "mcpServers": {
    "photon": {
      "command": "photon",
      "args": ["mcp"]
    }
  }
}

4. Verified Benchmarks (v0-beta)

  • Binary Size: 48.62 MB INT4 ONNX

  • AST Slicer: 3,444 -> 23 tokens in 3.77 ms (x86_64 CPU)

  • KV-Cached CPU Decode (<=281 tokens): 60.0 - 79.0 tok/s (2.50 - 3.59/4 hit rate)

  • GPU Decode (T4 FP16): 727.4 tok/s (3.60/4 hit rate)

Run python bench.py to reproduce locally.

5. Private Patch Intelligence (B2B)

  • Pilot Deployment (INR 9,999 one-time): Custom adaptation on 1 approved internal repo/SDK + benchmark report + local deployment.

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      A
      quality
      B
      maintenance
      A robust, language-agnostic Model Context Protocol (MCP) server that provides AI coding agents with the ability to edit files surgically via Abstract Syntax Trees (AST) instead of relying on token-heavy, brittle search-and-replace or diff operations.
      28
      11
      MIT
    • A
      license
      A
      quality
      B
      maintenance
      AST-targeted code editing MCP server with 28 surgical tools for structural edits across 11 languages. Built on tree-sitter, replaces brittle search/replace with byte-correct edits keyed by symbol names.
      28
      MIT
    • A
      license
      Not graded
      quality
      B
      maintenance
      Local-first code intelligence and safety layer for AI coding agents. MCP server exposes dependency graph, impact analysis, and AST-compressed repo context, backed by typed local memory, patch-scope safety gates, and git-independent transaction rollback.
      1
      MIT