A demo app that shows how HCP could be built with Auth, LLM control, and database management
https://github.com/tobinsouth/hcp-demo-old-v0.git
A research demo of the Human Context Protocol, introduced in "Robust AI Personalization Will Require a Human Context Protocol", a paper under review at NeurIPS 2025.
# Install pnpm if you haven't already
npm install -g pnpm
# Install project dependencies
pnpm install
OPENAI_API_KEY=your_openai_api_key
DATABASE_URL="file:./dev.db"
brew install redis
brew services start redis
sudo apt-get install redis-server
sudo systemctl start redis-server
b. Set up Prisma:
# Initialize the database
pnpm prisma generate
pnpm prisma db push
Note: The project uses SQLite as the database provider (configured in prisma/schema.prisma), so no additional database installation is required. The database file will be created at prisma/dev.db.
pnpm dev
Open http://localhost:3000 with your browser to see the UI demo.
Once your AI client has picked up the server (e.g., Cursor:Settings/Cursor Settings/MCP) you can simple ask the agent to update your preferences.
The simplest way to access MCP servers is via Cursor. You will find the code requried to access a workspace MCP server in .cursor/mcp.json. If you do not have access to cursor as an MCP client, this JSON will work with any other client that supports MCP (e.g., claude desktop, goose). The Connect to MCP button in the demo explains more.
The demo uses WorkOS AuthKit for authentication, implemented in lib/with-authkit.ts. For development and demonstration purposes, the authentication is simplified with a debug user. In production, you should:
.env a WORKOS_API_KEY, WORKOS_CLIENT_ID, WORKOS_COOKIE_PASSWORD
lib/with-authkit.ts by uncommenting the production authentication code and removing the debug user object./app: Next.js application routes and pages/components: React components/lib: Utility functions and database configuration/prisma: Database schema and migrations