All clients
MCP Server
OpenCode
Track time while you code
Start a timer for a client project, log hours, and check your tracked time—all from your terminal. Just ask "start timer for Acme Corp" or "how many hours did I work this week?"
What you can do
- •"Start timer for [customer name]"
- •"Stop timer and log 2 hours of backend work"
- •"How many hours did I track this week?"
- •"Show unbilled time for Acme Corp"
Install OpenCode
curl -fsSL https://opencode.ai/install | bashDesktop app and IDE extensions also available at opencode.ai/download
Don't have an API key? Create one in Settings → Developer
MCP Configuration
Add to your OpenCode MCP config file:
{
"mcpServers": {
"midday": {
"url": "https://api.midday.ai/mcp",
"headers": {
"Authorization": "Bearer YOUR_API_KEY"
}
}
}
}Setup steps
- 1Install OpenCode using one of the commands above
- 2Get an API key from Settings → Developer
- 3Add the MCP configuration above to your OpenCode settings
- 4Restart OpenCode and ask about your Midday data