MCP Integration
Connect Knowns with Claude Desktop using Model Context Protocol
Claude Desktop MCP Integration
Integrate Knowns with Claude Desktop for seamless AI-assisted development.
What is MCP?
Model Context Protocol (MCP) is a standard for connecting AI assistants to external tools and data sources. Knowns implements an MCP server that allows Claude to read and manage your tasks and documentation directly.
Setup
1. Install Knowns
# Using npm
npm install -g knowns
# Or using bun (recommended)
bun install -g knowns2. Configure Claude Desktop
Edit Claude's configuration file:
macOS:
~/Library/Application Support/Claude/claude_desktop_config.jsonWindows:
%APPDATA%\Claude\claude_desktop_config.jsonAdd the Knowns MCP server:
{
"mcpServers": {
"knowns": {
"command": "knowns",
"args": ["mcp"],
"cwd": "/path/to/your/project"
}
}
}Note: Replace
/path/to/your/projectwith your actual project path where.knowns/folder exists.
3. Restart Claude Desktop
Close and reopen Claude Desktop to load the new configuration.
Usage
Once configured, Claude can access your Knowns data automatically.
Example Conversation
You: "Start working on task 42"
Claude: [Reads task via MCP]
"I see task #42 'Add user authentication' with these acceptance criteria:
- User can login with email/password
- JWT token is returned on success
- Invalid credentials return 401
The description references @doc/patterns/auth. Let me check that..."
[Fetches patterns/auth.md via MCP]
"Got it! The auth pattern uses JWT with 15-minute access tokens and
7-day refresh tokens. I'll implement following this pattern.
Starting timer and beginning implementation..."
[Starts time tracking via MCP]Available MCP Tools
Task Management
| Tool | Description | Parameters |
|---|---|---|
create_task | Create a new task | title, description?, status?, priority?, labels?, assignee? |
get_task | Get task by ID | taskId |
update_task | Update task fields | taskId, title?, description?, status?, priority?, assignee?, labels? |
list_tasks | List tasks with filters | status?, priority?, assignee?, label? |
search_tasks | Search tasks by query | query |
Time Tracking
| Tool | Description | Parameters |
|---|---|---|
start_time | Start timer for task | taskId |
stop_time | Stop active timer | taskId |
add_time | Manual time entry | taskId, duration, note?, date? |
get_time_report | Generate time report | from?, to?, groupBy? |
Documentation
| Tool | Description | Parameters |
|---|---|---|
list_docs | List all docs | tag? |
get_doc | Get doc content | path |
create_doc | Create new doc | title, description?, content?, tags?, folder? |
update_doc | Update doc | path, title?, description?, content?, appendContent?, tags? |
search_docs | Search docs | query, tag? |
Board
| Tool | Description | Parameters |
|---|---|---|
get_board | Get kanban board state | - |
Benefits
Zero Context Loss
- AI reads your docs directly - no copy-paste
- References (
@doc/...,@task-42) are resolved automatically - Project patterns are always available
Consistent Implementations
- AI follows your documented patterns every time
- Same conventions across all sessions
- No more "how does your auth work?" questions
Perfect Memory
- Documentation persists between sessions
- AI can reference any past decision
- Knowledge doesn't live in chat history
Time Tracking Integration
- AI can start/stop timers automatically
- Track time spent on each task
- Generate reports for retrospectives
Troubleshooting
Claude doesn't see Knowns
- Verify installation:
knowns --version - Check config file path is correct
- Ensure JSON syntax is valid
- Verify
cwdpoints to a valid project with.knowns/folder - Restart Claude Desktop completely
MCP server not starting
Run manually to check for errors:
knowns mcp --verboseTools not appearing
Check if project is initialized:
cd your-project
knowns init # if not already doneShow MCP configuration info
knowns mcp --infoAlternative: --plain Output
If you're not using Claude Desktop, use --plain flag for AI-readable output:
knowns task 42 --plain | pbcopy # Copy to clipboard
knowns doc "auth-pattern" --plainThen paste into any AI assistant.