Skip to main content
Glama

tempo-mcp

MCP 服务器,允许 Claude 针对 Jira 问题记录、列出和删除 Tempo 工作日志。

设置

  1. npm install && npm run build

  2. 将 .env.example 复制为 .env 并填写:

    • TEMPO_API_TOKEN — 在 Jira 的 Tempo → Settings → API Integration 下生成,权限范围限定为 Manage Worklogs。

    • JIRA_BASE_URL — 例如 https://your-domain.atlassian.net

    • JIRA_EMAIL / JIRA_API_TOKEN — 用于将问题键(例如 PROJ-1234)解析为 Tempo 所需的数字问题 ID。请在 https://id.atlassian.com/manage-profile/security/api-tokens 生成该令牌。

Related MCP server: jira-mcp-server

注册到 Claude Code

claude mcp add tempo-mcp -- node /path/to/tempo-mcp/dist/index.js

或者通过 .mcp.json,在上述条目的 env 块中设置环境变量。

工具

  • get_worklogs — 列出工作日志,可选择按 issueKey、authorAccountId 和日期范围(from/to)进行筛选。

  • post_worklog — 针对一个问题记录时间(issueKey、timeSpentSeconds、startDate、authorAccountId,可选 startTime/description)。

  • delete_worklog — 按 tempoWorklogId 删除工作日志。

问题键会通过 Jira REST API 自动解析为 Tempo 所需的数字问题 ID(并在进程内缓存)。

Available Tools

3 tools
delete_worklogA

Delete a Tempo worklog by its Tempo worklog ID.

Inputs: tempoWorklogId (required).

get_worklogsA

Fetch Tempo worklogs, optionally filtered by Jira issue key, author account ID, and/or date range.

Inputs: to, from, limit, issueKey, +1 more.

post_worklogB

Log time in Tempo against a Jira issue on behalf of a given Jira account.

Inputs: issueKey (required), startDate (required), authorAccountId (required), timeSpentSeconds (required), +2 more.

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    A3.7/5.0

    Scored across 3 tools

    Disambiguation5/5

    Each tool targets a distinct operation on worklogs: create (post), read (get), and delete. There is no overlap or ambiguity between them.

    Naming Consistency5/5

    All tool names follow the verb_noun pattern with clear verbs (post, get, delete) and the same noun base (worklog(s)). The plural in get_worklogs is semantically appropriate for fetching multiple records.

    Tool Count5/5

    Three tools is a well-scoped set for a focused worklog integration. Each tool covers an essential action without unnecessary bloat.

    Completeness3/5

    The set covers create, read, and delete but lacks an update operation, which is a notable gap for worklog management. Agents must work around this by deleting and recreating worklogs, which is not always desirable.

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      Not graded
      quality
      D
      maintenance
      Enables Claude AI to interact with JIRA for project management and issue tracking, supporting JQL queries, comprehensive issue details retrieval with subtasks and linked issues, and release planning analysis.
      MIT
    • A
      license
      Not graded
      quality
      D
      maintenance
      Enables AI assistants like Claude to interact with Jira for project management tasks, including issue creation, updates, workflow transitions, and bulk operations.
      4
      MIT