Ir al contenido

Cursor, VS Code y otros clientes

Cualquier cliente MCP que admita el transporte Streamable HTTP puede utilizar Meetingize. Los clientes que implementan la autorización MCP (descubrimiento OAuth 2.1) se conectan solo con la URL; los demás pueden enviar una clave de API de Meetingize como token bearer.

~/.cursor/mcp.json (todos los proyectos) o .cursor/mcp.json (un proyecto):

{
"mcpServers": {
"meetingize": {
"url": "https://app.meetingize.com/api/mcp"
}
}
}

Cursor muestra un botón Login para el servidor y abre la pantalla de consentimiento de Meetingize. Con una clave de API:

{
"mcpServers": {
"meetingize": {
"url": "https://app.meetingize.com/api/mcp",
"headers": { "Authorization": "Bearer ${env:MEETINGIZE_API_KEY}" }
}
}
}

.vscode/mcp.json:

{
"servers": {
"meetingize": { "type": "http", "url": "https://app.meetingize.com/api/mcp" }
}
}

El inspector oficial es útil para explorar las herramientas:

Ventana de terminal
npx @modelcontextprotocol/inspector

Elija el transporte Streamable HTTP, la URL https://app.meetingize.com/api/mcp y, a continuación, ejecute el flujo OAuth desde el inspector o añada la cabecera Authorization: Bearer mtgz_.... Modo de línea de comandos:

Ventana de terminal
npx @modelcontextprotocol/inspector --cli https://app.meetingize.com/api/mcp --transport http \
--header "Authorization: Bearer $MEETINGIZE_API_KEY" --method tools/list
import asyncio, os
from mcp import ClientSession
from mcp.client.streamable_http import streamablehttp_client
async def main():
headers = {"Authorization": f"Bearer {os.environ['MEETINGIZE_API_KEY']}"}
async with streamablehttp_client("https://app.meetingize.com/api/mcp", headers=headers) as (read, write, _):
async with ClientSession(read, write) as session:
await session.initialize()
result = await session.call_tool("search_meetings", {"query": "budget", "limit": 5})
print(result.content[0].text)
asyncio.run(main())

El servidor no mantiene estado: no hay id de sesión, y cada solicitud es un mensaje JSON-RPC enviado a la URL con un token bearer.

Ventana de terminal
curl -s https://app.meetingize.com/api/mcp \
-H "Authorization: Bearer $MEETINGIZE_API_KEY" \
-H "Content-Type: application/json" -H "Accept: application/json, text/event-stream" \
-d '{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"search_meetings","arguments":{"query":"budget"}}}'

Sin token, el servidor responde 401 con una cabecera WWW-Authenticate que apunta a sus metadatos de recurso protegido, que es como los clientes compatibles con OAuth descubren cómo iniciar sesión. GET sobre el endpoint responde 405 (sin flujo iniciado por el servidor).