latest changes

This commit is contained in:
Joren de Graaf
2026-10-22 10:32:41 +02:00
parent 5799b542c8
commit 5b986134be
63 changed files with 2412 additions and 77 deletions
+2
View File
@@ -23,6 +23,8 @@ Set these variables in the MCP process for deployment:
Set `TASKNEST_MCP_PUBLIC_URL` and `TASKNEST_OAUTH_ISSUER_URL` in Django as well. Keep the issuer URL consistent between both processes. The checked-in defaults use `https://tasksnest.jorendegraaf.eu/`; override both variables with local URLs when testing local OAuth. Do not place personal access tokens in URLs or environment variables. Bind MCP to loopback only when Caddy runs on the **same host**. When Caddy runs on another host and proxies to the app host's Tailnet address, bind MCP to that Tailnet address instead. The MCP process should have the same restart and logging policy as the Django service.
When `TASKNEST_API_BASE_URL` uses loopback HTTP, the MCP adapter marks that trusted local hop as HTTPS for Django's proxy security check. This keeps `SECURE_SSL_REDIRECT` enabled without redirecting API calls to a TLS listener on port 1234. Restart the MCP process after deploying adapter changes. A direct unauthenticated call to the loopback API without that header may return a 301 redirect; a public HTTPS API call should return a structured 401 instead.
The public `/mcp` path **must** reach the MCP process, not Django. For the site's Caddy proxy, route the exact MCP path and protected-resource metadata to the MCP listener, and let the existing Django route handle OAuth metadata and `/o/`:
```caddyfile