clear-tangle-mcp
v1.0.0
Published
MCP server for Clear Tangle - provides AI assistants access to tasks, thoughts, and plans
Maintainers
Readme
Clear Tangle MCP Server
A Model Context Protocol (MCP) server for the Clear Tangle API - enabling AI assistants to manage tasks, capture thoughts, and generate AI-powered plans.
Installation
Using npx (Recommended)
No installation required - run directly:
npx clear-tangle-mcpInstall from npm
npm install -g clear-tangle-mcpManual Installation
git clone https://github.com/your-org/clear-tangle-mcp.git
cd clear-tangle-mcp
npm installConfiguration
Claude Desktop
Add to your Claude Desktop configuration file:
macOS: ~/Library/Application Support/Claude/claude_desktop_config.json
Windows: %APPDATA%\Claude\claude_desktop_config.json
Linux: ~/.config/claude/claude_desktop_config.json
{
"mcpServers": {
"clear-tangle": {
"command": "npx",
"args": ["-y", "clear-tangle-mcp"]
}
}
}Cursor
Add to Cursor's MCP settings (Settings > MCP Servers):
{
"mcpServers": {
"clear-tangle": {
"command": "npx",
"args": ["-y", "clear-tangle-mcp"]
}
}
}Kiro
Add to ~/.kiro/mcp-servers.json:
{
"servers": {
"clear-tangle": {
"command": "npx",
"args": ["-y", "clear-tangle-mcp"]
}
}
}With Auto-Login Credentials
For automated setups, add credentials to your MCP config:
{
"mcpServers": {
"clear-tangle": {
"command": "npx",
"args": ["-y", "clear-tangle-mcp"],
"env": {
"CLEARTANGLE_USERNAME": "[email protected]",
"CLEARTANGLE_PASSWORD": "your-password"
}
}
}
}Components
Tools (20 total)
Authentication Tools
authenticate
- Start browser-based OAuth login
- Opens browser, user logs in, token is captured automatically
- No input required
login_with_credentials
- Login with email and password
- Inputs:
username(optional): Email address (uses env var if not provided)password(optional): Password (uses env var if not provided)
set_token
- Manually set an authentication token
- Inputs:
token(required): The authentication token
check_auth
- Check current authentication status
- No input required
test_connection
- Test backend connectivity and diagnose issues
- No input required
logout
- Clear authentication and saved credentials
- No input required
Task Tools
list_tasks
- List all tasks with optional filters
- Inputs:
status(optional): Filter by status (pending,in_progress,completed,cancelled)priority(optional): Filter by priority (critical,high,medium,low)category(optional): Filter by category name
get_task
- Get details of a specific task
- Inputs:
id(required): Task ID (UUID)
create_task
- Create a new task
- Inputs:
title(required): Task titledescription(optional): Task descriptiondue_date(optional): Due date in YYYY-MM-DD formatdue_time(optional): Due time in HH:MM formatpriority(optional): Priority level (default:medium)category(optional): Category name
update_task
- Update an existing task
- Inputs:
id(required): Task ID (UUID)title(optional): New titledescription(optional): New descriptiondue_date(optional): New due datedue_time(optional): New due timepriority(optional): New prioritystatus(optional): New statuscategory(optional): New category
complete_task
- Mark a task as completed
- Inputs:
id(required): Task ID (UUID)
delete_task
- Delete a task
- Inputs:
id(required): Task ID (UUID)
get_tasks_dashboard
- Get tasks organized by timeframe (today, this week, upcoming, overdue)
- No input required
Thought Tools
list_thoughts
- List all captured thoughts
- Inputs:
limit(optional): Maximum number of thoughts to return
get_thought
- Get a specific thought by ID
- Inputs:
id(required): Thought ID (UUID)
capture_thought
- Capture a new thought or idea
- Inputs:
content(required): The thought content
update_thought
- Update an existing thought
- Inputs:
id(required): Thought ID (UUID)content(required): New thought content
delete_thought
- Delete a thought
- Inputs:
id(required): Thought ID (UUID)
Plan Tools
get_plan
- Get the current AI-generated priority plan
- No input required
generate_plan
- Generate a new AI priority plan based on current tasks
- Inputs:
context(optional): Additional context for plan generation (e.g., "Focus on work tasks today")
Usage Examples
Authenticate with Clear Tangle
Authenticate me with Clear TangleManage Tasks
List my tasks
Create a task called "Review PR #123" with high priority
Show me my tasks due this week
Update task abc-123 to set priority to critical
Mark task abc-123 as completed
Delete task abc-123Capture Thoughts
Capture a thought: "Remember to update the documentation"
List my recent thoughts
Delete thought xyz-456Generate Plans
Generate a priority plan for today
Generate a plan focused on work tasks
Show me my current planEnvironment Variables
| Variable | Description | Default |
|----------|-------------|---------|
| CLEARTANGLE_USERNAME | Auto-login email | (none) |
| CLEARTANGLE_PASSWORD | Auto-login password | (none) |
Development
Setup
git clone https://github.com/your-org/clear-tangle-mcp.git
cd clear-tangle-mcp
npm installRunning Locally
# Start the server
npm start
# Start in development mode (with file watching)
npm run devTesting
# Run all tests
npm test
# Run tests in watch mode
npm run test:watch
# Run tests with coverage
npm run test:coverage
# Run authentication tests
npm run test:authLinting
npm run lintProject Structure
clear-tangle-mcp/
├── src/
│ ├── index.js # Main MCP server implementation
│ └── test/
│ ├── index.test.js # Comprehensive test suite
│ └── auth_test.js # Authentication tests
├── docs/
│ ├── MCP_SERVER_CONFIG.md # Configuration reference
│ └── MCP_INTEGRATION_GUIDE.md # Integration guide
├── package.json
├── vitest.config.js
└── README.mdSecurity
- Token Storage: Tokens are stored locally at
~/.clear-tangle-mcp/token.json - Automatic Expiry: Tokens expire after 24 hours
- Secure Credentials: Use environment variables for auto-login, never commit credentials
Troubleshooting
"Not authenticated" Error
Run the authentication tool:
Authenticate me with Clear Tangle"Cannot connect to backend" Error
- Check your network connection
- Verify
BACKEND_URLis correct - Run
test_connectiontool to diagnose
Token Expired
Tokens expire after 24 hours. Re-authenticate when prompted.
MCP Server Not Starting
- Ensure Node.js >= 18 is installed:
node --version - Verify the config JSON is valid
- Check that the path to the server is correct
License
MIT License - see LICENSE for details.
