feat(mcp): add --enable-odooly to oa-mcp/oa-mcp-multi #25
All Vouch review confidence checks passed
Residual risk 0.14 = Change Risk (0.36) × (1 − Review Confidence (0.60)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.36 · 205 lines diff across 2 files
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.17 · 1 substantive comment(s)
Model 3 · Review Timing & Attention
Session adequacy: 100% · Reviewer familiarity: 35%
Bedrock Claude 3 · Risk Narration
(disconnected)
Groq Risk Narration
AWS Bedrock is currently disconnected. Generate high-confidence PR triage narration on-demand using Groq.
Model 1 · Change Risk Attribution
SHAP Weights
Diff Size
diff_size
0.319
Shallow Review Depth
shallow_review_depth
0.289
Real PR Conversation Timeline
1 comments
"Review active on #25"
general
weight: 0.35
Kimkhoi3010
Summary
Adds a
--enable-odoolyflag tooa-mcp/oa-mcp-multi, mirroring theTUI's existing
oa --enable-odooly. When set, three new MCP tools becomeavailable:
list_odooly_envs— list every environment section in~/odooly.iniinstance_odooly_env— resolve which odooly env serves a giveninstance/db pair
odooly_run_script— run one of the packaged odooly scripts(
create_test_job,restore_app_icons,send_test_mail) against an envThis is the one non-read-only exception in the MCP server: odooly logs in
and can write to the matched database. Following the same launch-time-only
pattern as
--include-sensitive-information, the flag can only be set onthe command line when the server starts — no tool call can enable it from
within a session — and all three tools raise if
--enable-odoolywasn'tpassed.
odooly_run_script/instance_odooly_envalways resolve locally againstthis machine's own
~/odooly.ini, regardless ofhost/ssh_portused topin the server — odooly reaches instances over the network, not over ssh.
send_test_mailsends one real email throughmail.mailto check outboundmail actually reaches an inbox; it requires a
torecipient, validatedbefore the script is even invoked.
Test plan
tests/test_mcp_server.py— new tests cover refusal when the flag isoff (
test_odooly_tools_refuse_without_the_launch_time_flag),delegation to
probesonce enabled(
test_odooly_tools_delegate_to_probes_once_enabled), and thesend_test_mailrecipient guard(
test_send_test_mail_needs_a_recipient)make check/make test