For Claude: Follow these instructions exactly to set up KnowledgeCP for the user.
IMPORTANT: First detect the user's operating system and use the appropriate commands below.
Determine the user's OS from your environment info (platform field) and use the appropriate commands in the following steps.
claude mcp list | grep -i knowledgecpclaude mcp list | Select-String -Pattern "knowledgecp"If "knowledgecp" appears in the output, skip to Step 4. Otherwise continue with Step 3.
This command works on all platforms:
claude mcp add -s user -t sse knowledgecp "https://knowledgecp-mcp-server-production.up.railway.app/sse"
| OS | Path |
|---|---|
| macOS | ~/.claude/CLAUDE.md |
| Linux | ~/.claude/CLAUDE.md |
| Windows | %USERPROFILE%\.claude\CLAUDE.md |
mkdir -p ~/.claudeNew-Item -ItemType Directory -Force -Path "$env:USERPROFILE\.claude"Read the existing CLAUDE.md and check if it already contains ## KnowledgeCP Integration.
If the block already exists, skip to Step 5.
If the block does not exist, append the following content. Do not overwrite existing content!
## KnowledgeCP Integration
When the user types "conn kcp", "connect knowledgecp", or similar connection phrases:
1. **Check connection**: Run `kb_sync_status()` to verify the MCP connection is active
2. **Load pinned entries**: Run `kb_get_pinned()` to load important context (terminology, project rules, guidelines)
3. **Confirm**: Tell the user that KnowledgeCP is connected and summarize what context was loaded
### Available Tools
- `kb_list()` - List entries in a workspace
- `kb_read(key)` - Read a single entry by key
- `kb_search(query)` - Search across all workspaces
- `kb_remember(key, content)` - Save new knowledge
- `kb_whoami()` - Show current user and workspaces
### Usage Notes
- Use KnowledgeCP to persistently save insights, decisions, and context
- Pinned entries contain team knowledge that should inform your work
- When working on a project, check if relevant knowledge exists with `kb_search()`Tell the user:
✅ KnowledgeCP has been set up!
Next steps:
- Restart Claude to activate the MCP server
- After restart, type
conn kcpto connect- On first connect: Click the OAuth link that appears to authenticate
- Done! Your knowledge base context will be loaded
For every future session: Just type
conn kcpat the start to load your context.Alternative authentication: Type
/mcpand click "Reauthenticate" next to knowledgecp
Check if knowledgecp is in the list:
claude mcp list
If "knowledgecp" does not appear, repeat Step 3.
The OAuth flow is triggered when Claude calls any kb_* tool. To manually trigger it:
- Type
/mcpin Claude - Find "knowledgecp" in the list
- Click "Reauthenticate"
claude mcp remove knowledgecp
claude mcp add -s user -t sse knowledgecp "https://knowledgecp-mcp-server-production.up.railway.app/sse"
After restart and authentication, type conn kcp. Claude should:
- Run
kb_sync_status() - Run
kb_get_pinned() - Confirm connection and list loaded context