README.mdβ’12.8 kB
# Float MCP Server
[](https://opensource.org/licenses/MIT)
[](https://www.typescriptlang.org/)
[](https://modelcontextprotocol.io/)
A comprehensive **Model Context Protocol (MCP) server** that provides seamless integration with [Float.com](https://float.com) - the resource management and project planning platform. This server exposes Float's complete API as MCP tools, enabling AI assistants like Claude to interact with Float for project management, resource allocation, time tracking, and team coordination.
## π Features
### **Complete Float API Coverage**
- **π₯ People Management** - Full CRUD operations for team members
- **π Project Management** - Projects, phases, tasks, and milestones
- **β±οΈ Time Tracking** - Logged time, timesheets, and billable hours
- **π Resource Allocation** - Team member assignments and scheduling
- **π― Task Management** - Project tasks, dependencies, and workflows
- **π’ Organization** - Departments, roles, accounts, and permissions
- **π
Time Off** - PTO requests, approvals, and holiday management
- **π Reports** - Time reports, utilization, and project analytics
### **Advanced Features**
- **π Rate Limiting** - Built-in API rate limiting with exponential backoff
- **π‘οΈ Type Safety** - Full TypeScript support with Zod schema validation
- **π Comprehensive Logging** - Detailed logging for debugging and monitoring
- **β‘ Performance** - Optimized for fast response times and efficient API usage
- **π§ͺ Testing** - Comprehensive integration test suite
- **π³ Docker Support** - Ready-to-deploy Docker container
## π Quick Start
### **Prerequisites**
- Node.js 22.0.0 or later
- Float.com account with API access
- Valid Float API key
### **1. Installation Options**
#### **A. DXT Extension (Recommended)**
For DXT-compatible environments, download the latest DXT package:
**[π¦ Download Float MCP Extension (.dxt)](https://github.com/asachs01/float-mcp/releases/latest)**
Install the `.dxt` file through your DXT-compatible application.
#### **B. Manual Installation**
```bash
# Using npm
npm install
# Using yarn
yarn install
```
### **2. Configuration**
Create a `.env` file in the project root:
```env
# Float API Configuration
FLOAT_API_KEY=your_float_api_key_here
FLOAT_API_BASE_URL=https://api.float.com/v3
# Optional: Enable debug logging
LOG_LEVEL=info
```
### **3. Build & Run**
```bash
# Build the project
npm run build
# Start the MCP server
npm start
# For development with auto-reload
npm run dev
```
### **4. MCP Client Integration**
#### **For DXT Installation**
After installing the DXT extension, configure your Float API key in the extension settings. The extension will handle the MCP server configuration automatically.
#### **For Manual Installation**
Add to your MCP client configuration (e.g., Claude Desktop):
```json
{
"mcpServers": {
"float-mcp": {
"command": "docker",
"args": [
"run",
"--rm",
"-i",
"-e",
"FLOAT_API_KEY=YOURAPIKEY",
"-e",
"LOG_LEVEL=debug",
"ghcr.io/asachs01/float-mcp:latest"
]
}
}
}
```
## π Available Tools
The Float MCP server provides **4 optimized decision-tree tools** that efficiently replace 246+ granular tools while maintaining complete functionality:
## **π§ Optimized Tools (Recommended)**
### **1. manage-entity** - Core Entity Management
Consolidates all CRUD operations for core entities with decision tree routing:
```typescript
manageEntity({
entity_type: "people" | "projects" | "tasks" | "clients" | "departments" | "roles" | "accounts" | "statuses",
operation: "list" | "get" | "create" | "update" | "delete" | "get-current-account" | "bulk-update-account-permissions",
// ... entity-specific parameters
})
```
**Replaces:** All CRUD tools for people, departments, roles, accounts, projects, tasks, clients, and statuses (~120 tools)
### **2. manage-project-workflow** - Project Operations
Handles all project-specific workflow operations:
```typescript
manageProjectWorkflow({
workflow_type: "phases" | "milestones" | "project-tasks" | "allocations",
operation: "list" | "get" | "create" | "update" | "delete" | "complete" | "archive" | "bulk-create" | "reorder",
// ... workflow-specific parameters
})
```
**Replaces:** Project phases, milestones, project tasks, allocations, dependencies, bulk operations (~60 tools)
### **3. manage-time-tracking** - Time Management
Manages all time-related operations with comprehensive reporting:
```typescript
manageTimeTracking({
tracking_type: "logged-time" | "timeoff" | "public-holidays" | "team-holidays",
operation: "list" | "get" | "create" | "update" | "delete" | "approve" | "reject" | "bulk-create",
report_type?: "person-summary" | "project-summary" | "timesheet" | "billable-analysis",
// ... time-specific parameters
})
```
**Replaces:** Logged time, time off, holidays, approvals, timesheets, summaries (~45 tools)
### **4. generate-report** - Analytics & Reporting
Comprehensive reporting and analytics engine:
```typescript
generateReport({
report_type: "time-report" | "project-report" | "people-utilization-report" | "capacity-report" | "budget-report",
// Advanced filtering and grouping options
group_by?: "person" | "project" | "client" | "department" | "date" | "week" | "month",
include_details?: boolean,
// ... extensive reporting parameters
})
```
**Replaces:** All reporting tools with advanced analytics, grouping, filtering (~20 tools)
## **π Optimization Benefits**
- **π₯ Massive Efficiency**: 246+ tools β 4 optimized tools (98.4% reduction)
- **π§ AI-Friendly**: Decision tree parameters instead of tool proliferation
- **β‘ Better Performance**: Consolidated API calls and reduced overhead
- **π Full Compatibility**: Zero functionality loss, complete backward compatibility
- **π οΈ Easier Maintenance**: Centralized logic with consistent patterns
## **π Legacy Tools (Backward Compatibility)**
All original 246+ granular tools remain available for backward compatibility:
### **Reporting & Analytics**
- **Reports**: `get-time-report`, `get-project-report`, `get-people-utilization-report`
- **Analytics**: `get-person-logged-time-summary`, `get-project-logged-time-summary`
## π§ Configuration
### **Environment Variables**
| Variable | Description | Required | Default |
| -------------------- | ------------------------------------------------ | -------- | -------------------------- |
| `FLOAT_API_KEY` | Your Float API key | β
Yes | - |
| `FLOAT_API_BASE_URL` | Float API base URL | β No | `https://api.float.com/v3` |
| `LOG_LEVEL` | Logging level (`error`, `warn`, `info`, `debug`) | β No | `info` |
| `MAX_RETRIES` | Maximum API retry attempts | β No | `3` |
| `REQUEST_TIMEOUT` | API request timeout (ms) | β No | `30000` |
### **Getting a Float API Key**
1. Log in to your Float account
2. Go to **Settings** > **API** > **Personal Access Tokens**
3. Click **Generate New Token**
4. Copy the API key
5. Add it to your `.env` file
## π Usage Examples
### **Basic Operations**
```typescript
// List all projects
const projects = await listProjects({});
// Get a specific project
const project = await getProject({ project_id: 12345 });
// Create a new person
const person = await createPerson({
name: 'John Doe',
email: 'john@example.com',
department_id: 1,
});
// Schedule an allocation
const allocation = await createAllocation({
project_id: 12345,
people_id: 67890,
start_date: '2024-01-15',
end_date: '2024-01-31',
hours: 8,
});
```
### **Advanced Workflows**
```typescript
// Get team utilization report
const utilization = await getPeopleUtilizationReport({
start_date: '2024-01-01',
end_date: '2024-12-31',
});
// Bulk create project tasks
const tasks = await bulkCreateProjectTasks({
project_id: 12345,
tasks: [
{ name: 'Design Phase', start_date: '2024-01-01' },
{ name: 'Development Phase', start_date: '2024-01-15' },
],
});
// Process time off request
await createTimeOff({
people_ids: [67890],
timeoff_type_id: 1,
start_date: '2024-02-01',
end_date: '2024-02-05',
status: 1, // Pending approval
});
await approveTimeOff({
timeoff_id: 123,
approved_by: 456,
notes: 'Approved for vacation',
});
```
## π§ͺ Testing
### **Running Tests**
```bash
# Run all tests
npm test
# Run integration tests (requires API key)
npm run test:integration
# Run tests with coverage
npm run test:coverage
# Run specific test suites
npm run test:integration:mock # Mock API responses
npm run test:integration:real # Real API calls (use with caution)
```
### **Test Configuration**
For integration tests with real API calls:
```env
# .env.test
FLOAT_API_KEY=flt_your_test_api_key
TEST_REAL_API=true
TEST_MOCK_MODE=false
```
## π³ Docker Support
### **Using Docker**
```bash
# Build the image
docker build -t float-mcp .
# Run the container
docker run -d \
--name float-mcp \
-e FLOAT_API_KEY=your_float_api_key_here \
-p 3000:3000 \
float-mcp
```
### **Docker Compose**
```yaml
version: '3.8'
services:
float-mcp:
build: .
environment:
- FLOAT_API_KEY=your_float_api_key_here
- LOG_LEVEL=info
ports:
- '3000:3000'
restart: unless-stopped
```
## π Troubleshooting
### **Common Issues**
**API Key Issues**
```bash
Error: Unauthorized (401)
# Solution: Check your API key format and validity
```
**Rate Limiting**
```bash
Error: Too Many Requests (429)
# Solution: The server automatically handles rate limiting with exponential backoff
```
**Connection Issues**
```bash
Error: Network timeout
# Solution: Check your internet connection and Float API status
```
### **Debug Mode**
Enable detailed logging:
```env
LOG_LEVEL=debug
```
This will show all API requests/responses and internal operations.
## π€ Contributing
We welcome contributions! Please see our [Contributing Guidelines](docs/guides/CONTRIBUTING.md) for details.
### **Development Setup**
```bash
# Clone the repository
git clone https://github.com/asachs01/float-mcp.git
cd float-mcp
# Install dependencies
npm install
# Set up environment
cp .env.example .env
# Edit .env with your Float API key
# Run in development mode
npm run dev
```
### **Code Quality**
```bash
# Run linting
npm run lint
# Format code
npm run format
# Type checking
npm run typecheck
```
## π Documentation
- **[API Documentation](docs/api/API_DOCUMENTATION.md)** - Complete API reference
- **[Tool Reference](docs/api/TOOL_REFERENCE.md)** - Detailed tool documentation
- **[Usage Guide](docs/guides/API_USAGE_GUIDE.md)** - Usage patterns and examples
- **[Integration Testing](docs/testing/INTEGRATION_TESTING.md)** - Testing guide
- **[Claude Integration](docs/guides/CLAUDE_INTEGRATION_GUIDE.md)** - Claude Desktop setup
## π Project Status
- β
**Complete Float API Coverage** - All Float v3 endpoints implemented
- β
**Production Ready** - Full error handling, rate limiting, and logging
- β
**Well Tested** - Comprehensive integration test suite
- β
**Type Safe** - Full TypeScript with Zod validation
- β
**Docker Ready** - Production-ready containerization
- β
**MCP Compatible** - Full Model Context Protocol compliance
## πΊοΈ Roadmap
- [ ] **Float API v4 Support** - When released by Float
- [ ] **Enhanced Caching** - Optional Redis caching layer
- [ ] **Webhook Support** - Real-time Float event notifications
- [ ] **Bulk Operations** - Enhanced bulk import/export tools
- [ ] **Custom Reports** - Advanced reporting and analytics
- [ ] **Multi-tenant Support** - Multiple Float account support
## π License
This project is licensed under the MIT License - see the [LICENSE](LICENSE) file for details.
## π Support
- **π Documentation**: See the [docs](docs/) directory
- **π Bug Reports**: [GitHub Issues](https://github.com/asachs01/float-mcp/issues)
- **π¬ Discussions**: [GitHub Discussions](https://github.com/asachs01/float-mcp/discussions)
## π·οΈ Tags
`float` `mcp` `model-context-protocol` `project-management` `resource-management` `time-tracking` `typescript` `api-integration` `claude` `ai-tools`
---
**Built with β€οΈ for the Float and MCP communities**