AT

aslan11/temporal-invoice-mcp

Developer tools

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

21 stars 5 forks 품질 52 트렌드 0

이 재포의 목적은 MCP 서버를 위한 "Human-In-The-Loop" 튼튼한 공구를 만드는 방법 쉬운 설명하는 것입니다 Temporal

개요

- Python3+ - uv (curl -LsSf https://astral.sh/uv/install.sh | sh) - Temporal Local Setup Guide - 데스크탑용 Claude Server 및 worker를 수동으로 시작하면 boot-demo.sh helper 스크립트를 사용하여 tmux 세션에서 시작할 수 있습니다. - 'Search & Tools'의 invoice processor를 볼 수 있다면 MCP 클라이언트(예: Claude Desktop)를 사용하여 트리거, 승인, 거부 및 상태 도구를 호출합니다. 트리거 도구는 이제 워크플로우 id와 run id를 반환합니다. approve, reject 및 상태 도구에 이러한 값을 전달합니다. 샘플 송장은 샘플/invoice acme.json에서 생활합니다. http://localhost:8233.에서 임시 웹 검사 죽음을 관찰 할 때마다 노동자를 재시작. Claude + MCP는 승인과 같은 프로세스 워크플로에 입력 및 업데이트를 보낼 수 있습니다, 또는 심지어 작업의 조합을 수행 - 모든 대리인, 인간 아날로그에 설명하는 것은 당신이 그것을 요청하는 경우 무슨 일이? 1. 명세.

개요(AI 번역)

영상:

# 필수품:

1. 복제 및 설치

2. 현지에서 임시 시작

3. 노동자를 시작

빠른 데모 부팅

서버와 worker를 수동으로 시작하는 대신 당신은 그들에 발사할 수 있습니다 tmux] boot-demo.sh] 도움 스크립트를 사용하여 세션:

데스크탑 지침 (Sonnet 4)

1. 단계에 따라 1-3 위

2. Claude Config 편집 (Claude > 설정 > 개발자 > 편집 구성)

3. config를 편집한 후 데스크톱용 Restart Claude

  • 'Search & Tools’에서 invoice_processor을 볼 수 있다면

4. 모조 청구서를 처리하기 위해 실행 :

MCP 클라이언트(예: Claude Desktop)를 사용하여 trigger], approve]를 호출합니다. reject, status] 도구. trigger 도구는 이제 모두 반환 workflow_id 및 run_id]의 시작 작업 흐름. 이 값을 전달합니다. approve, reject], status] 도구. 샘플 송장 생활 samples/invoice_acme.json. http://localhost:8233에서 임시 웹 검사. 죽음을 관찰 할 때마다 노동자를 재시작.

5. 결과

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

README

원문 README의 일부입니다. 원문 보기.

Invoice Demo with Temporal + MCP

Video:

Prerequisites:

1. Clone & install

 git clone https://github.com/your-org/temporal-mcp-invoice-demo.git
 cd temporal-mcp-invoice-demo
 uv venv
 source .venv/bin/activate
 uv pip install temporalio fastmcp

2. Launch Temporal locally

 temporal server start-dev

3. Start the worker

 python worker.py [--fail-validate] [--fail-payment]

Quick demo boot

Instead of starting the server and worker manually you can launch them in a tmux session using the boot-demo.sh helper script:

 ./boot-demo.sh

Claude for Desktop Instructions (Sonnet 4)

1. Follow steps 1-3 above

2. Edit your Claude Config (Claude > Settings > Developer > Edit Config)

{
  "mcpServers": {
    "invoice_processor": {
      "command": "/Path/To/Your/Install/Of/uv",
      "args": [
        "--directory",
        "/Path/To/temporal-invoice-mcp",
        "run",
        "server.py"
      ]
    }
  }
}

3. Restart Claude for Desktop after editing your config

  • If successful you’ll see invoice_processor under ‘Search & Tools’

4. To kick off processing the mock invoice, run:

trigger 

Use your MCP client (e.g., Claude Desktop) to call the trigger, approve, reject, and status tools. The trigger tool now returns both the workflow_id and run_id of the started workflow. Pass these values to the approve, reject, and status tools. The sample invoice lives at samples/invoice_acme.json. Inspect Temporal Web at http://localhost:8233. Kill and restart the worker at any time to observe deterministic replay.

5. Results

Claude submits the invoice workflow:

It can get status:

Claude + MCP can send inputs and updates to the process workflow such as approvals, or even do a combination of actions - all agentically, explaining in human analogies what’s going on if you ask it to:

What’s Cool About This:

  1. Agents and applications connected by MCP can provide a powerful way for humans to interact with processes and applications
GitHub에서 전체 README 보기

설치

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

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

설정

{ "mcpServers": { "invoice_processor": { "command": "/Path/To/Your/Install/Of/uv", "args": [ "--directory", "/Path/To/temporal-invoice-mcp", "run", "server.py" ] } } }