This commit is contained in:
2026-11-08 20:08:53 +08:00
parent 7526a5fe4d
commit 9b924747c5
2692 changed files with 394867 additions and 0 deletions

View File

@@ -0,0 +1,38 @@
<?xml version="1.0" encoding="utf-8"?>
<odoo>
<record id="ai.ir_actions_server_get_models" model="ir.actions.server">
<field name="use_in_mcp" eval="True"/>
<field name="is_readonly" eval="True"/>
</record>
<record id="ai.ir_actions_server_get_fields" model="ir.actions.server">
<field name="use_in_mcp" eval="True"/>
<field name="is_readonly" eval="True"/>
</record>
<record id="ai.ir_actions_server_search" model="ir.actions.server">
<field name="use_in_mcp" eval="True"/>
<field name="is_readonly" eval="True"/>
</record>
<record id="ai.ir_actions_server_read_group" model="ir.actions.server">
<field name="use_in_mcp" eval="True"/>
<field name="is_readonly" eval="True"/>
</record>
<record id="ir_actions_server_mcp_retrieve_initial_context" model="ir.actions.server">
<field name="name">AI Tool: MCP Retrieve initial context</field>
<field name="state">code</field>
<field name="model_id" ref="ai.model_ai_tool"/>
<field name="use_in_mcp" eval="True"/>
<field name="ai_tool_name">ai_tool_mcp_retrieve_initial_context</field>
<field name="is_readonly" eval="True"/>
<field name="ai_tool_description">
Retrieves information about the current user, their timezone and their companies.
MANDATORY: You MUST call this tool exactly once at the very beginning of every conversation, before invoking any other tool or producing any response to the user.
It returns essential context that is required to correctly use every other tool: the current user, their timezone, their active company and all companies available to them, plus general instructions.
Skipping this call will lead to incorrect tool usage (wrong timezone, wrong company scope). Do not call it more than once in the same conversation.
</field>
<field name="code">ai['result'] = record._ai_tool_mcp_retrieve_initial_context()</field>
</record>
</odoo>

View File

@@ -0,0 +1,17 @@
<?xml version="1.0" encoding="utf-8"?>
<odoo>
<data noupdate="1">
<record id="ir_config_parameter_enable_dcr" model="ir.config_parameter">
<field name="key">enable_dcr</field>
<field name="value">False</field>
</record>
<record id="ir_config_parameter_cimd_allowed_urls" model="ir.config_parameter">
<field name="key">cimd_allowed_urls</field>
<field name="value">https://chatgpt.com/oauth/client.json
https://claude.ai/oauth/mcp-oauth-client-metadata
https://claude.ai/oauth/claude-code-client-metadata
https://grok.com/oauth/mcp-client.json
</field>
</record>
</data>
</odoo>