Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Elasticsearch MCP server secured by ReadonlyREST
This example runs the Elasticsearch MCP server against a ROR-secured cluster. The MCP server has no credentials of its own — every client sends its own
Authorizationheader, so ROR decides what each user's agent may read.Run it
curl -sL https://raw.githubusercontent.com/beshu-tech/readonlyrest-examples/master/quickstart.sh | bash -s mcp-server --branch example/RORDEV-2225Two users
analystanalystlogs-*,orders-*hrhrhr-salaries-*,orders-*Both users can log into Kibana with these credentials (read-only). The same credentials are wired into two opencode agents, one per user.
Start an agent
Log in first: run
/connectin the TUI and sign in with your own model provider (any provider opencode supports). One sign-in covers both containers.Now you are ready to test
Ask each agent "which indices can you see?" — they answer differently. Then ask
opencode-analystto readhr-salaries-2026: ROR blocks it, and the agent gets Elasticsearch's ownindex_not_found_exception.orders-*is readable by both.