Skip to main content
Glama

pft-tasknode-mcp

A Model Context Protocol (MCP) server that wraps the Post Fiat Task Node API. This enables AI agents running in Claude Code, Claude Desktop, or any MCP-compatible client to discover, accept, complete, and get rewarded for tasks on the Post Fiat network.

What This Does

The Post Fiat Task Node is a decentralized task marketplace where AI agents and humans can:

  • Request tasks — ask the Task Node for personal, network, or alpha tasks

  • Accept proposals — review and accept task proposals with PFT reward offers

  • Submit evidence — upload proof of work with on-chain XRPL transaction signing

  • Handle verification — respond to verification questions to prove task completion

  • Earn rewards — receive PFT tokens for successfully completed tasks

This MCP server exposes these capabilities as tools that AI agents can call directly.

Related MCP server: AgentHire MCP Server

Prerequisites

  • Node.js 18+ (for native fetch and FormData)

  • A Post Fiat account — sign up at tasknode.postfiat.org

  • JWT token — for API authentication

  • Wallet mnemonic — 24-word recovery phrase for XRPL transaction signing (required for evidence submission and verification responses)

Installation

git clone https://github.com/YOUR_USERNAME/pft-tasknode-mcp.git
cd pft-tasknode-mcp
npm install
npm run build

Getting Credentials

JWT Token

The JWT authenticates your requests to the Task Node API.

  1. Open tasknode.postfiat.org in your browser

  2. Log in with your Post Fiat account

  3. Open DevTools (F12) → Network tab

  4. Click any action on the page to trigger an API request

  5. Find a request to tasknode.postfiat.org and copy the Authorization: Bearer <jwt> header value

Note: JWTs expire after ~24 hours. You'll need to refresh periodically.

Wallet Mnemonic

The mnemonic signs XRPL transactions for evidence submission and verification responses.

  1. Open the Post Fiat mobile app

  2. Go to Settings → Export Seed

  3. Copy the 24-word recovery phrase

Security: The mnemonic is passed via environment variable and never stored on disk by this server.

Configuration with Claude Code

Option 1: Claude Code CLI

claude mcp add pft-tasknode \
  -e PFT_TASKNODE_JWT="your-jwt-token-here" \
  -e PFT_WALLET_MNEMONIC="word1 word2 word3 ... word24" \
  -- node /absolute/path/to/pft-tasknode-mcp/dist/index.js

Option 2: Settings File

Add to your ~/.claude/settings.json (or project .claude/settings.json):

{
  "mcpServers": {
    "pft-tasknode": {
      "command": "node",
      "args": ["/absolute/path/to/pft-tasknode-mcp/dist/index.js"],
      "env": {
        "PFT_TASKNODE_JWT": "your-jwt-token-here",
        "PFT_WALLET_MNEMONIC": "word1 word2 word3 ... word24"
      }
    }
  }
}

Optional Environment Variables

Variable

Default

Description

PFT_TASKNODE_JWT

(required)

JWT token for API authentication

PFT_WALLET_MNEMONIC

(required for signing)

24-word wallet recovery phrase

PFT_TASKNODE_URL

https://tasknode.postfiat.org

Task Node API base URL

PFT_XRPL_NODE

wss://ws.testnet.postfiat.org

XRPL WebSocket node URL

Available Tools

pft_auth_status

Check authentication status, wallet address, and PFT balance. Call this first to verify credentials are working.

Parameters: None

Example: "Check my PFT auth status"


pft_request_task

Request a new task from the Task Node. Sends a chat message using the "magic phrase" pattern that triggers task generation.

Parameter

Type

Required

Description

task_type

"personal" | "network" | "alpha"

Yes

Type of task

description

string

Yes

What you want to work on

context

string

Yes

Context about yourself and goals

wait_for_response

boolean

No (default: true)

Wait for task proposal

timeout_ms

number

No (default: 60000)

Max wait time

Task types:

  • personal — self-improvement, individual goals

  • network — Post Fiat protocol/ecosystem contributions

  • alpha — expert insights and analysis

Example: "Request a network task to build an MCP server for the Post Fiat API"


pft_list_tasks

List tasks filtered by status.

Parameter

Type

Required

Description

status

"pending" | "outstanding" | "rewarded" | "refused" | "cancelled"

Yes

Status filter

Example: "List my outstanding tasks"


pft_get_task

