The AI-intelligent spine with ContextConsciousnessβ’ & MemoryCloudeβ’ for the ChittyOS ecosystem.
ChittyConnect packages an HTTP API server (Cloudflare Workers/Hono) and an MCP server binary (chittyconnect-mcp) for model integrations. This package is intended to be used either as a deployed Worker or as a dependency to integrate with ChittyOS services.
ChittyConnect currently owns the dumb aggregate MCP semantics for mcp.chitty.cc and the service catalog that feeds the public Chitty discovery document.
For the canonical external host matrix, alias rules, and Cloudflare-managed OAuth pattern, see ../ch1tty/docs/MCP_HOST_STANDARD.md.
npm install @chittyos/chittyconnectIf installing from GitHub Packages, configure .npmrc:
@chittyos:registry=https://npm.pkg.github.com
//npm.pkg.github.com/:_authToken=YOUR_GITHUB_TOKEN
Then install:
npm install @chittyos/chittyconnect
The package exposes a Hono app at src/index.js that can be used as your Worker entry. In this repository we deploy using Wrangler.
wrangler dev
wrangler deployThe package exposes a CLI for the MCP server:
npx chittyconnect-mcpUse --help flags from your MCP client to connect. See MCP_QUICK_REFERENCE.md for tool list.
- Quick Start Guide - Get up and running in 30 minutes
- Architecture Analysis - Comprehensive architectural review and improvement proposals
- Innovation Roadmap - ContextConsciousnessβ’ & MemoryCloudeβ’ vision and implementation
- Integrations - Operational integration notes, including Gmail-to-ChittyRouter intake
REST API with OpenAPI specification for seamless custom GPT integration.
Capabilities:
- ChittyID minting and validation
- Legal case management (ChittyCases)
- Evidence ingestion and analysis
- Banking connections (ChittyFinance)
- Contextual analysis (ContextConsciousnessβ’)
- Event logging (ChittyChronicle)
- Data synchronization (ChittySync)
- Service health monitoring
Model Context Protocol server providing deep Claude integration.
Tools:
chittyid_mint- Mint ChittyIDs with contextchitty_contextual_analyze- ContextConsciousnessβ’ analysischitty_case_create- Create legal caseschitty_evidence_ingest- Ingest evidencechitty_services_status- Monitor ecosystem healthchitty_finance_connect_bank- Connect banking- And 5+ more tools...
Unified proxy for external services:
- Notion API - Database queries, page creation
- Neon Database - SQL queries
- OpenAI - Chat completions
- Google Calendar - Event management
- Cloudflare AI - Workers AI models
Fast-ack webhook processing with MCP normalization.
- Cloudflare Workers account
- Wrangler CLI installed
- ChittyOS service tokens
- Third-party API keys (Notion, OpenAI, etc.)
# Clone repository
cd /Users/nb/.claude/projects/-/CHITTYOS/chittyos-apps/chittyconnect
# Install dependencies
npm install
# Create KV namespaces
wrangler kv:namespace create "IDEMP_KV"
wrangler kv:namespace create "TOKEN_KV"
wrangler kv:namespace create "API_KEYS"
wrangler kv:namespace create "RATE_LIMIT"
# Create D1 database
wrangler d1 create chittyconnect
# Create queue
wrangler queues create github-events
# Update wrangler.toml with the created IDs# Set ChittyOS service tokens
wrangler secret put CHITTY_ID_TOKEN
wrangler secret put CHITTY_AUTH_TOKEN
wrangler secret put CHITTY_CASES_TOKEN
wrangler secret put CHITTY_FINANCE_TOKEN
wrangler secret put CHITTY_EVIDENCE_TOKEN
wrangler secret put CHITTY_SYNC_TOKEN
wrangler secret put CHITTY_CHRONICLE_TOKEN
wrangler secret put CHITTY_CONTEXTUAL_TOKEN
wrangler secret put CHITTY_REGISTRY_TOKEN
# Set third-party API keys
wrangler secret put NOTION_TOKEN
wrangler secret put OPENAI_API_KEY
wrangler secret put GOOGLE_ACCESS_TOKEN
wrangler secret put NEON_DATABASE_URL
# Set GitHub App credentials (optional)
wrangler secret put GITHUB_APP_ID
wrangler secret put GITHUB_APP_PK
wrangler secret put GITHUB_WEBHOOK_SECRET# Deploy to staging
npm run deploy:staging
# Deploy to production
npm run deploy:production- Package name:
@chittyos/chittyconnect - Follows semantic versioning.
- Published files are restricted via
filesinpackage.jsonand.npmignore.
MIT Β© ChittyOS
-
Get the OpenAPI spec:
https://connect.chitty.cc/openapi.json -
Configure Custom GPT:
- Go to ChatGPT β Create GPT β Configure β Actions
- Import schema from
https://connect.chitty.cc/openapi.json - Set authentication type to "API Key"
- Add header:
X-ChittyOS-API-Key
-
Generate API key:
node scripts/generate-api-key.js
-
Test the integration:
"Check the status of all ChittyOS services" "Mint a new ChittyID for a PLACE entity" "Create a legal case for an eviction proceeding"
-
Add to Claude Code MCP settings:
{ "mcpServers": { "chittyconnect": { "url": "https://connect.chitty.cc/mcp", "transport": "http" } } } -
Available MCP resources:
chitty://services/status- Real-time service healthchitty://registry/services- Service registrychitty://context/awareness- ContextConsciousnessβ’ state
-
Use MCP tools in Claude:
Use chittyid_mint to create a new ChittyID Use chitty_contextual_analyze to analyze this legal document Use chitty_services_status to check ecosystem health
# Health check
curl https://connect.chitty.cc/health
# Mint ChittyID
curl -X POST https://connect.chitty.cc/api/chittyid/mint \
-H "X-ChittyOS-API-Key: your-api-key" \
-H "Content-Type: application/json" \
-d '{"entity": "PLACE"}'
# Check services status
curl https://connect.chitty.cc/api/services/status \
-H "X-ChittyOS-API-Key: your-api-key"
# Query Notion
curl -X POST https://connect.chitty.cc/api/thirdparty/notion/query \
-H "X-ChittyOS-API-Key: your-api-key" \
-H "Content-Type: application/json" \
-d '{"databaseId": "your-database-id"}'POST /api/chittyid/mint- Mint new ChittyIDPOST /api/chittyid/validate- Validate ChittyIDGET /api/chittyid/:id- Get ChittyID details
POST /api/chittycases/create- Create legal caseGET /api/chittycases/:caseId- Get case detailsPUT /api/chittycases/:caseId- Update case
GET /api/chittyfinance/account/balance- Get balancePOST /api/chittyfinance/banking/connect- Connect bankGET /api/chittyfinance/accounts- List accountsPOST /api/chittyfinance/transactions- Get transactions
POST /api/chittycontextual/analyze- Contextual analysisPOST /api/chittycontextual/extract- Extract entities
POST /api/chittychronicle/log- Log eventGET /api/chittychronicle/query- Query eventsGET /api/chittychronicle/timeline/:entityId- Get timeline
POST /api/chittysync/sync- Trigger syncGET /api/chittysync/status/:syncId- Get sync statusGET /api/chittysync/history- Get sync history
POST /api/chittyevidence/ingest- Ingest evidenceGET /api/chittyevidence/:evidenceId- Get evidence details
GET /api/services/status- All services statusGET /api/services/:serviceId/status- Specific serviceGET /api/registry/services- List registryGET /api/registry/services/:serviceId- Service details
POST /api/thirdparty/notion/query- Query NotionPOST /api/thirdparty/notion/page/create- Create pagePOST /api/thirdparty/neon/query- SQL queryPOST /api/thirdparty/openai/chat- OpenAI chatPOST /api/thirdparty/cloudflare/ai/run- Cloudflare AIGET /api/thirdparty/google/calendar/events- Calendar events
GET /mcp/manifest- Server manifestGET /mcp/tools/list- Available toolsPOST /mcp/tools/call- Execute toolGET /mcp/resources/list- Available resourcesGET /mcp/resources/read- Read resource
Generate API keys:
node scripts/generate-api-key.jsStore in KV:
wrangler kv:key put --binding=API_KEYS "key:your-api-key" \
'{"status":"active","rateLimit":1000,"name":"My GPT"}'Default: 1000 requests per minute per API key
Configure per-key limits in KV:
{
"status": "active",
"rateLimit": 5000,
"name": "Premium API Key"
}βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
β ChittyConnect β
β itsChittyβ’ - The AI Spine β
β ContextConsciousness & MemoryCloude β
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
β
ββββββββββββββββββββΌβββββββββββββββββββ
β β β
βββββΌβββββ βββββββΌββββββ βββββββΌββββββ
β API β β MCP β β GitHub β
β Router β β Server β β App β
βββββ¬βββββ βββββββ¬ββββββ βββββββ¬ββββββ
β β β
βββββΌββββββββββββββββββΌβββββββββββββββββββΌββββ
β ChittyOS Services Layer β
ββββββββββββββββββββββββββββββββββββββββββββββ€
β ChittyID β ChittyCases β ChittyFinance β
β ChittyAuth β ChittyEvidence β ChittySync β
β ChittyChronicle β ChittyContextual β
ββββββββββββββββββββββββββββββββββββββββββββββ
β
ββββββββββββββββββββββββΌβββββββββββββββββββββ
β Third-Party Integration Layer β
βββββββββββββββββββββββββββββββββββββββββββββ€
β Notion β Neon β OpenAI β Google β CF AI β
βββββββββββββββββββββββββββββββββββββββββββββ
# Start development server
npm run dev
# Run tests
npm test
# Lint code
npm run lint
# Format code
npm run format# Main health
curl https://connect.chitty.cc/health
# API health
curl https://connect.chitty.cc/api/health
# MCP manifest
curl https://connect.chitty.cc/mcp/manifestCloudflare Analytics and Workers Observability enabled by default.
Monitor:
- Request rates
- Error rates
- Latency
- Third-party API usage
The ContextConsciousnessβ’ system provides:
- Cross-Service Awareness - Real-time knowledge of all service states
- Contextual Analysis - Deep understanding of legal, financial, and relational context
- Intelligent Routing - Automatic routing to optimal services
- State Persistence - MemoryCloude maintains conversational context
Query current state:
curl https://connect.chitty.cc/mcp/resources/read?uri=chitty://context/awareness \
-H "X-ChittyOS-API-Key: your-api-key"This is a core ChittyOS infrastructure component. Changes require review.
MIT License - ChittyOS
- ChittyOS Docs: https://docs.chitty.cc
- API Documentation: https://connect.chitty.cc/openapi.json
- MCP Manifest: https://connect.chitty.cc/mcp/manifest
- Support: support@chitty.cc
itsChittyβ’ - Now with ContextConsciousness & MemoryCloude