tlc-portal-mcp
tlc-portal-mcp
这是一个基于 stdio 的 MCP 服务器,旨在让 Claude Code、Codex 等 MCP 客户端能够使用 TwolineCloud 门户的休假和时间表功能。
通过 npx 运行该包,您可以将浏览器登录、休假查询/申请、时间表查询/录入、版本诊断等任务作为 MCP 工具使用。
当前支持的功能
门户登录及认证状态检查
休假类型、剩余休假、休假申请记录查询
休假申请、取消
时间表管理信息、可录入期间、每日详情查询
时间表项目列表查询
计算反映休假后的每日可录入工时
时间表单条/期间录入准备及提交
时间表每日全量删除
当前服务器版本检查及 npm 最新版本对比
Related MCP server: qoder-browser-bridge
要求
Node.js
18+支持门户登录的浏览器环境
安装与注册
Claude Code
# 사용자 전역 등록
claude mcp add tlc-portal-mcp --scope user -- npx -y tlc-portal-mcp
# 현재 프로젝트에만 등록
claude mcp add tlc-portal-mcp -- npx -y tlc-portal-mcpCodex CLI
# 사용자 전역 등록
codex mcp add tlc-portal-mcp -- npx -y tlc-portal-mcp由于 Codex 目前没有专门针对项目的 add 命令,如有需要,可以直接将其添加到项目根目录的 .codex/config.toml 中。
[mcp_servers.tlc-portal-mcp]
command = "npx"
args = ["-y", "tlc-portal-mcp"]运行方式说明
mcp add ... -- npx -y tlc-portal-mcp并非全局安装,而是注册执行命令。实际的包下载发生在客户端首次启动服务器时。
并非每次都重新安装,根据运行环境可能会重用缓存版本。
因此,服务器中包含了用于检查当前版本和最新版本的
system.*工具。
认证方法
推荐:auth.login
打开浏览器由用户直接登录,会自动保存 localStorage['vuex'] 中的 JWT。
执行
auth.login在浏览器中完成门户登录和 MFA
登录成功后自动保存令牌
通过
auth.status确认认证状态
登录成功后,浏览器会显示引导覆盖层。
替代:auth.import_vuex
如果难以使用自动登录流程,可以从浏览器直接获取并粘贴 vuex 值。
在浏览器中登录门户
在 DevTools 中进入
Application > Local Storage > https://portal.twolinecloud.com复制
vuex值执行
auth.import_vuex后粘贴
工具列表
系统
工具 | 说明 |
| 返回当前运行的服务器名称、版本及已注册工具列表 |
| 对比 npm 最新版本与当前版本 |
认证
工具 | 说明 |
| 浏览器登录后自动保存 JWT |
| 通过粘贴 |
| 确认当前认证状态 |
| 删除本地会话 |
休假
工具 | 说明 |
| 查询支持的休假类型 |
| 查询剩余休假 |
| 查询休假申请记录 |
| 准备休假申请 payload |
| 提交已准备好的休假申请 |
| 取消现有休假申请 |
时间表
工具 | 说明 |
| 查询时间表管理/截止信息 |
| 查询当前用户的时间表现状 |
| 查询可录入期间 |
| 查询特定日期的时间表详情 |
| 汇总日期范围内的所有时间表 + 公休日/休假 capacity |
| 查询时间表中可录入的项目列表 |
| 计算反映休假后的当日可录入工时 |
| 准备单日时间表录入 |
| 提交已准备好的单日录入 |
| 准备按期间批量录入 |
| 提交已准备好的批量录入 |
| 删除特定日期的时间表全量数据 |
时间表规则
默认每日可录入工时为 8 小时。
若有半天假(
AM,PM,admitAm,admitPm),最多只能记录 4 小时。若有全天假(
allDay,admit),则当天无法记录。韩国公休日默认通过 Nager.Date API 查询,失败时使用内置的 fallback 数据。
周末和公司统一公休日(
PORTAL_COMPANY_HOLIDAYS)也被视为不可录入。个人休假覆盖层根据门户概览规则,基于
vacation-svc/request/secure的requestDt排序结果进行计算。workDate和taskType是必需的。projectId通常是必需的。但如果
taskType === NORMAL,则可以在没有projectId的情况下录入。写入操作遵循
prepare -> submit流程。
推荐使用顺序
初始诊断
system.infosystem.check_updateauth.status必要时执行
auth.login
休假流程
leave.get_balancesleave.list_requestsleave.prepare_requestleave.submit_prepared_request
时间表流程
timetable.get_available_rangetimetable.get_range_overviewtimetable.list_projectstimetable.get_day_capacitytimetable.prepare_day_entry或timetable.prepare_bulk_entriestimetable.submit_prepared_day_entry或timetable.submit_prepared_bulk_entries
使用示例
"현재 서버 버전이랑 최신 버전 비교해줘"
-> system.check_update
"내 휴가 잔여 일수 보여줘"
-> leave.get_balances
"이번 달 휴가 신청 이력 보여줘"
-> leave.list_requests
"4월 30일 오전 반차 신청 준비해줘"
-> leave.prepare_request
"오늘 입력 가능한 타임테이블 시간 계산해줘"
-> timetable.get_day_capacity
"2026년 2월 타임테이블 전체를 공휴일 포함해서 요약해줘"
-> timetable.get_range_overview
"2026-04-05에 프로젝트 274로 4시간, taskType EXECUTE로 입력 준비해줘"
-> timetable.prepare_day_entry
"오늘 일반업무 2시간, taskType NORMAL로 입력 준비해줘"
-> timetable.prepare_day_entry
"4월 1일부터 4월 3일까지 같은 내용으로 일괄 입력 준비해줘"
-> timetable.prepare_bulk_entries环境变量
变量 | 默认值 | 说明 |
|
| 门户基础地址 |
|
| 登录入口路径 |
|
| 登录成功后的跳转 URL |
|
| 本地会话存储文件 |
|
| API 请求超时秒数 |
| `` | 逗号分隔的公司统一公休日列表 ( |
|
| 韩国公休日查询 API 基础 URL |
限制事项
JWT 有效期目前约为 2 小时。
令牌过期后,必须重新执行
auth.login或auth.import_vuex。不使用 Refresh token。
会话文件仅存储在本地,不会上传到服务器。
system.check_update仅在可访问 npm registry 的环境下才能检查最新版本。若公休日查询 API 失败,将使用内置的 fallback 数据进行判定。
时间表的
NORMAL+ 无projectId组合虽按文档实现为允许流程,但实际门户后端是否接受,需在运营环境中进一步确认。
Available Tools
10 toolsauth.clearA
저장된 인증 세션을 삭제한다.
Inputs: no named parameters.
auth.import_vuexB
브라우저 localStorage['vuex'] 값을 붙여넣어 인증 상태를 가져온다.
Inputs: vuex_payload (required).
auth.loginC
브라우저를 열어 사용자가 직접 로그인하면 JWT를 자동 저장한다.
Inputs: timeout_seconds.
auth.statusB
현재 인증 상태를 반환한다.
Inputs: no named parameters.
leave.cancel_requestB
기존 휴가 신청을 취소한다.
Inputs: request_id (required).
leave.get_balancesB
현재 잔여 휴가를 조회한다.
Inputs: no named parameters.
leave.list_requestsC
휴가 신청 내역을 조회한다.
Inputs: statuses, from_date, to_date, limit, +1 more.
leave.list_typesA
지원하는 휴가 유형 목록을 반환한다.
Inputs: no named parameters.
leave.prepare_requestB
휴가 신청을 준비한다. 제출 전 확인 단계다.
Inputs: leave_type_code (required), start_date (required), end_date (required), unit, +3 more.
leave.submit_prepared_requestB
준비된 휴가 신청을 포탈에 제출한다.
Inputs: prepared_request_id (required).
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 10 tools
Most tools target distinct resources and actions, especially within the leave namespace. The only possible confusion is between auth.login and auth.import_vuex, but their descriptions clearly separate browser-based login from importing an existing Vuex auth state.
Tool names consistently follow a verb_noun pattern with clear namespace prefixes like auth and leave. auth.status is a minor deviation as a noun, but overall the naming is predictable and easy to navigate.
Ten tools is a well-scoped size for a portal MCP server covering authentication and leave management. Each tool has a clear role, and the count feels neither bloated nor thin.
The leave workflow is well covered: types, balances, listing, preparing, submitting, and cancelling requests. Minor gaps include no direct request detail view or update/edit path, but cancel-and-recreate is a reasonable workaround.
Maintenance
Related MCP Connectors
Timetastic MCP server for ChatGPT, Claude and any AI agent: list wallchart absences, list pending leave requests, approve leave request, decline leave request, book time off, cancel booking, get monthly leave summary and get annual allowance summary in your own Timetastic account. Cotlet works in the account through your Cloud Browser, a real Chrome where you sign in to Timetastic yourself; Cotlet does not store your password and you need no Timetastic API key. About the official Timetastic API: Yes, Timetastic has a REST API with a bearer token, and no official MCP server (checked 20 Oct 2026). Only admin users can get a token, and the API has no endpoints for the monthly and annual summary reports. Setup and FAQ: https://cotlet.dev/integrations/timetastic-api-mcp-server
Shared memory MCP server for Claude Code, Codex, Gemini CLI and Cursor. Cited, editable.
CharlieHR MCP server for ChatGPT, Claude and any AI agent: list team members, list time off requests, approve time off request, deny time off request, book time off, record sick day, adjust time off allowance and cancel time off booking in your own CharlieHR account. Cotlet works in the account through your Cloud Browser, a real Chrome where you sign in to CharlieHR yourself; Cotlet does not store your password and you need no CharlieHR API key. About the official CharlieHR API: CharlieHR has an API, but a narrow one, and no official MCP server (checked 20 Oct 2026). A Super Admin creates a Client ID and Client Secret under Company > Integrations > API Access; the API covers team members, leave, offices and teams. Setup and FAQ: https://cotlet.dev/integrations/charliehr-api-mcp-server
Connect ChatGPT and Claude to your Mac, Windows or Linux with secure MCP remote access.
Related MCP Servers
- FlicenseAqualityDmaintenanceA standalone MCP server that exposes the ATimeLogger REST API to Claude Desktop/Code over stdio, enabling activity tracking (start/stop/pause/log), reports/history, and activity type management.81-
- AlicenseNot gradedqualityDmaintenanceA standalone MCP server that lets Claude Code, opencode, and other MCP clients control your real browser via the QoderWork browser connector extension, preserving login state and providing tools for navigation, clicking, typing, screenshots, and more.ISC
- AlicenseNot gradedqualityFmaintenanceLocal stdio MCP server for working on Intern-hosted sites through guarded Git checkouts. It enables authentication, site preparation, testing, validation, and publishing via coding harnesses like Codex and Claude Code.19 npmMIT
- AlicenseAqualityAmaintenanceA local MCP server that connects Claude Desktop, Claude Code, and Claude Chat to your Azure DevOps organization, enabling querying work items, reviewing pull requests, triggering pipelines, searching code, managing test plans, and updating wikis using plain language.30MIT