LIGHT MCP Server

LIGHT MCP Server

MCP server for the LIGHT photonic programming language. Enables executing light programs, evaluating expressions, applying parameterized templates, chaining pipes, and accessing opcode/runtime info.

Category
Visit Server

README

LIGHT

The photonic programming language. 38 emoji opcodes. 888 registers. 7 rings. 5 buses.

๐Ÿ”ต
๐Ÿ”ป 4.0 "hello"
๐Ÿ”ป 4.1 42
๐ŸŒŠ 4.2 4.1 4.1
๐Ÿ’ก๐Ÿงต {msg:4.0,answer:4.2}
๐Ÿ‘

Install

npm install -g light-lang

CLI

light run program.light        # run a file
light eval "๐Ÿ”ป 4.0 42 ๐Ÿ‘"      # eval inline
light template add a=10 b=32   # run template with params
light pipe add:a=5:b=3 phi     # chain templates
light mcp sys                   # MCP tool call
light ops                       # opcode table
light repl                      # interactive REPL

Templates

Parameterized programs โ€” {{key}} replaced at call time:

light template invoice qty=10 rate=149 tax_pct=0.23
light template binding hr=97 hrv=10.5 stress=0.79
light template gate hr=106 stress=0.88

Available: hello, add, branch, loop, phi, binding, invoice, gate, pipe

MCP API

const {createMCP} = require('light-lang/src/mcp')
const mcp = createMCP()

mcp.handle('run', {src: '๐Ÿ”ป 4.0 42\n๐Ÿ’ก๐Ÿงต 4.0\n๐Ÿ‘'})
mcp.handle('template', {name: 'add', params: {a: 10, b: 32}})
mcp.handle('pipe', {chain: [{template: 'add', params: {a: 5, b: 3}}, {template: 'phi', params: {}}]})
mcp.handle('eval', {expr: '๐ŸŒ€ 5.0 | ๐Ÿ’ก๐Ÿงต 5.0 | ๐Ÿ‘'})
mcp.handle('ops', {})
mcp.handle('sys', {})

Opcodes

Emoji PRASM Prime LIGHT physics
โšซ NOP 2 dark
๐Ÿ”ป LD 3 absorb
๐Ÿ”บ ST 5 emit
๐ŸŒŠ ADD 7 interfere
๐Ÿ” MUL 11 lens
๐Ÿ”ฎ ATT 13 filter
๐ŸŒˆ VAL 17 spectrum
๐Ÿ’  PLN 19 cavity
๐Ÿชข MDL 23 entangle
๐Ÿ‘ OBS 29 reflect
โšก JMP 31 redirect
โš–๏ธ CMP 37 compare ฮป
๐ŸŽต JEQ 41 resonate
๐Ÿ’ฅ JNE 43 scatter
๐Ÿ“ˆ JGT 47 amplify
๐Ÿšจ INT 53 alarm
๐Ÿ”ฝ REC 59 nest
๐Ÿ”ผ UNR 61 unnest
๐Ÿ’ก EMT 67 radiate
๐ŸŽ› RSN 71 tune
๐ŸŒ‘ SLP 73 dim
โœจ DRM 79 fluoresce
โ˜€๏ธ WAK 83 excite
๐Ÿงฏ ABT 89 quench
๐ŸงŠ FRZ 97 freeze
๐Ÿซง CLR 101 bleach
โ˜ ๏ธ DIE 103 annihilate
๐Ÿ”ฑ GEO 107 diffract
๐ŸŒ€ PHI 109 cohere
โ™พ๏ธ PSI 113 self-ref

Rings

Ring Emoji ฮป nm Function
R0 ๐Ÿ”ด 700 MATERIAL
R1 ๐ŸŸ  630 WEAVE
R2 ๐ŸŸก 590 NODE
R3 ๐ŸŸข 520 ZONE
R4 ๐Ÿ”ต 470 PROTOCOL
R5 ๐ŸŸฃ 405 PRODUCT
R6 โšช 350 FACTORY

Total registers: 2 + 3 + 5 + 11 + 31 + 127 + 709 = 888

Architecture

mcp(            โ€” tool interface (run/template/pipe/eval/ops/sys)
  api(          โ€” programmatic access (createMCP, createVM)
    cli(        โ€” command line (light run/eval/template/pipe/mcp/ops/repl)
      cmd(      โ€” command dispatch
        sys(    โ€” runtime (parse, exec, 888 registers, 7 rings)
          params( โ€” template resolution ({{key}} โ†’ value)
            light โ€” the photonic instruction set
          )
        )
      )
    )
  )
)

License

MIT

Recommended Servers

playwright-mcp

playwright-mcp

A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.

Official
Featured
TypeScript
Magic Component Platform (MCP)

Magic Component Platform (MCP)

An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.

Official
Featured
Local
TypeScript
Audiense Insights MCP Server

Audiense Insights MCP Server

Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.

Official
Featured
Local
TypeScript
VeyraX MCP

VeyraX MCP

Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.

Official
Featured
Local
graphlit-mcp-server

graphlit-mcp-server

The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.

Official
Featured
TypeScript
Kagi MCP Server

Kagi MCP Server

An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.

Official
Featured
Python
E2B

E2B

Using MCP to run code via e2b.

Official
Featured
Neon Database

Neon Database

MCP server for interacting with Neon Management API and databases

Official
Featured
Exa Search

Exa Search

A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.

Official
Featured
Qdrant Server

Qdrant Server

This repository is an example of how to create a MCP server for Qdrant, a vector search engine.

Official
Featured