Hey prash!
Huge congrats on getting Meeting AI running end-to-end in mock mode — detect_question, answer_question, and summarize_meeting are a really nice set of tools to bring live!
Let me unblock each of your three sections.
1. Hosted LLM / Sampling API — the key mental model shift 
This is the most important thing to get right, and it’ll actually make your life easier than you expect:
Anna’s LLM access is not a base-URL HTTP endpoint you POST to. There is no
/chat/completions, no base URL, no API key, no header for your tool to manage. It’s an MCP-style reverse-RPC — the host calls into your tool with a sampling capability, and your tool calls back to the host.
So to answer your bullets directly:
-
Base URL? None. You don’t call out to Anna; Anna injects a sampling channel into your invoke.
-
Auth / header? None for you to set. At invoke time the Agent injects a short-lived
sampling_token(JWT,aud=executa-sampling, ~600s TTL) insideparams.context. The SDK handles it — you never craft a header. -
OpenAI-compatible? Not a REST endpoint, but the request shape is MCP
sampling/createMessage. While processing aninvoke, your plugin emits this on stdout:{ "jsonrpc": "2.0", "id": "<uuid>", "method": "sampling/createMessage", "params": { "messages": [ { "role": "user", "content": { "type": "text", "text": "Summarize:\n…" } } ], "maxTokens": 400, "systemPrompt": "You are a concise assistant.", "temperature": 0.3 } }
The host replies on stdin with { id, result: { role, content, model, usage, … } }.
- Architecture (your last sub-question — and you nailed the instinct): It’s the MCP-style option. Anna injects sampling and calls your tool; your tool reverse-RPCs back for completions. You do not call an Anna endpoint directly.

- Model name(s)? Best practice: omit
modelPreferencesentirely so the user’s saved model + quota + billing apply. If a tool strictly needs a family, passmodelPreferences.hints: [{ "name": "claude-sonnet" }](case-insensitive substring match). - JSON / structured output? Yes
— pass responseFormat: { "type": "json_object" }(broadly compatible) or{ "type": "json_schema", "json_schema": {…} }. Perfect fordetect_question/ structured extraction. - Streaming? The sampling reply is a single result in Phase 1; your tool itself can be marked streaming separately.
Two pre-conditions to flip from mock → live:
- v2 negotiation — reply to
initializewithprotocolVersion: "2.0"andcapabilities.sampling = {}. - Manifest declaration —
"host_capabilities": ["llm.sample"]. (Unknown capability strings are rejected at publish.)
The huge win: no BYOK needed for the Anna provider path — the host owns model selection, billing, and quota. ![]()
2. Executa tool format 
-
Protocol: JSON-RPC 2.0 over stdio, line-delimited (
\n), UTF-8. stdout = protocol only, stderr = logs. -
describereturns your manifest. Tools declare args viaparameters(an array), notinput_schema:{ "name": "meeting-ai", "version": "1.0.0", "description": "Question detection, answer generation, meeting summaries.", "tools": [ { "name": "detect_question", "description": "Detect questions in a transcript chunk.", "parameters": [ { "name": "transcript", "type": "string", "required": true, "description": "Raw text." } ] } ], "host_capabilities": ["llm.sample"] }
Common gotcha: use parameters: [...], not MCP-styleinput_schema. The latter is silently ignored and the LLM ends up hallucinating arg names. -
invokeusesparams.tool+params.arguments(note:tool, notname), and must return the wrapped shape{ "success": true, "data": {…} }. -
Runtime? Any language — Python, Node, Go, or a compiled binary. The process is long-running: keep reading stdin in a loop, flush after each response, and only exit on stdin EOF. (Exiting after one response is the #1 protocol bug
.) -
CLI: install from npm —
@anna-ai/app-cli— then use the standalone runneranna-app executa dev <path-to-your-plugin>to boot one plugin in isolation. A quick smoke test without the CLI:echo '{"jsonrpc":"2.0","method":"describe","id":1}' | python your_plugin.py 2>/dev/null
3. App manifest & submission 
-
Develop/iterate with the CLI, then publish via the
anna-app appsflow:push→cut→release/publish(no raw zip upload — the CLI bundles and uploads for you). -
For an end-to-end demo run (login → push → rediscover → permissions → install → test in chat), I just wrote a full step-by-step walkthrough in another thread — it’ll save you a ton of time:
Examples to mirror 
You asked for an SDK / example repo — yes! The anna-executa-examples repo is exactly what you want to mirror:
examples/python/sampling-summarizer/— a v2 plugin that asks the host for completions via reversesampling/createMessage, no API key. This is the closest match to youranswer_question/summarize_meetingtools.examples/python/basic-tool/— clean multi-tooldescribe/invokereference (great template fordetect_question).sdk/python/(executa_sdk) — handles the stdin/stdout reverse-RPC plumbing andsampling_tokenfor you, so you don’t hand-roll the JSON-RPC loop.- Node and Go equivalents live under
examples/nodejs/sampling-tool.jsandexamples/go/sampling-tool/if you prefer those runtimes.
Suggested path to go live 
- Add v2
initialize(protocolVersion: "2.0",capabilities.sampling = {}). - Add
"host_capabilities": ["llm.sample"]to your manifest. - Swap your mock LLM call for a reverse
sampling/createMessage(copy thesampling-summarizerpattern). - Use
responseFormat: { "type": "json_object" }where you need structured output. - Test locally with
anna-app executa dev, thenanna-app apps pushand install via the demo walkthrough above.
You’re genuinely close — the mock→live gap here is mostly “stop calling an endpoint, start reverse-RPCing.” Once that clicks it’s a small diff. ![]()
Shout if you’d like me to sketch the exact reverse-RPC swap for answer_question — happy to help! ![]()