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,25 @@
<?xml version="1.0" encoding="utf-8"?>
<odoo>
<record id="res_config_settings_view_form" model="ir.ui.view">
<field name="name">res.config.settings.view.form.inherit.ai.mcp</field>
<field name="model">res.config.settings</field>
<field name="inherit_id" ref="base_setup.res_config_settings_view_form"/>
<field name="arch" type="xml">
<xpath expr="//block[@name='integration']" position="inside">
<setting id="mcp_oauth" groups="base.group_system"
string="MCP OAuth"
help="Only the AI clients whose metadata URL (CIMD) is listed below can get OAuth tokens for your MCP server.">
<field name="mcp_allowed_cimd_urls" class="o_mcp_allowed_cimd_urls" widget="text"
placeholder="e.g. https://claude.ai/oauth/mcp-oauth-client-metadata"/>
<div class="d-flex mt-2">
<field name="mcp_enable_dcr" class="pe-2"/>
<div>
<label for="mcp_enable_dcr" string="Allow Dynamic Client Registration (DCR)"/>
<div class="text-muted">Lets any MCP client register itself and request tokens.</div>
</div>
</div>
</setting>
</xpath>
</field>
</record>
</odoo>