MCP Integration

Connect Knowns with Claude Desktop using Model Context Protocol

4 min read

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 knowns

2. Configure Claude Desktop

Edit Claude's configuration file:

macOS:

~/Library/Application Support/Claude/claude_desktop_config.json

Windows:

%APPDATA%\Claude\claude_desktop_config.json

Add the Knowns MCP server:

{
  "mcpServers": {
    "knowns": {
      "command": "knowns",
      "args": ["mcp"],
      "cwd": "/path/to/your/project"
    }
  }
}

Note: Replace /path/to/your/project with 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

ToolDescriptionParameters
create_taskCreate a new tasktitle, description?, status?, priority?, labels?, assignee?
get_taskGet task by IDtaskId
update_taskUpdate task fieldstaskId, title?, description?, status?, priority?, assignee?, labels?
list_tasksList tasks with filtersstatus?, priority?, assignee?, label?
search_tasksSearch tasks by queryquery

Time Tracking

ToolDescriptionParameters
start_timeStart timer for tasktaskId
stop_timeStop active timertaskId
add_timeManual time entrytaskId, duration, note?, date?
get_time_reportGenerate time reportfrom?, to?, groupBy?

Documentation

ToolDescriptionParameters
list_docsList all docstag?
get_docGet doc contentpath
create_docCreate new doctitle, description?, content?, tags?, folder?
update_docUpdate docpath, title?, description?, content?, appendContent?, tags?
search_docsSearch docsquery, tag?

Board

ToolDescriptionParameters
get_boardGet 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

  1. Verify installation: knowns --version
  2. Check config file path is correct
  3. Ensure JSON syntax is valid
  4. Verify cwd points to a valid project with .knowns/ folder
  5. Restart Claude Desktop completely

MCP server not starting

Run manually to check for errors:

knowns mcp --verbose

Tools not appearing

Check if project is initialized:

cd your-project
knowns init  # if not already done

Show MCP configuration info

knowns mcp --info

Alternative: --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" --plain

Then paste into any AI assistant.

Resources