An MCP (Model Context Protocol) server for logging time to the Insider system.
- List all projects available to the user
- Log time entries to specific projects with various rates and activities
- Python 3.10 or higher
- The MCP framework (
pip install mcp
) - An Insider account with API access
Set the following environment variables before running the server:
export INSIDER_AUTH_TOKEN="your-bearer-token-here"
export INSIDER_USER_ID="your-user-id"
export INSIDER_EMP_CODE="your-employee-code"
- Clone this repository
- Install the package:
pip install -e .
python -m timesheet_mcp
Lists all projects available to the user.
{
"name": "list_projects",
"arguments": {}
}
Response:
{
"projects": [
{
"id": 10522,
"name": "Project Name"
},
...
]
}
Logs time to a specific project.
{
"name": "log_time_project",
"arguments": {
"projectId": 10522,
"hours": 4,
"logDates": ["2025-05-29"],
"hourRate": 1.5,
"activity": 1,
"comment": "Working on feature X"
}
}
Parameters:
projectId
(required): Project ID from list_projectshours
(required): Number of hours to log (between 0.5 and 24)logDate
(required): List of Dates to log time for in YYYY-MM-DD formathourRate
(optional, default: 1.0): Hour rate (1 for normal, 1.5 for OT weekday, 2 for OT weekend, 3 for OT holiday)activity
(optional, default: 1): Activity type (1 for Code, 2 for Test)comment
(optional): Comment for the time entry
Response:
{
"success": true,
"message": "Time logged successfully",
"details": {
"status": "success"
}
}
python -m unittest discover tests
MIT