Migrate API backend to SQLite, add MCP layer, and Docker Compose deployment#20
Draft
guillochon wants to merge 3 commits intomasterfrom
Draft
Migrate API backend to SQLite, add MCP layer, and Docker Compose deployment#20guillochon wants to merge 3 commits intomasterfrom
guillochon wants to merge 3 commits intomasterfrom
Conversation
Co-authored-by: James Guillochon <jguillochon@esri.com>
Co-authored-by: James Guillochon <jguillochon@esri.com>
Co-authored-by: James Guillochon <jguillochon@esri.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
oacapi.dbfrom astrocatalog repositoriesmcp_server.py) that reuses API query logic through a shared query serviceapi,mcp, andingestservices plus Dockerfiles and environment defaultsastrocatspython package dependency by replacing helper usage with local compatibility utilitiesoutput/jsonfiles without duplicating ~50G event dataKey implementation details
classes/models.py+classes/sqlite_store.pydefine SQLAlchemy schema and persistence utilitieseventsrows now includeevent_pathpointer instead offull_jsonpayloadscripts/ingest_static_catalogs.pyrecords event JSON file paths and resets schema on rebuildapi.pyfull-query flow loads full event JSON fromevent_path(or legacy path resolver) and preserves existing route signaturesclasses/apidata.pysupportsOAC_BACKEND/OAC_DB_PATHand sqlite backend detectionclasses/query_service.pyencapsulates API-compatible query execution for MCP and testsmcp_server.pyexposesquery_apiand supporting MCP resourcesdocker-compose.yml,Dockerfile.api,Dockerfile.mcp,Dockerfile.ingest,.env.example, anddocs/deployment-compose.mdprovide constrained-host deployment pathclasses/compat.pyprovides localis_integer/is_numberhelpers to replaceastrocats.catalog.utilsValidation
python3 -m unittest tests/test_migration_smoke.pypython3 -c "import api; print('api-import-ok')"Notes