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.
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
A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.
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.
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.
VeyraX MCP
Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.
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.
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.
E2B
Using MCP to run code via e2b.
Neon Database
MCP server for interacting with Neon Management API and databases
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.
Qdrant Server
This repository is an example of how to create a MCP server for Qdrant, a vector search engine.