in between state for mcp implementation

This commit is contained in:
Joren de Graaf
2026-10-07 15:49:38 +02:00
parent 4f8c3272aa
commit c825cd474e
17 changed files with 735 additions and 5 deletions
+24
View File
@@ -30,5 +30,29 @@
</div>
{% empty %}<p>No API tokens yet.</p>{% endfor %}
</section>
<section class="settings-card mcp-helper" data-mcp-helper>
<h2>Connect an AI assistant</h2>
<p>Compatible assistants can use your Food and Kitchen data through MCP. Access is limited to the permissions you grant.</p>
<div class="form-field">
<label for="mcp-server-url">MCP server URL</label>
<input id="mcp-server-url" type="url" value="{{ mcp_url }}" readonly data-mcp-url>
<button class="button button--secondary" type="button" data-mcp-copy-url>Copy URL</button>
</div>
<div class="form-field">
<label for="mcp-token-input">Paste your TaskNest API token</label>
<input id="mcp-token-input" type="password" autocomplete="new-password" spellcheck="false" data-mcp-token>
<div class="mcp-helper__actions">
<button class="button button--secondary" type="button" aria-pressed="false" data-mcp-show>Show token</button>
<button class="button button--secondary" type="button" data-mcp-copy-token>Copy bearer token</button>
</div>
</div>
<p data-mcp-status role="status" aria-live="polite"></p>
<p class="mcp-helper__hint">Treat this token like a password. TaskNest does not save the token you paste here. You can revoke access from your API tokens.</p>
<div class="mcp-helper__clients">
<section><h3>ChatGPT</h3><p>Add a custom MCP app in ChatGPT and enter the MCP server URL. Select OAuth authentication, then sign in to TaskNest and approve the requested permissions. ChatGPT does not use the pasted token field.</p></section>
<section><h3>Open WebUI</h3><p>In Admin Settings → Integrations → External Tool Servers, add an MCP (Streamable HTTP) connection. Use the URL above, choose Bearer authentication, and paste your token into its Key field.</p></section>
<section><h3>Generic MCP client</h3><p>Use Streamable HTTP at the URL above and send <code>Authorization: Bearer &lt;your token&gt;</code> as a separate header. Never put the token in the URL.</p></section>
</div>
</section>
</section>
{% endblock %}