VS Code Configuration
Setup guide for VS Code with Task Genius MCP
This guide shows you how to configure VS Code to work with your Task Genius tasks using Model Context Protocol (MCP).
Prerequisites
- VS Code 1.102 or later
- GitHub Copilot access
- Task Genius MCP server enabled in Obsidian
- Your authentication credentials from Task Genius settings
Quick Setup
The fastest way to add Task Genius to VS Code:
Step 1: Enable MCP Support
MCP support is enabled by default in VS Code. Verify with:
- Open Settings (
Cmd/Ctrl + ,
) - Search for
chat.mcp.enabled
- Ensure it's checked
Step 2: Add Task Genius Server
Run the command from Command Palette (Cmd/Ctrl + Shift + P
):
Choose:
- Server Type: HTTP
- Name:
task-genius
- URL:
http://127.0.0.1:7777/mcp
- Scope: Workspace or Global
Step 3: Configure Authentication
Add authentication header in the configuration dialog:
- Header Name:
Authorization
- Header Value:
Bearer YOUR_TOKEN+YOUR_APP_ID
Manual Configuration
Workspace Configuration
Create .vscode/mcp.json
in your project:
Global Configuration
For all workspaces, run:
Or create/edit ~/mcp.json
:
Using Task Genius in VS Code
Agent Mode
- Open Chat view (
Ctrl/Cmd + Shift + I
) - Select Agent mode from dropdown
- Click Tools to see Task Genius tools
- Start chatting about your tasks
Common Operations
Direct Tool Reference
Type #
in chat to directly reference tools:
Tool Sets
Group frequently used tools:
- Create a tool set in settings
- Name it (e.g., "daily-review")
- Add Task Genius tools
- Reference with
#daily-review
in chat
Advanced Configuration
Multiple Vaults
Secure Credentials
Use input variables to avoid hardcoding tokens:
Dev Container Support
Add to .devcontainer/devcontainer.json
:
Settings & Features
Auto-start Servers
Enable automatic server start:
Tool Confirmation
Control tool execution approval:
- Always ask: Default, confirms each tool use
- Auto-confirm specific tools: Use dropdown in confirmation dialog
- Trust all: Enable in settings (use with caution)
Manage Servers
Access server management:
- Extensions View:
MCP SERVERS - INSTALLED
section - Command Palette:
MCP: List Servers
- Configuration File: Click inline actions in
mcp.json
Available actions:
- Start/Stop server
- View logs
- Reset cached tools
- Test connection
- Uninstall
Troubleshooting
Connection Issues
-
Verify Task Genius MCP is running:
-
Check VS Code MCP status:
-
View server logs:
Authentication Errors
Error | Solution |
---|---|
"401 Unauthorized" | Regenerate token in Obsidian settings |
"Invalid header format" | Use format: Bearer TOKEN+APPID |
"Connection refused" | Ensure MCP server is enabled in Task Genius |
Tools Not Available
-
Refresh tools cache:
-
Restart server:
-
Check tool limit:
- Maximum 128 tools per request
- Deselect unused tools in Tools picker
Best Practices
Performance
- Be specific in queries for faster responses
- Use tool sets for common operations
- Enable virtual tools for large tool collections:
Security
- Store credentials using input variables
- Use workspace settings for project-specific tasks
- Never commit
mcp.json
with credentials - Regularly regenerate authentication tokens
Workflow Tips
-
Daily Review:
- Create "daily-review" tool set
- Include query_tasks, update_task_status tools
- Quick access with
#daily-review
-
Project Management:
- Workspace-specific configuration per project
- Use project tags in Task Genius
- Filter by project in queries
-
Quick Capture:
- Set up keyboard shortcut for Chat view
- Use
#task-genius.create_task
for quick entry - Enable auto-start for instant access
Integration Examples
With Git Workflows
With Development Tasks
With Team Collaboration
Next Steps
- Explore Task Genius use cases for workflow ideas
- Check the API reference for all available operations
- Learn about MCP prompts and resources
- See troubleshooting guide for detailed solutions
Pro Tip: Start with Agent mode and the Tools picker to explore Task Genius capabilities before creating custom tool sets.