horas-mcp

horas-mcp

Enables local time tracking for Jira cards/subtasks with a stopwatch, breaks, corrections, manual logging, and reports, storing data in a local JSON file without depending on the Jira API.

Category
Visit Server

README

horas-mcp

MCP server local para controle de horas por card/subtarefa do Jira — cronômetro, pausas, correções, relatórios e controle de apontamento pendente. 100% local (arquivo JSON), sem depender da API do Jira. Roda em Node 18+ e pode ser distribuído como um único arquivo.

Fluxo de uso (conversando com o agente)

Você diz O que acontece
"começa a SUB-456" inicia o cronômetro (para a anterior automaticamente)
"pausa" / "voltei" pausa/retoma (almoço, reunião)
"terminei" fecha a sessão e mostra tempo real + arredondado
"comecei a SUB-456 às 9h" início retroativo
"trabalhei 1h30 ontem na SUB-457" registro manual
"relatório de hoje / da semana" tabela por card com pendências de apontamento
"apontei a SUB-456" marca como apontada (some das pendências)

O apontamento oficial você lança no Jira manualmente — o relatório já mostra o valor arredondado no formato do worklog (2h 30m) e a nota da sessão para usar de comentário.

Build

npm install
npm run build     # dist/index.js (ESM, para desenvolvimento)
npm run bundle    # dist/horas.cjs — ARQUIVO ÚNICO, autocontido, Node 18+

Instalar na máquina da empresa (GitHub Copilot / VS Code)

Copie apenas dist/horas.cjs para a máquina (ex: C:\Users\voce\horas\horas.cjs) e registre no VS Code — Ctrl+Shift+P → "MCP: Open User Configuration" (ou .vscode/mcp.json do workspace):

{
  "servers": {
    "horas": {
      "type": "stdio",
      "command": "node",
      "args": ["C:/Users/voce/horas/horas.cjs"],
      "env": { "HORAS_BLOCO_MIN": "15", "HORAS_ARREDONDAR": "cima" }
    }
  }
}

Sem npm install, sem build — só Node 18+ e o arquivo. As tools aparecem no Copilot Chat em agent mode.

Alternativa com SQLite: leve node-22/dist/horas-sqlite.cjs (também arquivo único, requer Node 22.13+; dados em ~/.horas/horas.db). Escolha uma das duas — os dados não são compartilhados entre elas.

Instalar no Claude Code

claude mcp add --scope user horas -- node D:/Gabriel/Projetos/horas/dist/horas.cjs

Configuração (variáveis de ambiente)

Variável Padrão Descrição
HORAS_BLOCO_MIN 15 Tamanho do bloco de arredondamento em minutos (0 desliga)
HORAS_ARREDONDAR cima Modo: cima, proximo ou baixo
HORAS_SESSAO_MAX_HORAS 12 Sessão aberta além disso é tratada como timer esquecido
HORAS_DB ~/.horas/horas.json Caminho do arquivo de dados (JSON, escrita atômica)

Tools expostas

iniciar_tarefa · pausar_tarefa · retomar_tarefa · parar_tarefa · status_atual · registrar_manual · editar_sessao · excluir_sessao · relatorio · marcar_apontado

Recommended Servers

playwright-mcp

playwright-mcp

A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.

Official
Featured
TypeScript
Magic Component Platform (MCP)

Magic Component Platform (MCP)

An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.

Official
Featured
Local
TypeScript
Audiense Insights MCP Server

Audiense Insights MCP Server

Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.

Official
Featured
Local
TypeScript
VeyraX MCP

VeyraX MCP

Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.

Official
Featured
Local
graphlit-mcp-server

graphlit-mcp-server

The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.

Official
Featured
TypeScript
Kagi MCP Server

Kagi MCP Server

An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.

Official
Featured
Python
E2B

E2B

Using MCP to run code via e2b.

Official
Featured
Neon Database

Neon Database

MCP server for interacting with Neon Management API and databases

Official
Featured
Exa Search

Exa Search

A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.

Official
Featured
Qdrant Server

Qdrant Server

This repository is an example of how to create a MCP server for Qdrant, a vector search engine.

Official
Featured