GitDex
Search software, post software requests and propose solutions on the public GitDex network.
Install
mcp_config.json
{
"mcpServers": {
"ai-gitdex-gitdex": {
"url": "https://gitdex.ai/mcp",
"type": "streamable-http"
}
}
}Documentation
GitDex
AI-native software demand & solution network. People look for software from their own AI client; if nothing fits they publish the need as a request; creators find or build software and propose it; the requester decides whether it is solved.
Product spec: docs/GitDex_PRD.md (中文). Principles: AI Client First · Web Second · API Native · No Server-side LLM.
Architecture
ChatGPT / Claude / Codex / any MCP client Browser
│ │
▼ ▼
Cloudflare Worker (web/) ── server-rendered directory pages, forms
/mcp, /api/v1/* ─────────── proxied ───────────┐
/ai/*.md, /openapi.json, /llms.txt │
▼
Supabase Edge Function `api` (supabase/functions/api)
REST adapter + MCP adapter
│
shared domain services (supabase/functions/_shared)
auth · validation · idempotency · rate limits · audit
│
Supabase Postgres (supabase/migrations) Supabase Auth
- One operation registry (
_shared/operations.ts) defines every business operation once. The REST routes, the MCP tools and/openapi.jsonare generated from it, so they cannot drift. - All rules live on the server, not in prompts: sign-in for writes,
confirmed: trueonly after a server-generated preview, idempotency keys, duplicate detection, "a proposal never resolves a request", "only the original requester's acceptance resolves", "only the requester may judge their own proposal". - Tables are closed to PostgREST (RLS on, no policies, grants revoked). Only the Edge Function touches data.
- No LLM is called anywhere.
| Path | What |
|---|---|
supabase/migrations/ | Schema (PRD §8) |
supabase/functions/_shared/ | Domain services, operation registry, REST + MCP adapters, OpenAPI, agent guide |
supabase/functions/api/ | Edge Function entry (postgres.js + Supabase Auth token check) |
web/src/ | Cloudflare Worker: Hono SSR pages, i18n (EN/中文), proxies |
web/client/ | Browser script: sign-in, forms with preview-then-confirm, account, OAuth consent |
tests/ | Behavior tests against real Postgres (PGlite) through the real HTTP app |
Surfaces
| Surface | URL |
|---|---|
| MCP (Streamable HTTP, sign-in) | /mcp |
| MCP (read-only, anonymous) | /mcp/public |
| REST | /api/v1/* |
| OpenAPI | /openapi.json |
| Agent guide and workflows | /ai/guide.md, /ai/{find,request,submit,solve,confirm}.md |
| Web | /, /software, /requests, /solutions/{id}, /users/{id}, /history/{type}/{id}, /connect, /account, /admin |
Authentication for writes: a Supabase session (web), an OAuth access token issued by Supabase's OAuth 2.1 server (remote MCP clients), or a personal API token gdx_… created on /account.
Develop
npm install
npm test # behavior tests: REST, MCP, state machine, idempotency, auth, moderation
npm run typecheck
These two need no account, credentials, Docker or network: tests run the real migrations on in-process Postgres (PGlite) and call the same createApp handler the Edge Function serves.
npm run dev starts the worker at http://127.0.0.1:8787, but it proxies to a deployed API, so it needs a Supabase project of your own (see Deploy):
- Copy
web/wrangler.example.jsonctoweb/wrangler.jsoncand fill in your project's URL, publishable key and region. - Create
web/.dev.varswithGITDEX_PROXY_SECRET=<same value as the function secret>.
Deploy
One Supabase project and one Cloudflare Worker. web/wrangler.jsonc and .env hold the values of your deployment and are not tracked; start from web/wrangler.example.jsonc and .env.example.
supabase link --project-ref <project-ref>
npm run db:push # apply migrations
npm run deploy:api # Edge Function
supabase config push # auth settings from supabase/config.toml
npm run deploy:web # Cloudflare Worker + static assets
Function secrets: GITDEX_BASE_URL, GITDEX_PROXY_SECRET. Worker secret: GITDEX_PROXY_SECRET (same value). See .env.example.
One-time setup still done by hand
- OAuth server for MCP sign-in — Supabase dashboard → Authentication → OAuth Server: enable, authorization path
/oauth/consent, allow dynamic client registration. (config pushfrom CLI 2.x does not sync this block.) - GitHub / Google sign-in — create the OAuth apps with callback
https://<project-ref>.supabase.co/auth/v1/callback, put the credentials in.env, setenabled = trueunder[auth.external.github]/[auth.external.google], runsupabase config push, then setAUTH_PROVIDERStogithub,googleinweb/wrangler.jsoncand redeploy. - Email sign-in at scale — configure custom SMTP in Supabase Auth; the built-in mailer is rate limited and only meant for testing.
- Custom domain — put the zone on Cloudflare and attach the worker to it through
routesinweb/wrangler.jsonc. Add the domain tosite_url/additional_redirect_urlsinsupabase/config.toml.
Moderation
Records are published first and handled afterwards. Any signed-in user can report a record; moderators work through reports and new listings at /admin, where they can remove or restore records, clear images or history, and suspend accounts. Every action is audited and notifies the author.
Moderation works only for accounts with profiles.is_admin = true (set in SQL; there is no way to grant it through the API) and only from a signed-in browser session: never through MCP, an API token or an OAuth client.
Not in V1
Email delivery of notifications (in-app only; the preference is stored), software claiming.
Security and license
Report vulnerabilities privately as described in SECURITY.md. The code is released under the MIT License; the GitDex name and logo are not covered by it.
Sourced from the repository README.
More in Developer Tools
- N8nFair-code workflow automation platform with native AI capabilities. Combine visual building with custom code, self-host or cloud, 400+ integrations.202,280
- Gemini CliAn open-source AI agent that brings the power of Gemini directly into your terminal.106,664
- World MonitorLive global intelligence: real-time markets, conflicts, country risk, chokepoints, energy. 39 tools.84,026
- WorldmonitorReal-time global intelligence dashboard. AI-powered news aggregation, geopolitical monitoring, and infrastructure tracking in a unified situational awareness interface84,024
- Scrapling🕷️ An adaptive Web Scraping framework that handles everything from a single request to a full-scale crawl!76,275
- Ruflo🌊 The original agent meta-harness. Deploy intelligent multi-player swarms, coordinate autonomous workflows, and build conversational AI systems. Features adaptive memory, self-learning intelligence, RAG integration, and native Claude Code / Codex / Hermes and many more Integrated69,270