Pular para o conteúdo

Guias

Conectar via MCP

O Waity é um servidor MCP remoto com três ferramentas somente leitura. Adicione-o a qualquer cliente que fale MCP via HTTP.

URL do servidor

URL

https://api.waity.ai/mcp

Funciona sem chave: cada sessão tem 100 chamadas por dia. Com chave, envie-a como X-Api-Key ou Authorization: Bearer.

Um conector hospedado que aceita só uma URL pode levar a chave nela: https://api.waity.ai/mcp?key=wk_…. O Waity nunca registra query strings, mas trate essa URL como a chave.

Adicione ao seu cliente

Claude

  1. Abra Configurações e depois Conectores.
  2. Escolha "Add custom connector".
  3. Dê o nome Waity, cole a URL abaixo e escolha "Add".
https://api.waity.ai/mcp

ChatGPT

  1. Abra Configurações e depois "Apps & Connectors".
  2. Em "Advanced settings", ative o "Developer mode".
  3. Crie um conector chamado Waity com a URL abaixo e sem autenticação.
  4. Em um chat, escolha o Waity no menu de ferramentas.
https://api.waity.ai/mcp

Claude Code

Execute isto em um terminal:

claude mcp add --transport http waity https://api.waity.ai/mcp

Depois execute /mcp no Claude Code para verificar a conexão.

Cursor

Ou adicione em ~/.cursor/mcp.json:

{
  "mcpServers": {
    "waity": {
      "url": "https://api.waity.ai/mcp"
    }
  }
}

VS Code

Ou execute "MCP: Add Server", escolha HTTP e cole a URL:

https://api.waity.ai/mcp

Ou adicione em .vscode/mcp.json:

{
  "servers": {
    "waity": {
      "type": "http",
      "url": "https://api.waity.ai/mcp"
    }
  }
}

Outros clientes

Adicione a URL, ou este JSON se seu cliente usar um arquivo de configuração:

{
  "mcpServers": {
    "waity": {
      "url": "https://api.waity.ai/mcp"
    }
  }
}

Ferramentas

As três ferramentas são somente leitura e retornam links de acompanhamento como chamadas de ferramenta prontas; find_waits e get_wait usam a visão mínima por padrão.

find_waits

Lugares com a espera atual: perto de um ponto, por nome ou local, ou por id.

NomeTipoDescrição
latnumberLatitude in decimal degrees
lngnumberLongitude in decimal degrees
qstringA place name, city, airport code or ZIP (at most 100 characters). With lat/lng, results sort by distance.
idsstring[]Up to 25 place ids, returned in this order.
categoryer | urgent-care | dmv | airport | border[]Only these categories. Omit for all. Cobertura atual; veja GET /v1/categories.
openbooleantrue: only places open now.
sortdistance | wait | totaldistance (default with lat/lng), wait, or total (needs lat/lng).
limitinteger1 to 25, default 10.
viewminimal | fullminimal (default) for the essentials, full for sources, timestamps, hours and alternatives.

get_wait

Um lugar: agora, o habitual, quando deve diminuir e alternativas próximas. Um id de grupo retorna as filas dentro dele.

NomeTipoDescrição
idobrigatóriostringA place id from find_waits, e.g. pl_xaed7pr1f5.
undernumberThreshold in minutes. Defaults: er, urgent-care and border 30, dmv 20, airport 15.
travel_minnumberTravel time in minutes, for a leave-by time.
datestringLocal date YYYY-MM-DD, today to 7 days ahead, to plan a day.
latnumberThe user's latitude, for distances.
lngnumberThe user's longitude, for distances.
forecastbooleanWith view minimal, add a compact hourly forecast [{at, value}].
viewminimal | fullminimal (default) for the essentials, full for sources, timestamps, hours and alternatives.

get_history

Como foram as esperas de um lugar: por hora, por dia ou cada leitura. Precisa de uma chave; nunca prevê uma visita.

NomeTipoDescrição
idobrigatóriostringA place id from find_waits (one place, lane or department, not a group), e.g. pl_xaed7pr1f5.
fromstringStart, inclusive: a date YYYY-MM-DD (local to the place) or an ISO 8601 date-time with offset. Default: 7 days before to.
tostringEnd, exclusive: a date YYYY-MM-DD (local to the place) or an ISO 8601 date-time with offset. A date means the end of that day. Default: now.
granularityraw | hour | dayhour (default): hourly avg, median, p90, min, max. day: one row per local day. raw: every posted reading.
tierofficial | place | agentWhich kind of source. Default: the place's displayed source.
cursorstringpage.next_cursor from the previous page; carries the range.
limitintegerRows per page. Caps: raw 1000, hour 336, day 366.

MCP e REST

Cookies essenciais mantêm o site funcionando. Cookies de análise opcionais nos ajudam a melhorá-lo. Veja nossa Política de Privacidade e os Termos.