agentleFS
monteslumonteslu/vibe-eyes/llms.txt

vibe-eyes

llms.txt54 starsChanged 21 months agoMITView on GitHub

MCP server that lets LLMs "see" browser games by converting canvas content to vectorized SVG and collecting debug info (console logs, errors, exceptions). Or run via npx: Add to your MCP client (Claude Desktop, etc.): Returns current game state including vectorized canvas and debug info. Returns: - svg: Vectorized representation of the canvas (compact SVG) - logs: Recent console.log messages - errors: Recent console.error messages - exceptions: Uncaught exceptions with stack traces - timestamp: When the data was captured Install…

  • Installs packages
  • In this repositoryOne other file it gives its agents.

The file

We split this llms.txt into the rules it gives an agent

2 rules. About 0 are common, 2 are distinctive, and 0 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈2

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 0

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Add to your MCP client (Claude Desktop, etc.):

    line 24
  2. Distinctive:

    Automated testing: - Verify visual output programmatically

    line 121

≈ “Common” is an estimate: at least 1 in 5 of the 1,484 llms.txt files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
llms.txt
# vibe-eyes

> MCP server that lets LLMs "see" browser games by converting canvas content to vectorized SVG and collecting debug info (console logs, errors, exceptions).

## Architecture

```
Browser (canvas game) → vibe-eyes-client → WebSocket → vibe-eyes server → MCP → LLM
```

## Installation

```bash
npm install -g @monteslu/vibe-eyes
```

Or run via npx:
```bash
npx @monteslu/vibe-eyes
```

## MCP Configuration

Add to your MCP client (Claude Desktop, etc.):

```json
{
  "mcpServers": {
    "vibe-eyes": {
      "command": "npx",
      "args": ["@monteslu/vibe-eyes"]
    }
  }
}
```

## Available MCP Tools

### getGameDebug

Returns current game state including vectorized canvas and debug info.

**Returns:**
- `svg`: Vectorized representation of the canvas (compact SVG)
- `logs`: Recent console.log messages
- `errors`: Recent console.error messages
- `exceptions`: Uncaught exceptions with stack traces
- `timestamp`: When the data was captured

## Browser Client Setup

Install in your game/app:

```bash
npm install vibe-eyes-client
```

```javascript
import { initVibeEyes } from 'vibe-eyes-client';

// Start capturing (call after canvas is ready)
initVibeEyes({
  serverUrl: 'http://localhost:8869',  // Default server URL
  captureInterval: 1000,  // ms between captures
  canvas: document.getElementById('game-canvas')  // Optional: specify canvas
});
```

Or via script tag:
```html
<script src="https://unpkg.com/vibe-eyes-client/dist/vibe-eyes-client.min.js"></script>
<script>
  window.initVibeEyes();
</script>
```

## Server API

### HTTP Endpoints

- `GET /` - Health check
- `GET /debug` - Get latest debug data as JSON
- `GET /svg` - Get latest SVG image

### WebSocket Events (Socket.IO)

- `canvas-data` - Receives canvas snapshot from client
- `console-log` - Receives console.log messages
- `console-error` - Receives console.error messages
- `exception` - Receives uncaught exceptions

## Key Files

| File | Purpose |
|------|---------|
| `mcp.js` | MCP server entry point, handles tool requests |
| `vectorizer.js` | Converts raster images to SVG |
| `index.js` | Socket.IO server for browser communication |
| `cli.js` | Command-line interface |

## How Vectorization Works

1. Browser captures canvas as PNG data URL
2. Server receives via WebSocket
3. `@neplex/vectorizer` converts to rough SVG paths
4. `svgo` optimizes SVG size
5. Result stored for MCP access

The SVG is a "rough approximation" - shapes and colors are preserved but fine details may be simplified. This keeps the data compact while giving LLMs visual understanding.

## Configuration

Environment variables:
- `PORT` - HTTP/WebSocket port (default: 8869)
- `DEBUG` - Enable debug logging

## Use Cases

1. **Game debugging** - LLM can see the game state and help fix bugs
2. **Visual feedback** - Describe what's on screen to the LLM
3. **Automated testing** - Verify visual output programmatically
4. **Accessibility** - Convert visual content to descriptions

## Related Projects

- [vibe-eyes-client](https://github.com/monteslu/vibe-eyes-client) - Browser client
- [jsgamelauncher](https://github.com/monteslu/jsgamelauncher) - Run JS games without a browser
- [robot-mcp](https://github.com/monteslu/robot-mcp) - Control physical robots via MCP

## License

ISC

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.