time-toolkit

time-toolkit

Enables interaction with Time Messenger and Mattermost-compatible servers via their REST API, supporting reading, writing, and event streaming with configurable write policies for safety.

Category
访问服务器

README

Русская версия | English

Time Toolkit

CI Python 3.11–3.14 License: MIT

An independent client and integration toolkit for Time Messenger and Mattermost-compatible servers. One Python package provides the timetk CLI, a time-toolkit MCP server, an importable Python API, a WebSocket event stream, and a local read-only HTTP API.

Time Toolkit needs no server plugin. It uses the permissions of a selected user or bot through the public REST API v4 and does not change read state during ordinary read operations.

Capabilities

  • inspect teams, channels, direct messages, posts, threads, unread messages, mentions, pins, flags, read receipts, reactions, users, and file metadata;
  • search messages and users with machine-readable text, json, and ndjson output;
  • create, reply to, edit, and delete posts with an explicit write policy;
  • manage reactions, pins, flags, followed threads, files, and read state;
  • stream Mattermost WebSocket events with filtering, reconnection, and deduplication;
  • expose tools to Codex and other clients through MCP;
  • embed the same service layer in Python applications;
  • serve a protected local read-only HTTP API;
  • isolate any number of profiles with separate servers, tokens, and write modes.

Safety model

Every profile has one of three write modes:

Mode Interactive CLI and confirmed MCP Automation and --yes
readonly blocked blocked
approval allowed after confirmation blocked
fullauto allowed allowed

New profiles default to approval. MCP always uses a two-step write flow with a single-use confirmation token, including for fullauto profiles. Tokens are stored in the operating-system keyring rather than Git or config.json.

Quick start

Time Toolkit requires Python 3.11+ and uv.

git clone https://github.com/erstcl/time-toolkit.git
cd time-toolkit
uv sync --locked --no-editable --all-extras

# Generic Mattermost-compatible server
uv run --no-sync timetk profile add example https://time.example.com

# Explicitly supported Time Messenger deployment
uv run --no-sync timetk profile add university https://time.cu.ru

Store and verify a personal access token through hidden input:

uv run --no-sync timetk -p university auth set
uv run --no-sync timetk -p university auth status --check

Start with read-only commands:

uv run --no-sync timetk -p university channels --pattern general
uv run --no-sync timetk -p university unread --with-posts
uv run --no-sync timetk -p university search "exam" --since 7d

Preview and confirm a write operation:

uv run --no-sync timetk -p university post general -m "Hello" --dry-run
uv run --no-sync timetk -p university post general -m "Hello"

--dry-run never calls a write endpoint. Without --yes, the CLI shows the exact plan and asks Proceed? [y/N]. Automated writers require a separately configured fullauto profile.

Interfaces

Use case Interface
Human operator in a terminal timetk CLI
Codex or another agent time-toolkit MCP server
In-process Python application TimeService
Local service written in another language read-only HTTP API
Reaction to new events timetk -o ndjson watch
Short language-agnostic script CLI with -o json or -o ndjson

Automated sending from an external service should use a dedicated bot token, a fullauto profile, and an application-level recipient allowlist. The built-in HTTP API intentionally remains read-only.

Architecture

CLI / MCP / Python API / HTTP API / WebSocket watcher
                         │
                    TimeService
                         │
             authenticated REST API v4 client
                         │
       Time Messenger / Mattermost-compatible server

All interfaces share the same configuration, authentication, service, and safety layers. Network code stays behind a typed client, while CLI and MCP adapters handle presentation and confirmation semantics.

Documentation

Scope

Time Toolkit is not part of, or endorsed by, Time Messenger, Mattermost, Inc., Central University, or operators of compatible servers. Product names and trademarks belong to their respective owners.

The project intentionally excludes password login, browser-profile scraping, persistent message mirroring, automatic mark-read, HTTP write endpoints, a full-screen TUI, and Mattermost administration. The rationale is documented in the architecture guide.

Time Toolkit is independently implemented against documented network interfaces and released under the MIT License.

推荐服务器

Baidu Map

Baidu Map

百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。

官方
精选
JavaScript
Playwright MCP Server

Playwright MCP Server

一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。

官方
精选
TypeScript
Magic Component Platform (MCP)

Magic Component Platform (MCP)

一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。

官方
精选
本地
TypeScript
Audiense Insights MCP Server

Audiense Insights MCP Server

通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。

官方
精选
本地
TypeScript
VeyraX

VeyraX

一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。

官方
精选
本地
graphlit-mcp-server

graphlit-mcp-server

模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。

官方
精选
TypeScript
Kagi MCP Server

Kagi MCP Server

一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。

官方
精选
Python
e2b-mcp-server

e2b-mcp-server

使用 MCP 通过 e2b 运行代码。

官方
精选
Neon MCP Server

Neon MCP Server

用于与 Neon 管理 API 和数据库交互的 MCP 服务器

官方
精选
Exa MCP Server

Exa MCP Server

模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。

官方
精选