{"id":51318615,"url":"https://github.com/jedbillyb/claude-bridge","last_synced_at":"2026-07-01T10:31:30.901Z","repository":{"id":366303865,"uuid":"1275779232","full_name":"jedbillyb/claude-bridge","owner":"jedbillyb","description":"Paper 26.1.2+ plugin that lets Minecraft ops talk to a local Claude Code instance from in-game chat via /claude (async, session-aware, audited).","archived":false,"fork":false,"pushed_at":"2026-06-21T07:10:17.000Z","size":79,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2026-06-21T08:21:22.056Z","etag":null,"topics":["ai","anthropic","bukkit","claude","claude-code","llm","minecraft","minecraft-26","minecraft-plugin","paper","paper-26","paper-plugin","pelican-panel","rcon","spigot"],"latest_commit_sha":null,"homepage":null,"language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/jedbillyb.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2026-06-21T05:55:29.000Z","updated_at":"2026-06-21T07:10:21.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/jedbillyb/claude-bridge","commit_stats":null,"previous_names":["jedbillyb/claude-bridge"],"tags_count":null,"template":false,"template_full_name":null,"purl":"pkg:github/jedbillyb/claude-bridge","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jedbillyb%2Fclaude-bridge","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jedbillyb%2Fclaude-bridge/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jedbillyb%2Fclaude-bridge/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jedbillyb%2Fclaude-bridge/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jedbillyb","download_url":"https://codeload.github.com/jedbillyb/claude-bridge/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jedbillyb%2Fclaude-bridge/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":35003452,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-07-01T02:00:05.325Z","response_time":130,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["ai","anthropic","bukkit","claude","claude-code","llm","minecraft","minecraft-26","minecraft-plugin","paper","paper-26","paper-plugin","pelican-panel","rcon","spigot"],"created_at":"2026-07-01T10:31:28.759Z","updated_at":"2026-07-01T10:31:30.895Z","avatar_url":"https://github.com/jedbillyb.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"# ClaudeBridge\n\nA single Paper plugin (**Paper 26.1.2 and up**, Minecraft calendar versioning)\nthat lets server ops talk to a local, already-authenticated **Claude Code**\ninstance from in-game chat via `/claude`. Built against the 26.1.2 stable API.\nRequires **Java 25** (Paper 26.1.x's minimum).\n\nEvery `/claude \u003cmessage\u003e` shells out to the local `claude` binary, captures and\nparses its JSON output, and sends the response back into Minecraft chat. Sessions\nare kept per-player (in memory) so follow-up questions retain context.\n\n## Build\n\nRequires nothing pre-installed except a JDK to launch Gradle — the wrapper\nprovisions a JDK 25 toolchain automatically.\n\n```bash\n./gradlew build\n```\n\nOutput jar: `build/libs/ClaudeBridge-\u003cversion\u003e.jar`. It bundles no dependencies\n(Paper API and Gson are provided by the server at runtime).\n\n## Install\n\n1. Drop the jar in the server's `plugins/` folder and start once to generate\n   `plugins/ClaudeBridge/config.yml`.\n2. Edit `config.yml` (binary path, working directory, timeout, cooldown, etc.).\n3. Deploy the `claude-mc-bridge/` folder (CLAUDE.md + rcon.py) to the\n   `working-directory` configured in step 2.\n\n### Important: this server runs under Pelican/Wings (Docker)\n\nThe Paper server — and therefore this plugin's `ProcessBuilder` — runs **inside a\nWings game container**. That has two consequences:\n\n- The `claude` binary must be installed **inside the container's persistent\n  volume** (`/home/container`), not just on the OCI host. A binary on the host\n  PATH is not visible to the plugin. Use the **native installer**\n  (`curl -fsSL https://claude.ai/install.sh | bash`) — the container has no node.\n- Headless auth uses a **long-lived OAuth token**: run `claude setup-token` on a\n  machine you can log in on, then put the token in the file referenced by\n  `claude-oauth-token-file` (default\n  `/home/container/claude-mc-bridge/.claude-oauth-token`, mode 0600). The plugin\n  injects it as `CLAUDE_CODE_OAUTH_TOKEN`. Copying `~/.claude/.credentials.json`\n  does **not** work — that file is not what authenticates the CLI.\n- Console commands: the plugin exposes a localhost, token-guarded HTTP endpoint\n  (`command-endpoint` in config) and runs commands via RCON internally, returning\n  their output. Claude calls it with `curl` (no python/node needed). RCON must be\n  enabled in `server.properties` (the plugin reads `rcon.port`/`rcon.password`\n  from there automatically). There is no tmux/screen console.\n\n## Command\n\n- `/claude \u003cmessage\u003e` — permission node `claudebridge.use` (default: op only).\n\n## Configuration (`config.yml`)\n\n| key | meaning |\n|-----|---------|\n| `claude-binary` | path to the authenticated `claude` binary |\n| `working-directory` | `--cwd` passed to claude; must contain `CLAUDE.md` |\n| `allowed-tools` | list passed to `--allowedTools` |\n| `timeout-seconds` | kill claude and report a timeout after this long |\n| `permission-node` | permission required to run `/claude` |\n| `cooldown-seconds` | per-player rate limit between calls |\n| `max-response-length` | truncate chat responses past this many chars |\n| `log-file` | audit log path (relative → plugin data folder) |\n\n## Audit log\n\nEvery invocation is appended to the audit log (`log-file`): timestamp, player,\nmessage, full response, exit code, and duration.\n\n## Extending (Telegram / Discord later)\n\nAll Claude logic lives in `ClaudeService` (`invoke(message, resumeSessionId)`),\nwhich has **no Bukkit dependency**. The in-game command handler is a thin caller.\nA future Telegram or Discord bot can construct a `BridgeConfig` + `ClaudeService`\nand call the same method without touching the command handler.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjedbillyb%2Fclaude-bridge","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjedbillyb%2Fclaude-bridge","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjedbillyb%2Fclaude-bridge/lists"}