Credentials. The generated API key grants the agent its namespace and role, so store it in a secret manager or environment variable and never commit it to source control.
Who it is forA developer whose team wants an AI coding or support agent to use shared organizational context without the agent asserting its own identity.
The problemAgents that send their own identity fields can claim access they should not have, and their actions are hard to trace.
The outcomeAn MCP-connected agent whose namespace, actor, and role are resolved from its API key, with every read, write, and denial recorded in the audit trail.
What you need first
- Git installed to clone the repository
- npm available to install and run the kernel
- A terminal on your machine; no API key or database server is needed for the offline demo
Steps
- Start the kernel folder with
cd kernel - Generate a key for the agent with
npx tsx src/cli.ts keygen org/support/agent-1 user:dana owner - Store the printed key in the HALOMEM_API_KEY environment variable as shown by the key output (format hm_...)
- Start the MCP server with
HALOMEM_API_KEY=hm_... npm run mcp - Point your agent's MCP client at the running server and run one memory search
Prompt for your agent
In the halofy repository, go to kernel, generate a key for namespace org/support/agent-1 with keygen, and start the MCP server with that key. Report the namespace and role the server resolves for the agent, and confirm that the MCP tool schemas do not accept caller-supplied identity fields.
Caveat. The README shows the keygen and MCP commands but does not show how a specific agent client is configured, so the connection step depends on that client's own MCP setup.
Use this in your AI agent
Ask your agent
Using the Deduped MCP, get the setup steps for halofyai/halofy and "Connect an AI agent to shared context over MCP"
Add Deduped to Claude Code once
claude mcp add --transport http deduped https://dedupedai.com/mcp
Every Monday: the 5 hottest repos and exactly how to use them. Free, one email a week, unsubscribe anytime.
Get them freeShare: X LinkedIn Hacker News Email Copy link
Third-party repos we don't own. AI-written use cases can be wrong. Disclaimer