Skip to content

sync: add storage, web UI, MCP handlers, routers - #2132

Open
unsupo wants to merge 2 commits into
developmentfrom
sync/storage-web-mcp-handlers
Open

unsupo wants to merge 2 commits into
developmentfrom
sync/storage-web-mcp-handlers

Conversation

@unsupo

@unsupo unsupo commented Nov 6, 2026 •

Copy link
Copy Markdown
Collaborator

Summary

Add ~42 new infrastructure modules from internal repo.

What is included

  • server/storage/ (10 files) — postgres/sqlite control plane metadata backends, SQL migrations (038, 039, 054, 055), shared content/git/ripgrep backends, protocol definition
  • server/web/pages/ (21 files) — admin UI pages: dashboard, config, config values, golden repos, activated repos, jobs, logs, credentials, users, groups, discovery, embedding stats, analytics export, query, restart, self monitoring, session, siem config, ssh keys, shared helpers
  • server/web/templates/ (2 files) — feature nav and feature settings HTML partials
  • server/mcp/handlers/ (5 files) — git seam, global clone, cached payload, cancel job, vector query search
  • server/mcp/tool_docs/ (2 files) — rename golden repo, sync golden catalog
  • server/repositories/ (1 file) — activated working copy
  • server/routers/ (2 files) — index store admin, metadata outbox admin
  • server/utils/ (1 file) — route table

Review notes

All files are NEW additions. Part of the incremental internal→public sync.

Disclosure scan run: ticket refs, MR refs, K8s DNS, internal emails, AWS account IDs, GitLab paths checked.


Merge-order dependencies

Prerequisite What it supplies
PR #2122 cidx-sdk seams package
PR #2127 Dockerfile packaging + features registry
PR #2130 Foundation layer (utils/index_store, startup wiring)
PR #2131 Server services (index_store_backfill, plugins, outbox sweeper)
PR #2133 Router mounting, handler registration, routes.py rewire, SQLite tables

Review findings

# Severity Status Summary
1 BLOCKING Fixed Internal tracker keys in source comments and migration
2 BLOCKING Fixed Internal service names in code, errors, tool doc
3 BLOCKING Fixed Internal repo alias and cost/volume in migration 038
4 BLOCKING Fixed Internal product codename in MCP tool doc
5 MEDIUM Noted Postgres outbox complete() deletes unclaimed rows
6 MEDIUM Merge-order SDK package imports — no open PR supplies cidx_sdk
7 MEDIUM Noted Postgres outbox holds connection for whole sweep
8-9 MEDIUM Merge-order Unwired copies of routes.py and xray handlers
10-21 LOW Noted Security, bugs, performance (tracked privately where applicable)

Add new infrastructure modules from internal repo:
- server/storage/ — postgres/sqlite control plane metadata backends,
  SQL migrations (038-055), shared content/git/ripgrep backends,
  control plane metadata protocol
- server/web/pages/ — admin UI (dashboard, config, golden repos,
  jobs, logs, credentials, users, groups, discovery, etc.)
- server/web/templates/ — feature nav and settings partials
- server/mcp/handlers/ — git seam, global clone, cached payload,
  cancel job, vector query search
- server/mcp/tool_docs/ — rename golden repo, sync golden catalog
- server/repositories/ — activated working copy
- server/routers/ — index store admin, metadata outbox admin
- server/utils/ — route table
- Remove internal tracker keys from source files and SQL migrations
- Replace internal service names with generic descriptions
- Remove internal repo alias and cost/volume figures from migration 038
- Replace product codename with neutral sample in MCP tool doc
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant