tau-tongue-mcp
README.md
# tau-tongue-mcp
[](https://github.com/AstralArkitekt/tau-tongue-mcp)
[](https://www.typescriptlang.org/)
[](https://modelcontextprotocol.io/)
An [MCP](https://modelcontextprotocol.io/) server that exposes the [`@astralarkitekt/tau-tongue`](https://github.com/AstralArkitekt/tau-tongue) symbolic narrative algebra to LLM clients (Claude Desktop, VS Code Copilot, LM Studio, etc.) over stdio transport.
Give any LLM the ability to interpret text through Pythagorean numerology, generate recursive narrative structures, look up 256 symbolic operators, and work with the archetype/resonance system — without needing to know the internals.
## Quick Start
### Claude Desktop
Add to your `claude_desktop_config.json`:
```json
{
"mcpServers": {
"tau-tongue": {
"command": "node",
"args": ["/path/to/tau-tongue-mcp/dist/index.js"]
}
}
}
```
### LM Studio
Edit your `mcp.json` (Program tab → Install → Edit mcp.json):
```json
{
"mcpServers": {
"tau-tongue": {
"command": "node",
"args": ["/path/to/tau-tongue-mcp/dist/index.js"]
}
}
}
```
### VS Code / Copilot / Continue
Same pattern — point your client's MCP config at `node dist/index.js` with stdio transport.
## Build
```bash
npm install
npm run build # tsc → dist/
node dist/index.js # starts stdio server
```
## Tools
### Core Analysis
| Tool | Input | Description |
|------|-------|-------------|
| `get_tautongue` | `input: string` | Full Tau-Tongue analysis in one call — returns symbolic equation, protoCrucible, decorated braid items (each with crucible + narrativeTexture), antagonist (with crucible, separated from braid), and braidCount. The primary tool for story generation. |
| `interpret` | `input: string` | Compact Tau-Tongue symbolic identity — returns resonance, archetype, symbolic equation, crucible, and narrative interpretation. Use decomposition tools for deeper analysis. |
| `generate_spine` | `spark: string`, `format: short\|novelette\|novella\|novel\|epic\|saga` | Generate a condensed TauSpine narrative structure. Returns crucibles only per scene — use `interpret` or `get_braid` on individual scenes for detail. |
| `get_braid` | `input: string`, `index?: number` | Parse braid items from spark text. Returns all braids, or a specific one by zero-based index. |
| `get_symbol` | `symbol?: string` | Look up one symbol from the 256-glyph operator algebra, or omit to get all 256. |
### Equation Decomposition
| Tool | Input | Description |
|------|-------|-------------|
| `get_interference_wave` | `input: string` | Compute the braid interference wave from interpreted text. |
| `get_narrative_palette` | `braid: string` | Extract scene-function distribution from a braid string. |
| `get_antagonist` | `equation: string` | Derive the antagonist archetype and crucible from a symbolic equation. |
| `get_crucible` | `braidItem: string` | Extract the crucible from a single braid item string (e.g. `⨏(1,3,5)`). |
| `extract_braid_digits` | `equation: string` | Pull the raw digit braid from a symbolic equation string. |
### Utilities
| Tool | Input | Description |
|------|-------|-------------|
| `convert_to_numbers` | `text: string` | Pythagorean cipher — convert text to a digit string. |
| `calculate_digital_root` | `numStr: string` | Reduce a digit string to its digital root (preserves master numbers 11, 22). |
| `cipher_cycle` | `cipher: string`, `resonance: number` | Evolve a numerical signature through one cipher cycle. |
| `generate_phonemetic_names` | `input: string`, `augment?: number`, `count?: number` | Generate phonemically-derived character names from a numero cipher. |
## Resources
The server also exposes reference data as MCP resources:
| URI | Description |
|-----|-------------|
| `tau-tongue://symbols` | Full 256-symbol operator algebra |
| `tau-tongue://archetypes` | 11 archetypes (1–9, 11, 22) with extended descriptions |
| `tau-tongue://resonances` | 11 resonances with descriptions |
| `tau-tongue://formats` | SpineFormat enum + fiction type map |
| `tau-tongue://scene-functions` | Scene function enum + archetype mappings |
## Architecture
```
┌──────────────────────────────┐
│ LLM Client (Claude, etc.) │
│ ────────────────────────── │
│ Calls MCP tools via JSON │
└──────────┬───────────────────┘
│ stdio
┌──────────▼───────────────────┐
│ tau-tongue-mcp server │
│ src/index.ts │
│ ─────────────────────────── │
│ McpServer (SDK v1.27) │
│ StdioServerTransport │
└──────────┬───────────────────┘
│ imports
┌──────────▼───────────────────┐
│ @astralarkitekt/tau-tongue │
│ v3.7.0 │
│ ─────────────────────────── │
│ TauTongueInterpreter │
│ TauSpine / createTauSpine │
│ Symbol map, utilities │
└──────────────────────────────┘
```
The server is a **single-file thin wrapper** (`src/index.ts`). All domain logic lives in the [`tau-tongue`](https://github.com/AstralArkitekt/tau-tongue) package — zero business logic duplication.
### System Prompt
The repo includes [`SYSTEM_PROMPT.md`](SYSTEM_PROMPT.md) — a ready-to-use interpreter prompt that teaches an LLM the BraidCraft methodology (Six Lenses), equation anatomy, archetype reference, and the operational protocol for converting Tau-Tongue output into narrative outlines. Drop it into your client's system prompt or reference it as context alongside the MCP tools.
## Testing
```bash
npm test # vitest — 26 e2e tests via InMemoryTransport
```
Tests exercise every tool, every resource, integration workflows, and listing verification.
## What is Tau-Tongue?
Tau-Tongue is a symbolic narrative algebra that converts text into deterministic symbolic equations through Pythagorean numerology. It provides:
- **Numero ciphers** — text → digit sequences via Pythagorean letter-to-number mapping
- **Digital roots** — digit reduction preserving master numbers (11, 22)
- **11 Archetypes** — Dreamweaver, Recursivist, Architect, Oracle, Catalyst, Empath, Archivist, Mechanist, Alchemist, Weaver of Fields, Mask Maker
- **256-symbol operator algebra** — each glyph has a mathematical meaning and a metaphorical narrative meaning
- **TauSpine** — recursive narrative structure generator that produces scene-by-scene story skeletons
- **BraidCraft** — the methodology for interpreting symbolic equations into narrative structure
## Stack
| Layer | Choice |
|-------|--------|
| Runtime | Node.js ≥ 18 |
| Language | TypeScript 5, ESM |
| MCP SDK | `@modelcontextprotocol/sdk` ^1.27 |
| Transport | stdio |
| Domain lib | `@astralarkitekt/tau-tongue` ^3.7.0 |
## License
[MIT](LICENSE)
This server cannot be deployed
Maintenance
ActivityInactive
ResponsivenessNo recent community issues