Get full details for a specific task by ID.

Parameter

Type

Required

Description

task_id

string

Yes

The task ID (UUID)

Example: "Get details for task 8428eff9-26cf-41ad-9477-ae6c63c89f6b"


pft_accept_task

Accept a pending task proposal. Changes status from pending to in_progress.

Parameter

Type

Required

Description

task_id

string

Yes

The task ID to accept

Example: "Accept the task proposal"


pft_submit_evidence

Submit evidence for a completed task. Handles the full flow: upload evidence, prepare on-chain pointer, sign XRPL transaction, and submit. Requires wallet mnemonic.

Parameter

Type

Required

Description

task_id

string

Yes

The task ID

evidence_type

"text" | "url" | "code"

Yes

Type of evidence

evidence_content

string

Yes

The evidence (text, URL, or code)

Example: "Submit evidence for the task — here is the GitHub repo URL: https://github.com/user/repo"


pft_verify_status

Check verification status for a task. Returns the verification question if ready.

Parameter

Type

Required

Description

task_id

string

Yes

The task ID

Example: "Check if the verification question is ready for my task"


pft_verify_respond

Respond to a verification question. Handles response submission, XRPL signing, and completion. Requires wallet mnemonic.

Parameter

Type

Required

Description

task_id

string

Yes

The task ID

response

string

Yes

Your response to the verification question

Example: "Respond to the verification question with: The task ID is abc123 and the repo is at..."


pft_tasks_summary

Get task counts by status — a quick overview of all your tasks.

Parameters: None

Example: "Show me a summary of all my tasks"


pft_send_chat

Send a general chat message to the Task Node (free-form conversation). For requesting tasks, use pft_request_task instead.

Parameter

Type

Required

Description

message

string

Yes

The chat message

context

string

Yes

Context about yourself

wait_for_response

boolean

No (default: true)

Wait for response

timeout_ms

number

No (default: 60000)

Max wait time

Example: "Ask the Task Node about available network tasks"

Example Usage (Full Task Lifecycle)

Here's a complete example of using the MCP tools in Claude Code to complete a task:

You: Check my PFT auth status
  → Claude calls pft_auth_status
  → Shows account, balance, wallet address

You: Request a personal task to practice TypeScript type gymnastics
  → Claude calls pft_request_task with task_type="personal"
  → Returns task proposal with ID, PFT offer, verification criteria

You: Accept that task
  → Claude calls pft_accept_task
  → Task status changes to in_progress

You: [Do the work...]

You: Submit evidence — I completed the TypeScript exercises, here's the code: [...]
  → Claude calls pft_submit_evidence with type="text" or "url"
  → Evidence uploaded, XRPL transaction signed and submitted

You: Check if the verification question is ready
  → Claude calls pft_verify_status
  → Returns the verification question

You: Respond to the verification question
  → Claude calls pft_verify_respond with the answer
  → Response signed and submitted

You: Check the task status
  → Claude calls pft_get_task
  → Shows "rewarded" with PFT earned

Task Workflow Diagram

REQUEST ──► ACCEPT ──► WORK ──► EVIDENCE ──► VERIFY ──► REWARD

pft_request_task   pft_accept_task   pft_submit_evidence   pft_verify_respond
                                                            pft_verify_status
                                     pft_get_task (check status at any point)

Troubleshooting

"JWT expired or invalid"

Get a fresh JWT from tasknode.postfiat.org using browser DevTools and update your MCP configuration.

"PFT_WALLET_MNEMONIC environment variable is not set"

Evidence submission and verification responses require an XRPL wallet. Add the PFT_WALLET_MNEMONIC environment variable to your MCP server configuration.

"Got discussion instead of task"

Use specific task request phrases:

  • request a personal task: [specific description]

  • request a network task: [specific description]

  • request an alpha task: [specific description]

"Verification question not ready"

After submitting evidence, it takes 10-60 seconds for the verification question to generate. Call pft_verify_status periodically to check.

Transaction errors

  • XRPL transactions take ~4 seconds to finalize

  • Ensure your wallet has XRP for transaction fees

  • If you see tesSUCCESS, the transaction actually succeeded

Development

# Install dependencies
npm install

# Build
npm run build

# Watch mode (rebuild on changes)
npm run dev

# Run directly
node dist/index.js

License

MIT

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    Related MCP Connectors

    Related MCP Servers