Commit Graph
333 Commits
Author SHA1 Message Date
saidsurucu a5e1ad1778 Update asgi_app.py 2025-07-02 03:58:19 +03:00
saidsurucu 698a9db0fb Update asgi_app.py 2025-07-02 03:44:23 +03:00
saidsurucuandClaude 732edba35c Add /mcp handler to forward to MCP app
- Create explicit FastAPI handlers for /mcp GET/POST
- Forward requests to mounted /mcp/ app via ASGI
- This should fix Claude's 405 Method Not Allowed errors

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-07-02 03:31:55 +03:00
saidsurucuandClaude 73c72a6039 Fix mount order for /mcp paths
- Mount /mcp before /mcp/ to fix routing
- FastAPI mount order is important for path matching

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-07-02 03:29:22 +03:00
saidsurucuandClaude 84b33f1f91 Add /mcp mount for Claude compatibility
- Mount MCP app on both /mcp/ and /mcp paths
- Claude is calling /mcp instead of /mcp/
- This should fix the 405 Method Not Allowed errors

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-07-02 03:28:22 +03:00
saidsurucuandClaude 4bcd95cc41 Add service_documentation to OAuth metadata
- Point Claude to correct MCP endpoint path /mcp/
- This should fix the 405 Method Not Allowed errors
- OAuth metadata now includes service_documentation field

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-07-02 03:24:45 +03:00
saidsurucu 2946a4863d Update asgi_app.py 2025-07-02 03:15:41 +03:00
saidsurucu 13ed5b3c67 Update mcp_auth_http_adapter.py 2025-07-02 03:07:33 +03:00
saidsurucuandClaude a29a624598 Fix UnprocessableEntityError import issue
- Remove UnprocessableEntityError import that doesn't exist in clerk-backend-api
- This was causing Clerk SDK to appear unavailable in HTTP adapter
- Keep only Clerk import which is sufficient for our needs

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-07-02 03:02:35 +03:00
saidsurucu a094c4bf7f Add debug for Clerk SDK import 2025-07-02 03:00:10 +03:00
saidsurucu 9d41bdd30a Update mcp_auth_http_adapter.py 2025-07-02 02:50:39 +03:00
saidsurucu 8d91d2c764 improve clerk sdk use 2025-07-02 02:43:53 +03:00
saidsurucu e70554dcc9 Update pyproject.toml 2025-07-02 02:22:37 +03:00
saidsurucu cb6d6ee8df attempt to fix auth 2025-07-02 02:17:37 +03:00
saidsurucu 7e6819affa fix oauth session 2025-07-02 02:03:28 +03:00
saidsurucuandClaude 9880316fd2 Fix Clerk custom domain URL generation
- Support custom domains like clerk.yargimcp.com
- Auto-detect between custom domains and standard .accounts.dev subdomains
- Apply fix to both main OAuth and Google OAuth flows
- Maintain backward compatibility with standard Clerk domains

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-07-02 00:50:25 +03:00
saidsurucu 6919ac552b Update oauth_router.py 2025-07-02 00:00:03 +03:00
saidsurucu 7802395ef0 Update oauth_router.py 2025-07-01 23:54:33 +03:00
saidsurucuandClaude f25661c7da Use environment variables for Clerk domain
- Remove hardcoded domain fallbacks
- Always prefer CLERK_DOMAIN environment variable
- Extract domain from publishable key as secondary option
- Fallback to localhost only if no env var set

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-07-01 23:46:59 +03:00
saidsurucu dc57743939 Update mcp_server_main.py 2025-07-01 23:30:17 +03:00
saidsurucu 5d910274a4 Update mcp_server_main.py 2025-07-01 23:18:56 +03:00
saidsurucu bad36dd664 Update mcp_server_main.py 2025-07-01 23:15:29 +03:00
saidsurucu 0d8cd181b8 fix optional deps issue 2025-07-01 23:01:28 +03:00
saidsurucu 424960fafb add deep research 2025-07-01 22:53:46 +03:00
saidsurucuandClaude c6daebe924 Use environment variables for OAuth URLs
Remove hard-coded URLs from OAuth configuration and use environment
variables instead for better security and configurability:

- Add CLERK_ISSUER and BASE_URL environment variables
- Update asgi_app.py OAuth endpoints to use env vars
- Update oauth_router.py to use configurable URLs
- Update .env.example with new environment variables
- Fix fetch tool bug: doc.content → doc.markdown_content

Environment variables:
- CLERK_ISSUER: Clerk domain issuer URL
- BASE_URL: Base URL for OAuth callbacks and API URLs
- CLERK_DOMAIN: Clerk domain name

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-07-01 22:37:44 +03:00
saidsurucu 1aaf1e1bd4 improv for prod 2025-07-01 18:50:36 +03:00
saidsurucu 0f9f5da5b3 Update fly.toml 2025-07-01 18:15:39 +03:00
saidsurucu c79aacbb73 Update .gitignore 2025-07-01 18:09:23 +03:00
saidsurucu caf4fdcfa0 Update oauth_middleware.py 2025-07-01 17:55:56 +03:00
saidsurucu 2fe81b4298 fix clerk import 2025-07-01 17:47:40 +03:00
saidsurucu e0bba7625f add clerk oauth 2025-07-01 17:31:48 +03:00
saidsurucu bbf99870eb Update mcp_server_main.py 2025-07-01 13:29:25 +03:00
saidsurucu f23f74df80 add operator desc to bedesten 2025-07-01 12:34:16 +03:00
saidsurucu 1d289c6e9b fix yargitay ALL issue 2025-07-01 12:07:19 +03:00
saidsurucu 91f72bea47 Update pyproject.toml 2025-06-30 12:41:19 +03:00
saidsurucu f7500aa79d fix saas issues 2025-06-29 23:54:28 +03:00
saidsurucu 5ea1cf924a Update asgi_app.py 2025-06-29 21:49:02 +03:00
saidsurucu 346f891b5b Update asgi_app.py 2025-06-29 21:01:27 +03:00
saidsurucu dfb703d7a5 fix cleck sdk 2025-06-29 20:52:52 +03:00
saidsurucu 81f5f49b8a Update Dockerfile 2025-06-29 20:46:01 +03:00
saidsurucu 3fcb0cf773 Update Dockerfile 2025-06-29 20:45:02 +03:00
saidsurucu e34bbdc355 Update Dockerfile 2025-06-29 20:40:59 +03:00
saidsurucu 3746804b20 update Dockerfile 2025-06-29 20:39:22 +03:00
saidsurucu 553bf61106 Update stripe_webhook.py 2025-06-29 20:25:26 +03:00
saidsurucu 973a25980b add saas files 2025-06-29 14:31:37 +03:00
saidsurucu 352969deca add saas depen 2025-06-29 13:27:42 +03:00
saidsurucu 2e369304d8 add more desc to fastapi 2025-06-29 12:50:41 +03:00
saidsurucu 3cd6ba7d62 Update fastapi_app.py 2025-06-29 12:24:28 +03:00
saidsurucu f3e81e0701 Update fastapi_app.py 2025-06-29 01:06:36 +03:00
saidsurucu 2179582614 update fastapi app 2025-06-29 01:00:32 +03:00