İçeriğe geç

Cursor, VS Code ve diğer istemciler

Streamable HTTP aktarımını destekleyen her MCP istemcisi Meetingize’ı kullanabilir. MCP yetkilendirmesini (OAuth 2.1 keşfi) uygulayan istemciler yalnızca URL ile bağlanır; diğerleri bir Meetingize API anahtarını bearer token olarak gönderebilir.

~/.cursor/mcp.json (tüm projeler) veya .cursor/mcp.json (tek proje):

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

Cursor sunucu için bir Login düğmesi gösterir ve Meetingize onay ekranını açar. Bir API anahtarıyla:

{
"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" }
}
}

Resmî inspector, araçları keşfetmek için kullanışlıdır:

Terminal window
npx @modelcontextprotocol/inspector

Streamable HTTP aktarımını, https://app.meetingize.com/api/mcp URL’sini seçin; ardından OAuth akışını inspector’dan çalıştırın veya Authorization: Bearer mtgz_... başlığını ekleyin. Komut satırı modu:

Terminal window
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())

Sunucu durumsuzdur: oturum kimliği yoktur, her istek bir bearer token ile URL’ye gönderilen bir JSON-RPC mesajıdır.

Terminal window
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"}}}'

Token olmadan sunucu, korumalı kaynak meta verilerine işaret eden bir WWW-Authenticate başlığıyla 401 yanıtı verir; OAuth destekli istemciler nasıl oturum açacaklarını bu şekilde keşfeder. Endpoint üzerindeki GET isteği 405 yanıtı verir (sunucu tarafından başlatılan akış yok).