Skip to content

thealphacubicle/OpenContext

Repository files navigation

OpenContext

OpenContext Logo

License: MIT Python 3.11+ MCP Compatible


Quick Start

Install uv first, then:

# 0. Install the CLI (project + CLI extras into .venv)
git clone https://github.com/thealphacubicle/OpenContext.git
cd OpenContext
uv sync --extra cli

# 1. Check prerequisites (Python 3.11+, uv, AWS CLI, Terraform)
uv run opencontext authenticate

# 2. Configure interactively (creates config.yaml + Terraform workspace)
uv run opencontext configure

# 3. Test locally (optional)
uv run opencontext serve

# 4. Deploy
uv run opencontext deploy --env staging

Connect via Claude Connectors (same steps on both Claude.ai and Claude Desktop):

  1. Go to SettingsConnectors (or CustomizeConnectors on claude.ai)
  2. Click Add custom connector
  3. Enter a name (e.g. "Your City OpenData") and your API Gateway URL (printed at the end of opencontext deploy)

See Getting Started for full setup.


Using uv and requirements.txt

  • Default workflow: uv sync --extra cli (or uv sync --all-extras for development) installs from pyproject.toml and the lockfile into .venv. Run CLI and tools with uv run … when you want to use the project environment without activating the venv.
  • requirements.txt is kept for Lambda packaging ( opencontext deploy installs with uv pip install … -r requirements.txt ) and security scans in CI (e.g. uv run pip-audit -r requirements.txt). You usually do not install from requirements.txt by hand unless debugging those flows.

Details: Getting Started — full walkthrough (section Using uv with requirements.txt).


Documentation

Doc Description
Getting Started Setup and usage
CLI Reference All CLI commands and flags
Architecture System design and plugins
Built-in Plugins CKAN, ArcGIS Hub, Socrata plugin details
Custom Plugins How to write your own plugin
Deployment AWS, Terraform, monitoring
Testing Local testing (Terminal, Claude, MCP Inspector)

Contributing

Pre-commit hooks (optional):

uv sync --all-extras   # includes pre-commit; use --extra cli if you only need the CLI
uv run pre-commit install

Hooks: Ruff, yamllint, gofmt. Run manually: uv run pre-commit run --all-files.


License

MIT — see LICENSE.

Author: Srihari Raman

About

Making civic data contextualized and accessible

Resources

License

Contributing

Stars

Watchers

Forks

Packages

 
 
 

Contributors