timeline-mcp
Enables AI assistants to retrieve real-time task data and conversation history from Panteon Timeline, including task descriptions, comments, and embedded images.
README
Panteon Timeline MCP Server 🚀
An MCP (Model Context Protocol) server built with FastMCP that enables AI assistants (Antigravity, Claude Desktop, Cursor, etc.) to fetch real-time task data and conversation history directly from Panteon Timeline (https://timeline.panteon.no).
✨ Features
- Extract Issue ID: Automatically parses URL formats like
https://timeline.panteon.no/tasks#/list/15033/edit/5461or accepts direct issue IDs (5461). - Two-Step API Resolution: Mirrors the browser extension logic by resolving the external issue ID (
5461) to Panteon's internaltask_idvia API 1, and then fetching the complete conversation timeline via API 2. - AI-Optimized Formatting: Provides structured XML/Markdown context (
<task_title>,<task_description>,<conversation_history>) ready for AI analysis, summarization, and reply drafting. - Flexible Authentication: Supports JWT Bearer tokens or Cookie headers via
.envfile configuration or per-tool-call parameters.
🛠️ Installation & Setup
1. Install Dependencies
Ensure you have Python 3.10+ installed, then create or reuse the project virtualenv and install dependencies into it:
cd timeline-mcp
python3 -m venv .venv
.venv/bin/python -m pip install -r requirements.txt
2. Configure Authentication
To fetch protected data from timeline.panteon.no, the MCP server needs an authentication token from your logged-in browser session.
- Copy
.env.exampleto.env:cp .env.example .env - Open Google Chrome and log in to
https://timeline.panteon.no. - Open Chrome DevTools (
F12orCtrl+Shift+I) -> navigate to the Network tab. - Refresh the timeline task page or perform any action.
- Click on any request starting with
api/(e.g.,taskbyissue/...ortimeline). - Under Request Headers, copy the value of
Authorization(without theBearerprefix) or the rawCookieheader string. - Paste it into your
.envfile:PANTEON_BEARER_TOKEN=eyJ... # OR PANTEON_COOKIE=...
🤖 Configuring MCP Clients
For Claude Desktop / Antigravity / Cursor
Add the following configuration to your MCP server configuration file (e.g., claude_desktop_config.json):
{
"mcpServers": {
"timeline-mcp": {
"command": "/home/harpalsinh.solanki@hs.local/projects/panteon/timeline-mcp/.venv/bin/python",
"args": [
"/home/harpalsinh.solanki@hs.local/projects/panteon/timeline-mcp/server.py"
],
"env": {
"PANTEON_BEARER_TOKEN": "your_jwt_token_here"
}
}
}
}
For Codex
Codex reads MCP servers from config.toml. Add this to ~/.codex/config.toml for a global setup, or to .codex/config.toml inside this repository for a project-scoped setup:
[mcp_servers.timeline_mcp]
command = "/home/harpalsinh.solanki@hs.local/projects/panteon/timeline-mcp/.venv/bin/python"
args = ["/home/harpalsinh.solanki@hs.local/projects/panteon/timeline-mcp/server.py"]
cwd = "/home/harpalsinh.solanki@hs.local/projects/panteon/timeline-mcp"
startup_timeout_sec = 20
tool_timeout_sec = 120
With cwd set to this repository, python-dotenv loads .env automatically. If you prefer to pass credentials from the shell instead, add:
env_vars = ["PANTEON_BEARER_TOKEN", "PANTEON_COOKIE", "PANTEON_TIMELINE_DIR"]
After saving the config, restart Codex and run /mcp in the Codex TUI to confirm timeline_mcp is active.
🧰 Available Tools
get_task_conversation
Fetches a task in full — its description body and the entire comment conversation — including every image embedded anywhere, and writes it to a markdown file.
-
Arguments:
issue_identifier(str) — e.g."https://timeline.panteon.no/tasks#/list/15033/edit/5461"or"5461". Must be a bare numeric ID or a URL containing/edit/<id>.bearer_token/cookie(str, optional) — override the.envcredentials per call.inline(bool, defaultfalse) — whentrue, the full task markdown is appended to the return value in addition to being saved. Use this for clients that can't read the local filesystem path.
-
Side effect: writes
timeline/<issue_id>/task.md(title, metadata, description, comments). The saved file is also exposed as an MCP resource attimeline://<issue_id>/task.md, so clients can read the full content through MCP after a fetch. -
Empty tasks: when both description and comments are empty, the tool asks for optional user-provided context if the MCP client supports elicitation. Accepted input is saved under
## User-Provided Context; unsupported clients keep the normal placeholder output. -
Returns a short human-readable summary string with the issue id, title, status, and saved file path — for example:
Issue #4117 — Label print Status: open Saved to: /abs/path/timeline/4117/task.mdThe full task body, the entire comment conversation, and every image URL are written to the saved file. Read that file to access the full content.
Image URLs embedded in comments (markdown  or HTML <img>) are resolved to absolute
https://timeline.panteon.no/... URLs. Non-image attachment links (e.g. .csv) are excluded.
Output location
The file is written to <base>/timeline/<issue_id>/task.md, where <base> is:
PANTEON_TIMELINE_DIRenv var, if set (this MCP is configured with it pointing at theduell-adminproject root); otherwise- the current working directory.
💻 Command-Line Usage
The same fetch logic is available from the shell via fetch_task.py (credentials come from .env):
# By numeric ID or full URL
.venv/bin/python fetch_task.py 5461
.venv/bin/python fetch_task.py "https://timeline.panteon.no/tasks#/list/15033/edit/5461"
# Also print the rendered markdown to stdout
.venv/bin/python fetch_task.py 5461 --print
# Write under a specific project root instead of PANTEON_TIMELINE_DIR / cwd
.venv/bin/python fetch_task.py 5461 --base-dir /path/to/project
🧪 Development & Testing
# Install dev dependencies (adds pytest)
.venv/bin/python -m pip install -r requirements-dev.txt
# Run the unit tests — no network or credentials required
.venv/bin/python -m pytest
Tests live in tests/ and cover the pure parsing/rendering helpers plus authentication-error handling (via a mocked HTTP session).
推荐服务器
Baidu Map
百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。
Playwright MCP Server
一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。
Magic Component Platform (MCP)
一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。
Audiense Insights MCP Server
通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。
VeyraX
一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。
graphlit-mcp-server
模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。
Kagi MCP Server
一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。
e2b-mcp-server
使用 MCP 通过 e2b 运行代码。
Neon MCP Server
用于与 Neon 管理 API 和数据库交互的 MCP 服务器
Exa MCP Server
模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。