pto-agi

PTO MCP Server

Community pto-agi
Updated

PTO MCP Server

Minimal MCP server for PTOAi to expose user context to Agent Builder via Supabase.

Requirements

  • Node 18+
  • Supabase URL + Service Role Key

Setup

npm install

Create an env file (or export vars):

export SUPABASE_URL=...
export SUPABASE_SERVICE_ROLE_KEY=...
export MCP_TRANSPORT=http
export PORT=8787
export MCP_ALLOWED_ORIGINS=https://platform.openai.com,https://chatgpt.com
export MCP_HTTP_STATELESS=true
export MCP_OAUTH_COOKIE_SECRET=...
export MCP_OAUTH_REDIRECT_ORIGINS=https://chatgpt.com,https://chat.openai.com
export MCP_PUBLIC_URL=https://mcp-0brh.onrender.com
export SUPABASE_ANON_KEY=...

Run:

npm run dev

HTTP mode (recommended for Agent Builder)

The server runs on:

http://localhost:8787/mcp

Use this URL when connecting your Agent Builder MCP tool.

MCP_HTTP_STATELESS defaults to true, which is generally required for Agent Builder.Set it to false if you have a client that supports MCP session IDs.

OAuth (recommended for production)

The server exposes OAuth endpoints:

  • /.well-known/oauth-authorization-server
  • /oauth/authorize
  • /oauth/token
  • /oauth/register

Set MCP_OAUTH_COOKIE_SECRET and SUPABASE_ANON_KEY.By default the OAuth login page uses Supabase email/password.If you want to use your own login page, set MCP_OAUTH_LOGIN_URL and it will redirect there.

Health check:

http://localhost:8787/health

Stdio mode (local testing)

MCP_TRANSPORT=stdio npm run dev

Tools

  • get_profile
  • get_start_intake_latest
  • get_followup_latest
  • get_weekly_plans
  • save_weekly_plan

All tools require access_token from a signed-in Supabase session.You can also pass a bearer token via the Authorization header.

MCP Server ยท Populars

MCP Server ยท New

    klever-io

    Klever MCP Server

    MCP server for Klever blockchain smart contract development

    Community klever-io
    luohy15

    y-agent

    A Simple Agent App

    Community luohy15
    PrefectHQ

    FastMCP ๐Ÿš€

    ๐Ÿš€ The fast, Pythonic way to build MCP servers and clients.

    Community PrefectHQ
    meal-inc

    bonnard-cli

    Ultra-fast to deploy agentic-first mcp-ready semantic layer. Let your data be like water.

    Community meal-inc
    DevsHero

    ๐Ÿฅท ShadowCrawl MCP โ€” v2.3.0

    ๐Ÿฅท The FREE, Sovereign alternative to Firecrawl & Tavily. Pure Rust Stealth Scraper + Built-in God-Tier Meta-Search for AI Agents. Bypass Cloudflare & DataDome via HITL. Zero-bloat, ultra-clean LLM data. 99.99% Success Rate. ๐Ÿฆ€

    Community DevsHero