Expose flag evaluation by user context through the MCP
Hi Unleash team — I filed the detailed report in unleash-mcp#85, but wanted to make the request visible here too.
In a local evaluation of @unleash/[email protected], agents could read a flag's strategy but could not ask the MCP whether the flag would actually be on for a specific user. They either used the Admin API/Frontend API or inferred the answer from the rule.
The Playground API already supports evaluating contexts, so I'm not reporting a missing core evaluation API. The gap is making this verification available through the MCP. Could a read-only MCP tool accept an environment and user context and return the evaluated result?
If MCP requests are tracked only in its own repo, feel free to close this in favor of the original issue. Happy to keep the technical discussion there.
Source: Unleash/unleash