Claude Code Configuration
Setup guide for Claude Code CLI with Task Genius MCP
This guide shows you how to configure Claude Code to work with your Task Genius tasks directly from the command line.
Prerequisites
- Claude Code installed (installation guide)
- Task Genius MCP server enabled in Obsidian
- Your authentication credentials from Task Genius settings
Quick Setup
Add Task Genius to Claude Code with one command:
That's it! You can now manage your Obsidian tasks from Claude Code.
Verify Your Setup
After adding Task Genius, test the connection:
You should see:
Basic Commands
Multiple Vaults
If you have multiple Obsidian vaults with Task Genius:
Using Task Genius with Claude Code
Interactive Session
Start Claude Code connected to your tasks:
Common Task Operations
Task Genius Specific Features
Productivity Tips
Shell Aliases
Add these to your ~/.bashrc
or ~/.zshrc
for quick access:
Usage:
Environment Variables
Store credentials securely:
Troubleshooting
Connection Failed
-
Check Task Genius MCP is enabled:
- Open Obsidian → Task Genius Settings → MCP Integration
- Ensure server is running (green status)
-
Verify port availability:
-
Test connection:
Authentication Issues
Common Issues
- "Connection refused": Task Genius MCP server not running
- "401 Unauthorized": Invalid token or App ID
- "No tools available": Server running but not properly configured
- Timeout errors: Large vault - increase timeout with
--timeout 60000
Quick Reference
Essential Commands
Task Genius MCP Tools
Available operations through Claude Code:
- Query tasks (by date, project, context, priority)
- Create tasks (with due dates, priorities, tags)
- Update task status (complete, postpone, delete)
- Batch operations (update multiple tasks)
- Daily note integration
- Project and context management
Best Practices
- Use aliases for frequent operations (see Productivity Tips)
- Store credentials in environment variables, not in commands
- Be specific in queries to get better results
- Use projects and contexts to organize tasks effectively
- Batch similar operations for better performance
Next Steps
- Explore Task Genius use cases for workflow ideas
- Check the API reference for all available operations
- See troubleshooting guide if you encounter issues
Pro Tip: Start with simple queries like "Show today's tasks" to get familiar with Task Genius through Claude Code.