MT

mayank953ai/time-track-mcp-server

Data science & ML

이 페이지는 AI로 자동 번역되었습니다. 기술적인 세부 사항은 원문을 확인하세요. 원문 보기

2 stars 7 forks 품질 58 트렌드 12

실시간 시트 도구 - 브라우저를 통해 청구 가능한 시간을 로그, 또는 AI 보조를 통해, 모두 정확한 동일한 데이터를 볼 수 있습니다.

개요

실시간 시트 도구 - 브라우저를 통해 청구 가능한 시간을 로그, 또는 AI 보조를 통해, 모두 정확한 동일한 데이터를 볼 수 있습니다. 1. uv 2. uv init를 설치하십시오. 3. uv는 fastmcp fastapi “uvicorn[standard]”를 추가합니다 4. uv는 fastmcp 버전을 달립니다 — 설치 5.를 확인하십시오 이 repo의 database.py, main.py, 그리고 정적/은 이미 당신을 위해 작성됩니다 6. uv run uvicorn main:app --reload 7. 방문 http://127.0.0.1:8000 (웹 사이트) 및 http://127.0.0.1:8000/mcp (MCP) 8. Connect Claude Desktop (아래 참조) 9. 공개 URL에 대한 Prefect Horizon 배포 (아래 참조) 1. mcp.http app(path="/") — not "/mcp" — since app.mount("/mcp", mcp app) 이미 접두사를 추가합니다. /mcp/mcp로 두 배 둘 다 놓으십시오. 2. FastAPI (lifespan=mcp app.lifespan) - 건축에서 통과해, 뒤에 놓지 않는 - 또는 MCP 회의는 침묵하게 결코 초기화하지 않습니다. 이전 FastMCP Cloud로 알려진 - 같은 팀, 같은 아이디어, 현재 이름은이 쓰기 전에 확인. 개인 프로젝트에 대한 무료. 1. GitHub 저장소에 이 프로젝트를 푸시 2.

개요(AI 번역)

실시간 시트 도구 - 브라우저를 통해 로그인 가능 시간, 또는 AI 조수와 둘 다 정확한 동일한 자료를 보십시오.

완전한 설정 체크리스트

  1. uv 설치
  2. [T1]]
  3. [T2]]
  4. uv run fastmcp version - 설치 확인
  5. 이 재포의 database.py, main.py, 그리고 static/]는 이미 당신을 위해 쓰입니다
  6. [T7]]
  7. http://127.0.0.1:8000 (웹 사이트) 및 http://127.0.0.1:8000/mcp (MCP) 방문
  8. Claude 데스크탑 (아래 참조)
  9. 공개 URL에 대한 Prefect Horizon 배포 (아래 참조)

내부는 무엇입니까?

| 증명 | 이름 | 그것은 무엇 | |—||||| | 공구 | [T10] | 새로운 시간 등록 - 웹 사이트에 즉시 나타납니다 | | 공구 | [T11] | 한 명의 직원의 항목, 선택적으로 날짜 범위로 필터링 | | 툴 | get_project_summary | 사업별 총시간, 직원별 끊김 (real [T13]) | | 공구 | [T14] | 모든 프로젝트는 적어도 하나의 기록 된 항목으로 | | 리소스 | [T15] | 알려진 프로젝트 이름의 현재 세트 | | Prompt | generate_weekly_report | 매주 보고 요청 구조|

연결 클로드 데스크탑

이 페이지는 AI로 자동 번역되었습니다. 기술적인 세부 사항은 원문을 확인하세요.

README

TimeTrack

A real timesheet tool — log billable hours through a browser, or through an AI assistant, and both see the exact same data.

Complete Setup Checklist

  1. Install uv
  2. uv init .
  3. uv add fastmcp fastapi "uvicorn[standard]"
  4. uv run fastmcp version — confirm the install
  5. This repo’s database.py, main.py, and static/ are already written for you
  6. uv run uvicorn main:app --reload
  7. Visit http://127.0.0.1:8000 (website) and http://127.0.0.1:8000/mcp (MCP)
  8. Connect Claude Desktop (see below)
  9. Deploy to Prefect Horizon for a public URL (see below)

What’s inside

Primitive Name What it does
Tool log_time Logs a new time entry — appears on the website immediately
Tool get_timesheet One employee’s entries, optionally filtered by date range
Tool get_project_summary Total hours per project, broken down by employee (real GROUP BY)
Tool list_projects Every project with at least one logged entry
Resource timesheet://projects The current set of known project names
Prompt generate_weekly_report Structures a weekly hours report request

Connecting Claude Desktop

{
  "mcpServers": {
    "timetrack": { "url": "http://127.0.0.1:8000/mcp" }
  }
}

Two rules that matter in main.py (verified against official FastMCP docs)

  1. mcp.http_app(path="/") — not "/mcp" — since app.mount("/mcp", mcp_app) already adds that prefix. Setting both doubles it into /mcp/mcp.
  2. FastAPI(lifespan=mcp_app.lifespan) — passed at construction, not set afterward — or the MCP session manager silently never initializes.

Going live: Prefect Horizon

Formerly known as FastMCP Cloud — same team, same idea, current name verified before writing this. Free for personal projects.

  1. Push this project to a GitHub repo
  2. Sign in to Prefect Horizon with GitHub
  3. Connect the repo — dependencies auto-detected from pyproject.toml
  4. Optionally verify first: fastmcp inspect main.py:mcp
  5. Deploy — live at https://your-project-name.fastmcp.app/mcp

Worth confirming directly whether the website’s static routes come along with the deployment — Horizon is purpose-built for the MCP piece specifically. If not, deploying the whole app to a general host like Railway is the fallback.

Files

  • database.py — SQLite persistence, tested including real aggregation and a genuine restart-and-recover proof
  • main.py — FastAPI app with MCP mounted in, using the verified-correct mounting pattern
  • static/ — the original frontend (3 tabs: entries, summary, log time)
  • timetrack_notebook.ipynb — full walkthrough, database layer fully executed live
GitHub에서 전체 README 보기

설치

This server does not publish a one-line install command.

Open the repository installation guide MCP 초보자라면? mcpskill.org 가이드부터 시작하세요 →

설정

{ "mcpServers": { "timetrack": { "url": "http://127.0.0.1:8000/mcp" } } }