Access is the entry point for the Memact provider. It handles app registration, user consent, API key validation, and routes requests to the correct protocols.
Access is a server that acts as a gateway:
- Verifies API keys and user consent.
- Enforces permission scopes and category access.
- Exposes endpoints for context requests (CAP) and suggestions (CCP).
GET /health- Check server health and status.GET /v1/policy- List supported categories and safety rules.POST /v1/cap/request- Request a user context packet (CAP).POST /v1/contributions/propose- Propose a new context suggestion (CCP).GET /v1/credits- Check current API credit balances.
When an app requests context using CAP, Access checks if the app is registered and has user consent. It then queries the Memory store for the user's approved context, ranks any conflicting values by evidence, and returns the result.
To install and run tests:
npm install
npm testAccess is open source under the Apache 2.0 license.