import React, { useState } from 'react'; import { Plug, Rss, Copy, Check } from 'lucide-react'; /** MCP sunucusu + RSS besleme kartı (API & Webhooks sekmesi). */ export const McpRssKarti = () => { const origin = typeof window !== 'undefined' ? window.location.origin : 'https://ihaleist.com'; const url = `${origin}/mcp`; const anahtar = 'ih_live_ANAHTARINIZ'; const [kopya, setKopya] = useState(null); const kopyala = async (k, t) => { try { await navigator.clipboard.writeText(t); setKopya(k); setTimeout(() => setKopya(null), 1500); } catch { /* yok */ } }; const ornekler = [ { k: 'cc', ad: 'Claude Code', not: 'terminalde tek komut', kod: `claude mcp add --transport http ihaleist ${url} --header "Authorization: Bearer ${anahtar}"` }, { k: 'cursor', ad: 'Cursor / Windsurf', not: '.cursor/mcp.json', kod: JSON.stringify({ mcpServers: { ihaleist: { url, headers: { Authorization: `Bearer ${anahtar}` } } } }, null, 2) }, { k: 'desktop', ad: 'Claude Desktop', not: 'claude_desktop_config.json (mcp-remote)', kod: JSON.stringify({ mcpServers: { ihaleist: { command: 'npx', args: ['-y', 'mcp-remote', url, '--header', `Authorization: Bearer ${anahtar}`] } } }, null, 2) }, ]; const rss = `${origin}/api/feeds/tenders.rss?key=${anahtar}&il=İstanbul&q=eldiven`; return (

MCP Sunucusu — yapay zekâ araçlarınıza İhaleist'i bağlayın

Claude Code, Cursor, Claude Desktop gibi MCP destekli araçlar İhaleist'i doğrudan sorgular: search_tenders, get_tender, search_results, search_items, upcoming_deadlines. Yukarıdaki API anahtarınızı kullanır.

{ornekler.map((o) => (

{o.ad} — {o.not}

{o.kod}
))}

RSS beslemesi — Feedly, Outlook, Slack RSS, n8n… (il, sektor, q filtreleri)

{rss}

Sonuç ilanları beslemesi anahtarsız: {origin}/api/feeds/sonuc.rss (firma, idare, il filtreleri). Anahtarı ih_live_ANAHTARINIZ yerine yazın.

); };