mirror of
https://github.com/Part-DB/Part-DB-server.git
synced 2026-07-27 11:41:36 +00:00
Show MCP endpoint url in api panel in user settings
This commit is contained in:
parent
9e404e3a93
commit
16ceccb083
2 changed files with 22 additions and 1 deletions
|
|
@ -94,6 +94,21 @@
|
|||
</div>
|
||||
</div>
|
||||
|
||||
{% if is_granted("@api.use_mcp") %}
|
||||
<div class="row">
|
||||
<div class="col-sm-2">
|
||||
<b>{% trans %}api.api_endpoints.mcp_url{% endtrans %}:</b>
|
||||
</div>
|
||||
<div class="col-sm-10">
|
||||
<button class="btn btn-outline-dark d-print-none btn-sm" data-clipboard-text="{{ absolute_url('/mcp') }}">
|
||||
<i class="fas fa-copy"></i>
|
||||
</button>
|
||||
<span>{{ absolute_url('/mcp') }}</span>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
{% endif %}
|
||||
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue