Repository navigation
[6693][ADD] ai_tool, ai_tool_read, ai_oca_mcp - #245
Open
nobuQuartile wants to merge 3 commits into
Open
nobuQuartile wants to merge 3 commits into
nobuQuartile wants to merge 3 commits into
Conversation
Dependency of ai_tool_read. Copied verbatim from the OCA/ai 16.0 branch. This project aggregates only its own repos, so the module is vendored here; the copy duplicates upstream and can be retired if OCA/ai is ever aggregated directly. Vendored from OCA/ai@c1bd4f3 (16.0) Assisted-by: Claude Opus 5.5
nobuQuartile
force-pushed
the
16.0-add-ai_tool_read
branch
5 times, most recently
from
October 13, 2026 01:48
a164699 to
457421c
Compare
Lets an AI agent read any model and field the calling user can access, with a per-field "AI Read Forbidden" flag to keep personal or sensitive fields out of reach. Copied verbatim from OCA/ai PR 122, which is still open, so the source is the PR head rather than a branch: re-sync from the 16.0 branch once the PR merges. Vendored from OCA/ai@425e42a (refs/pull/122/head) Assisted-by: Claude Opus 5.5
Exposes the registered AI tools, such as those of ai_tool_read, as an MCP server so that external AI clients can call them with per-client API keys. Copied verbatim from the OCA/ai 16.0 branch. This project aggregates only its own repos, so the module is vendored here; the copy duplicates upstream and can be retired if OCA/ai is ever aggregated directly. Vendored from OCA/ai@c1bd4f3 (16.0) Assisted-by: Claude Opus 5.5
nobuQuartile
force-pushed
the
16.0-add-ai_tool_read
branch
from
October 13, 2026 03:19
457421c to
003b132
Compare
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.
Adds
ai_tool_read,ai_oca_mcpand their common dependencyai_tool, all copied verbatim from OCA/ai.ai_tool_read (OCA/ai#122, open) adds generic
ai_tooltools that let an AI agent read any model and field the calling user can access, while keeping personal or otherwise sensitive fields out of reach:hidden.A per-field flag AI Read Forbidden (
ai_no_read) onir.model.fieldskeeps a field out of these tools' results, together with the fields exposing its value (related,_inherits, computed). Relational values are returned as IDs. Searches are not restricted; the module README lists the cases that can still reveal a forbidden value. The tools run with the user's own access rights (nosudo), so ACLs, record rules and fieldgroupsstill apply.ai_oca_mcp (OCA/ai
16.0) exposes Odoo AI tools as an MCP (Model Context Protocol) server, so that external AI clients such as n8n or custom agents can call Odoo functions through the standard MCP protocol. Authentication uses per-client API keys. Claude Desktop requires OAuth 2.0, which this module does not support.ai_tool (OCA/ai
16.0) is the base infrastructure for registering callable functions as AI tools, used by MCP servers, automation flows or other AI integrations.Sources, one line per commit. When squash-merging, keep these lines in the commit message:
In order:
ai_tool,ai_tool_read,ai_oca_mcp.ai_tool_readcomes from the head of the still-open OCA/ai#122; re-sync it from16.0once that PR merges.Assisted-by: Claude Opus 5.5
QT6693