{
  "$schema": "https://static.modelcontextprotocol.io/schemas/mcp-server-card/v1.json",
  "version": "1.0",
  "protocolVersion": "2025-06-18",
  "serverInfo": {
    "name": "trackinpublic",
    "title": "TrackInPublic",
    "version": "1.1.0"
  },
  "description": "Habit streaks and today's list on a public page: check in, add tasks, commit your day.",
  "iconUrl": "https://trackinpublic.app/icon-512.png",
  "documentationUrl": "https://trackinpublic.app/integrations/mcp",
  "termsOfServiceUrl": "https://trackinpublic.app/terms",
  "privacyPolicyUrl": "https://trackinpublic.app/privacy",
  "supportUrl": "https://trackinpublic.app/support",
  "transport": {
    "type": "streamable-http",
    "endpoint": "/api/mcp",
    "url": "https://trackinpublic.app/api/mcp"
  },
  "capabilities": {
    "tools": {
      "listChanged": false
    },
    "resources": {
      "listChanged": false
    },
    "prompts": {
      "listChanged": false
    }
  },
  "authentication": {
    "required": true,
    "schemes": [
      "oauth2",
      "bearer"
    ],
    "oauth2": {
      "protectedResourceMetadata": "https://trackinpublic.app/.well-known/oauth-protected-resource",
      "authorizationServerMetadata": "https://trackinpublic.app/.well-known/oauth-authorization-server",
      "pkce": [
        "S256"
      ],
      "dynamicClientRegistration": true,
      "scopes": [
        "read",
        "write"
      ]
    },
    "bearer": {
      "description": "Personal key tip_live_... from the dashboard (Pro plan)."
    }
  },
  "instructions": "Check-ins and tasks are for today only (the user's timezone): there is no backfilling. Call get_today or list_habits first to get exact names.",
  "tools": [
    {
      "name": "get_me",
      "title": "Get my account",
      "description": "Read-only. Returns the signed-in user's display name, handle, public page URL, timezone, plan and today's date in that timezone.",
      "inputSchema": {
        "type": "object",
        "properties": {},
        "additionalProperties": false
      },
      "annotations": {
        "title": "Get my account",
        "readOnlyHint": true,
        "destructiveHint": false,
        "idempotentHint": true,
        "openWorldHint": false
      }
    },
    {
      "name": "list_habits",
      "title": "List my habits",
      "description": "Read-only. Lists every habit with its id, name, visibility, current streak, best streak, total check-ins and whether it is already checked today. Call it first to get the exact habit names that check_in needs.",
      "inputSchema": {
        "type": "object",
        "properties": {},
        "additionalProperties": false
      },
      "annotations": {
        "title": "List my habits",
        "readOnlyHint": true,
        "destructiveHint": false,
        "idempotentHint": true,
        "openWorldHint": false
      }
    },
    {
      "name": "get_today",
      "title": "Get today's list",
      "description": "Read-only. Returns today's list in the user's timezone: habits and one-off tasks with what is done, the streak of each habit, whether the user committed in public this morning, and the recap hour.",
      "inputSchema": {
        "type": "object",
        "properties": {},
        "additionalProperties": false
      },
      "annotations": {
        "title": "Get today's list",
        "readOnlyHint": true,
        "destructiveHint": false,
        "idempotentHint": true,
        "openWorldHint": false
      }
    },
    {
      "name": "create_habit",
      "title": "Create a habit",
      "description": "Write. Creates a new daily habit, public by default (that is the product: streaks kept in public). Names are unique per account, case-insensitive, 60 characters at most. Fails with a clear message when the plan's habit limit is reached.",
      "inputSchema": {
        "type": "object",
        "required": [
          "name"
        ],
        "properties": {
          "name": {
            "type": "string",
            "description": "Habit name, e.g. \"Gym\" or \"Write 500 words\""
          },
          "isPublic": {
            "type": "boolean",
            "description": "Set false to keep it private (default true)"
          }
        },
        "additionalProperties": false
      },
      "annotations": {
        "title": "Create a habit",
        "readOnlyHint": false,
        "destructiveHint": false,
        "idempotentHint": false,
        "openWorldHint": false
      }
    },
    {
      "name": "check_in",
      "title": "Check a habit in for today",
      "description": "Write. Marks a habit done for TODAY in the user's timezone. Past days can never be written (no backfilling: that is the rule that keeps a public streak honest). Pass done:false to undo today's check-in. Safe to repeat.",
      "inputSchema": {
        "type": "object",
        "required": [
          "habit"
        ],
        "properties": {
          "habit": {
            "type": "string",
            "description": "Habit id or exact habit name (case-insensitive)"
          },
          "done": {
            "type": "boolean",
            "description": "false to uncheck (default true)"
          }
        },
        "additionalProperties": false
      },
      "annotations": {
        "title": "Check a habit in for today",
        "readOnlyHint": false,
        "destructiveHint": false,
        "idempotentHint": true,
        "openWorldHint": false
      }
    },
    {
      "name": "add_task",
      "title": "Add a task to today",
      "description": "Write. Adds a one-off task to TODAY's list (20 a day at most; tasks only exist for the day they are added). Public by default: it shows on the day page and in the recap.",
      "inputSchema": {
        "type": "object",
        "required": [
          "title"
        ],
        "properties": {
          "title": {
            "type": "string",
            "description": "Task, e.g. \"Ship the landing page\""
          },
          "isPublic": {
            "type": "boolean",
            "description": "Set false to keep it private (default true)"
          }
        },
        "additionalProperties": false
      },
      "annotations": {
        "title": "Add a task to today",
        "readOnlyHint": false,
        "destructiveHint": false,
        "idempotentHint": false,
        "openWorldHint": false
      }
    },
    {
      "name": "complete_task",
      "title": "Tick a task",
      "description": "Write. Marks one of today's tasks as done (done:false to undo). Pass the task id or its exact title; call get_today first to see them. Safe to repeat.",
      "inputSchema": {
        "type": "object",
        "required": [
          "task"
        ],
        "properties": {
          "task": {
            "type": "string",
            "description": "Task id or exact title (case-insensitive)"
          },
          "done": {
            "type": "boolean",
            "description": "false to undo (default true)"
          }
        },
        "additionalProperties": false
      },
      "annotations": {
        "title": "Tick a task",
        "readOnlyHint": false,
        "destructiveHint": false,
        "idempotentHint": true,
        "openWorldHint": false
      }
    },
    {
      "name": "commit_today",
      "title": "Commit to today in public",
      "description": "Write, visible to others. Commits to today's list in public: the day page goes live and, only if the user turned auto-posting on, @trackinpublic posts the list on their networks and tags them. The evening recap follows at the user's recap time. Call it only when the user asks to commit or publish. Safe to repeat.",
      "inputSchema": {
        "type": "object",
        "properties": {},
        "additionalProperties": false
      },
      "annotations": {
        "title": "Commit to today in public",
        "readOnlyHint": false,
        "destructiveHint": false,
        "idempotentHint": true,
        "openWorldHint": true
      }
    }
  ],
  "prompts": [
    {
      "name": "plan_my_day",
      "title": "Plan my day",
      "description": "Turn a rough list into today's TrackInPublic tasks and commit to it.",
      "arguments": [
        {
          "name": "tasks",
          "description": "What you plan to do today, in your own words",
          "required": true
        }
      ]
    },
    {
      "name": "check_in_done",
      "title": "Check in what I finished",
      "description": "Check off the habits and tasks you just completed.",
      "arguments": [
        {
          "name": "done",
          "description": "What you finished, e.g. \"the gym and my Spanish session\"",
          "required": true
        }
      ]
    },
    {
      "name": "weekly_review",
      "title": "Weekly review",
      "description": "Review your streaks and pick one habit to protect.",
      "arguments": []
    }
  ],
  "resources": []
}