Ai Oca Mcp
ai_oca_mcp · OCA/ai
-
Security25/25No findings
-
Activity25/25Last human commit 3 months ago
-
Required by5/250 modules depend on it
-
Maturity5/25In 1 Odoo series since 16.0
Heuristic over the facts below, not an audit · How it's computed
Migration considerations
McpServer— Migrating to 19.0: `_sql_constraints` is ignored and its constraints are silently not created: declare `models.Constraint` attributes instead. migration-sql-constraints · sourceMcpServerKey— Migrating to 19.0: `_sql_constraints` is ignored and its constraints are silently not created: declare `models.Constraint` attributes instead. migration-sql-constraints · sourcemcp_server_form_view— Migrating to 17.0: `attrs=`/`states=` are rejected in views: convert them to Python expressions in `invisible`/`readonly`/`required`, keeping the original AND/OR logic. migration-view-attrs-states · sourcemcp_server_key_add_form_view— Migrating to 17.0: `attrs=`/`states=` are rejected in views: convert them to Python expressions in `invisible`/`readonly`/`required`, keeping the original AND/OR logic. migration-view-attrs-states · sourcemcp_server_key_form_view— Migrating to 17.0: `attrs=`/`states=` are rejected in views: convert them to Python expressions in `invisible`/`readonly`/`required`, keeping the original AND/OR logic. (2 occurrences in this file) migration-view-attrs-states · sourcemcp_server_key_tree_view— Migrating to 18.0: the `tree` view type was renamed to `list` (`<list>` roots, `view_mode`). migration-view-tree-tag · sourcemcp_server_log_form_view— Migrating to 17.0: `attrs=`/`states=` are rejected in views: convert them to Python expressions in `invisible`/`readonly`/`required`, keeping the original AND/OR logic. migration-view-attrs-states · sourcemcp_server_log_tree_view— Migrating to 18.0: the `tree` view type was renamed to `list` (`<list>` roots, `view_mode`). migration-view-tree-tag · sourcemcp_server_tree_view— Migrating to 18.0: the `tree` view type was renamed to `list` (`<list>` roots, `view_mode`). migration-view-tree-tag · source
Migration review checklist, not a compatibility verdict. "Migrating to X.0" applies once you upgrade to that version; "Since X.0" means this version already ignores or rejects that code. Methodology
Description
This module exposes Odoo AI tools as an MCP (Model Context Protocol) server, allowing external AI clients such as n8n or custom agents to call Odoo functions via the standardized MCP protocol. Authentication is handled via per-client API keys.
Note: Claude Desktop requires OAuth 2.0, which is not supported directly by this module. An extension could be required.
Dependencies
Code analysis
Extracted from the source by best-effort static analysis (no code is executed); details may be incomplete.
Views touched 9
| XML ID | Name | Model | Type | Status |
|---|---|---|---|---|
mcp_server_form_view |
mcp.server | form | New | |
mcp_server_key_add_form_view |
mcp.server.key.add | form | Inherits mcp_server_key_form_view | |
mcp_server_key_form_view |
mcp.server.key | form | New | |
mcp_server_key_tree_view |
mcp.server.key | tree | New | |
mcp_server_log_form_view |
mcp.server.log | form | New | |
mcp_server_log_search_view |
mcp.server.log | search | New | |
mcp_server_log_tree_view |
mcp.server.log | tree | New | |
mcp_server_search_view |
mcp.server | search | New | |
mcp_server_tree_view |
mcp.server | tree | New |
HTTP endpoints 1
| Route(s) | Handler | Auth | Type | Methods | Flags |
|---|---|---|---|---|---|
/mcp/<string:key> |
McpController.mcp_endpoint |
none | http | POST | csrf off sudo |
Models touched 4
-
activeBooleandefault=True -
descriptionText -
keyCharcopy=Falsedefault=<expr>groups='base.group_system'required=True -
key_idsOne2many → mcp.server.keystring='Access Keys' args: 'mcp.server.key', 'server_id' -
nameChar -
tool_idsMany2many → ai.tooldomain=[('kind', '=', 'generic')]string='Tools' args: 'ai.tool' -
urlCharcompute='_compute_url'groups='base.group_system'
No public methods.
-
expiration_dateDatetime -
expired_onDatetimereadonly=True -
hashed_keyCharcopy=False -
nameCharrequired=True -
server_idMany2one → mcp.serverondelete='cascade'required=True args: 'mcp.server' -
stateSelectiondefault='active' args: [('active', 'Active'), ('expired', 'Expired')] -
user_idMany2one → res.usersdefault=<expr> args: 'res.users'
-
expire_key(self)
-
keyCharreadonly=Truestring='Key to use' -
key_idMany2one → mcp.server.keyondelete='cascade'required=True args: 'mcp.server.key' -
server_idMany2one → mcp.serverondelete='cascade'required=True args: 'mcp.server'
-
expire_key(self) -
generate_key(self)
-
dateDatetimedefault=fields.Datetime.nowindex=True -
errorText -
requestText -
responseText -
server_idMany2one → mcp.serverondelete='cascade'required=True args: 'mcp.server' -
server_key_idMany2one → mcp.server.keyondelete='cascade'required=True args: 'mcp.server.key'
No public methods.
Loading…