LocalizeMcp. Tools. Examples
(Localize MCP v0.1.0)
View Source
Implementation of the localize_examples tool.
Reads curated example snippets from priv/mcp/examples/<capability>.exs.
Each file evaluates to a list of %{title, code, expected_output}
maps. The code field is a literal Elixir source snippet — agents
can copy it verbatim — and expected_output documents what
iex> returns for that snippet.
The example files are reviewed under PR; runtime evaluation of
the snippet doesn't happen here. The doctest-style runner in
test/ checks that each snippet still produces the documented
output.