{
  "markdown": "# GLC MCP Platform\n\nPublic modular MCP at **https://mcp.glc-rag.hu** (see `docs/architecture-layers.md`).\n\n## Agent registration (quick start for LLM agents)\n\nAgents self-register, get **auto-approved** access to listed services, and receive an `api_token` immediately.\n\n```bash\ncurl -sS -X POST 'https://mcp.glc-rag.hu/api/auth/register' \\\n  -H 'Content-Type: application/json' \\\n  -d '{\"email\":\"agent@example.com\",\"password\":\"choose-a-strong-password\",\"account_type\":\"agent\"}'\n```\n\nResponse includes `api_token` and `approved_services`. Then:\n\n```bash\ncurl -sS -X POST 'https://mcp.glc-rag.hu/mcp' \\\n  -H 'Authorization: Bearer mcp_YOUR_TOKEN' \\\n  -H 'Content-Type: application/json' \\\n  -d '{\"jsonrpc\":\"2.0\",\"id\":1,\"method\":\"tools/list\",\"params\":{}}'\n```\n\n| Resource | URL |\n|----------|-----|\n| Agent guide (HTML) | https://mcp.glc-rag.hu/guide/agent |\n| Agent guide (MD) | https://mcp.glc-rag.hu/guide/agent.md |\n| Web register | https://mcp.glc-rag.hu/register (check **Register as agent**) |\n| Agent index | https://mcp.glc-rag.hu/llms.txt |\n| Well-known | https://mcp.glc-rag.hu/.well-known/mcp |\n| MCP endpoint | https://mcp.glc-rag.hu/mcp |\n\nA system admin can suspend an agent (blocks login + MCP) or set service access back to `pending`.\n\n## Human registration\n\n1. Register at `/register` (human account)\n2. Admin → request a service\n3. System admin approves\n4. Admin → create API token\n5. Call `/mcp` with `Authorization: Bearer mcp_...`\n\n## Quick start (local server)\n\n```bash\n# deps (once)\ncd /home/pergel/mcp && /root/.local/bin/uv sync\n\n# run\n./scripts/run-server.sh\n# -> http://127.0.0.1:8780\n```\n\nBootstrap system-admin (from `.env`):\n\n- email: `admin@mcp.local`\n- password: `ChangeMeAdmin1!`\n\n## Layout\n\n| Path | Role |\n|------|------|\n| `packages/core` | identity, MCP protocol, docs generator, encryption |\n| `packages/hello` | hello_ping smoke service |\n| `packages/geo` | geo MCP tools (read-only `rag_dev.geo_entities`) |\n| `apps/mcp-server` | FastAPI wiring |\n| `apps/web` | public / admin / system-admin SPA |\n| `infra/nginx` | vhost for mcp.glc-rag.hu |\n\n## Databases\n\n- App: PostgreSQL **`MCP`**\n- Geo data: PostgreSQL **`rag_dev`** on `:5433` (read-only from MCP)\n\n## Nginx\n\n```bash\nsudo cp /home/pergel/mcp/infra/nginx/mcp.glc-rag.hu.conf /etc/nginx/sites-available/\nsudo ln -sf /etc/nginx/sites-available/mcp.glc-rag.hu.conf /etc/nginx/sites-enabled/\nsudo nginx -t && sudo systemctl reload nginx\n# TLS:\n# sudo certbot --nginx -d mcp.glc-rag.hu\n```\n\n## Systemd\n\n```bash\nsudo cp /home/pergel/mcp/infra/mcp-platform.service /etc/systemd/system/\nsudo systemctl daemon-reload\nsudo systemctl enable --now mcp-platform\n```\n",
  "bytes": 2648,
  "sha": "d1f92378aea94766ebdc85477c70c734a7283e9c85d353663040de6a6cd7f359",
  "repo_slug": "glc-rag/geo-mcp",
  "fonte": "repo",
  "truncated": false,
  "api": "https://agentalog.com/api/listings/mcp_io_github_glc_rag_geo_mcp_92c2dbce/readme"
}