7pace-mcp-server
v1.0.6
Published
๐ AI-powered time tracking MCP server for 7pace Timetracker & Azure DevOps. Track time naturally with Claude AI using conversational commands. Zero context switching, real-time sync.
Downloads
30
Maintainers
Readme
๐ 7pace Timetracker MCP Server
- Supercharge your Azure DevOps workflow with intelligent time tracking through AI assistants
Transform your development workflow with seamless time tracking that speaks your language โ literally.
๐ฏ Quick Start โข โจ Features โข ๐ Documentation โข ๐ค Contributing
๐ฏ Why 7pace MCP?
"Stop context switching. Start smart tracking."
Traditional time tracking tools interrupt your flow. Our MCP server integrates directly into Claude AI, letting you track time using natural language without leaving your coding environment.
๐ฅ The Problem We Solve
- โ Context Switching: Jumping between IDE โ Browser โ Time Tracker
- โ Manual Entry: Remembering what you worked on hours later
- โ Workflow Disruption: Breaking focus to log time
- โ Data Silos: Time tracking disconnected from your actual work
โ Our Solution
- โจ Natural Language: "Log 2 hours on work item 7128 for API refactoring"
- โก Zero Context Switch: Track time directly in Claude AI
- ๐ Real-time Sync: Instant Azure DevOps integration
- ๐ Smart Reports: AI-powered insights into your productivity
โจ Features
๐ฏ Core Functionality
- ๐ Smart Time Logging - Natural language time entry
- ๐ Worklog Management - View, edit, delete entries
- ๐ Intelligent Reports - Automated time analysis
- ๐ Advanced Filtering - Date ranges, work items, users
- โ๏ธ Activity Types - Automatic resolution by name or ID
๐ Developer Experience
- ๐ฃ๏ธ Conversational Interface - Chat with your time tracker
- โก Instant Setup - One-line NPX installation
- ๐ Real-time Sync - Live Azure DevOps integration
- ๐ก๏ธ Type Safety - Full TypeScript support
- ๐ฑ Universal Access - Works in Cursor, VS Code, and more
๐ Quick Start
Option 1: Smithery (Easiest)
# Install via Smithery CLI
npx -y @smithery/cli install @turnono/sevenpace-mcp-server --client claudeOption 2: NPX (Direct)
# Add to your MCP configuration
npx -y github:turnono/7pace-mcp-serverOption 3: Clone & Build
git clone https://github.com/turnono/7pace-mcp-server.git
cd 7pace-mcp-server
npm install && npm run build๐ง Configuration
For Cursor IDE:
{
"mcpServers": {
"7pace-timetracker": {
"command": "npx",
"args": ["-y", "github:turnono/7pace-mcp-server"],
"env": {
"SEVENPACE_ORGANIZATION": "your-org",
"SEVENPACE_TOKEN": "your-token"
}
}
}
}For VS Code:
Create .vscode/mcp.json:
{
"servers": {
"7pace-timetracker": {
"type": "stdio",
"command": "npx",
"args": ["-y", "github:turnono/7pace-mcp-server"],
"env": {
"SEVENPACE_ORGANIZATION": "your-org",
"SEVENPACE_TOKEN": "your-token"
}
}
}
}๐ฎ Usage Examples
Natural Language Time Tracking
๐ฌ You: "Log 3 hours on work item 1234 for yesterday's database optimization work"
๐ค Claude: โ
Time logged successfully!
Work Item: #1234
Date: 2024-01-15
Hours: 3
Description: database optimization workSmart Reporting
๐ฌ You: "Show me my time report for last week"
๐ค Claude: ๐ Time Report (2024-01-08 to 2024-01-14)
Total Hours: 37.5
Total Entries: 12
Top Work Items: #1234 (8hrs), #5678 (6hrs)Intelligent Queries
๐ฌ You: "What did I work on yesterday?"
๐ค Claude: ๐ Time Logs (3 entries)
- Work Item #1234: API Development (4 hours)
- Work Item #5678: Bug Fixes (2.5 hours)
- Work Item #9012: Code Review (1 hour)๐ API Reference
Parameters:
workItemId(number): Azure DevOps Work Item IDdate(string): Date in YYYY-MM-DD formathours(number): Hours workeddescription(string): Work descriptionactivityType(string, optional): Activity type name or ID
Note: The server calls 7pace using date, length and billableLength (seconds) with comment. You only provide hours; conversion is handled for you.
Example:
await log_time({
workItemId: 7128,
date: "2024-01-15",
hours: 2.5,
description: "API endpoint development",
});Parameters:
workItemId(number, optional): Filter by work itemstartDate(string, optional): Start date filterendDate(string, optional): End date filter
Example:
await get_worklogs({
startDate: "2024-01-01",
endDate: "2024-01-31",
workItemId: 1234,
});Returns a text list of activity type IDs and names from 7pace so you can pick a valid GUID if your org requires it.
await list_activity_types();
// โ 00000000-0000-0000-0000-000000000001 - Development
// 00000000-0000-0000-0000-000000000002 - TestingParameters:
worklogId(string): ID of worklog to updatehours(number, optional): New hoursdescription(string, optional): New descriptionworkItemId(number, optional): New work item ID
Parameters:
worklogId(string): ID of worklog to delete
Parameters:
startDate(string): Start date in YYYY-MM-DD formatendDate(string): End date in YYYY-MM-DD formatuserId(string, optional): Filter by user
๐ Setup Guide
1. Get Your 7pace API Token
- Navigate to Azure DevOps โ 7pace Timetracker
- Go to Settings โ API & Reporting
- Click "Create New Token"
- Copy the token for your environment configuration
2. Environment Variables
# Required
export SEVENPACE_ORGANIZATION="your-org-name"
export SEVENPACE_TOKEN="your-api-token"
# Optional
export AZURE_DEVOPS_ORG_URL="https://dev.azure.com/your-org"
export AZURE_DEVOPS_PAT="your-devops-pat"
# Increase write timeout (ms) for slow networks (default 30000)
export SEVENPACE_WRITE_TIMEOUT_MS=450003. Test Your Setup
# Verify connection
npm run test
# Start in development mode
npm run dev๐๏ธ Architecture
graph TB
A[Claude AI] --> B[MCP Protocol]
B --> C[7pace MCP Server]
C --> D[7pace API]
C --> E[Azure DevOps API]
D --> F[Time Tracking Data]
E --> G[Work Items]Key Components:
- MCP Server: Handles protocol communication and business logic
- 7pace Service: Manages API interactions and data transformation
- Activity Type Resolution: Smart matching of activity names to IDs
- Error Handling: Comprehensive validation and user-friendly messages
๐ Advanced Usage
Custom Activity Types
// Set default activity type
export SEVENPACE_DEFAULT_ACTIVITY_TYPE_ID="12345"
// Use activity names (auto-resolved)
log_time({
workItemId: 1234,
activityType: "Code Review", // Automatically resolves to ID
// ... other params
});Bulk Operations
// Generate comprehensive reports
generate_time_report({
startDate: "2024-01-01",
endDate: "2024-12-31",
userId: "specific-user-id",
});Integration Patterns
- Sprint Planning: Generate reports for sprint retrospectives
- Client Billing: Export time data for invoicing
- Performance Analysis: Track productivity trends
- Compliance Reporting: Automated time tracking audit trails
๐ค Contributing
We welcome contributions! Here's how to get started:
Development Setup
git clone https://github.com/turnono/7pace-mcp-server.git
cd 7pace-mcp-server
npm install
npm run devContributing Guidelines
- ๐ Bug Reports: Use GitHub Issues with detailed reproduction steps
- โจ Feature Requests: Describe your use case and proposed solution
- ๐ง Pull Requests: Include tests and update documentation
- ๐ Documentation: Help improve our guides and examples
Development Commands
npm run build # Compile TypeScript
npm run dev # Development mode with hot reload
npm run test # Run test suite
npm start # Production mode๐ Roadmap
๐ Coming Soon
- [ ] Web Dashboard: Visual time tracking interface
- [ ] Slack Integration: Time tracking via Slack commands
- [ ] Mobile Support: Companion mobile app
- [ ] Advanced Analytics: AI-powered productivity insights
- [ ] Team Management: Multi-user organization features
๐ฏ Long-term Vision
- [ ] Cross-platform MCP: Support for other time tracking tools
- [ ] AI Suggestions: Intelligent work categorization
- [ ] Workflow Automation: Auto-tracking based on git commits
- [ ] Enterprise Features: SSO, audit logs, compliance reporting
๐ Performance & Reliability
- โก Fast Response Times: < 200ms average API response
- ๐ Smart Caching: 5-minute activity type cache for performance
- ๐ก๏ธ Error Recovery: Graceful handling of API failures
- ๐ Scalable: Handles high-volume time tracking workflows
- ๐ Secure: Token-based authentication with environment isolation
๐ Community & Support
Join Our Community
Have questions? Open a GitHub Discussion
Found a bug? Report it in Issues
Need help? Check our Documentation
๐ License
This project is licensed under the MIT License - see the LICENSE file for details.
Made with โค๏ธ by developers, for developers
โญ Star this repo if it helped you track time more efficiently!
