@hasna/context
v0.1.11
Published
Self-hosted documentation context server for AI coding agents — crawl, index, and query library docs via MCP + CLI + HTTP
Maintainers
Readme
@hasna/context
Self-hosted documentation context server for AI coding agents — crawl, index, and query library docs via MCP + CLI + HTTP
Install
npm install -g @hasna/contextCLI Usage
context --helpMCP Server
context-mcp12 tools available.
HTTP mode
Long-lived Streamable HTTP transport (stateless, bind 127.0.0.1 only):
context-mcp --http # default port 8810
context-mcp --http --port 8810
MCP_HTTP=1 context-mcp- Health:
GET http://127.0.0.1:8810/health - MCP:
http://127.0.0.1:8810/mcp
The REST server (context-serve) also exposes /health and /mcp when running.
REST API
context-serveCloud Sync
This package supports cloud sync via @hasna/cloud:
cloud setup
cloud sync push --service context
cloud sync pull --service contextData Directory
Data is stored in ~/.hasna/context/.
License
Apache-2.0 -- see LICENSE
