تخطَّ إلى المحتوى
AstroWay/api v2.384.6 · ar
جميع الأنظمة تعمل بشكل طبيعي

وكلاء الذكاء الاصطناعي وMCP

آخر تحديث عرض بصيغة Markdown إعداد الوكيل

بتبني وكيل AI لازم يعمل حسابات فلكية حقيقية بدل الهلاوس؟ AstroWay بتتصل بـ Claude (Anthropic), ChatGPT-4 (OpenAI), Llama 3.3 (Groq), DeepSeek, Google Gemini, Mistral - عبر MCP، llms.txt أو استدعاءات HTTP مباشرة. ثلاث طرق للتكامل - اختار حسب نوع الوكيل:

  • llms.txt: ملفات اكتشاف للوكيل اللي بيقرا الوثائق (Cursor IDE، Windsurf، Claude في المتصفح، خطوط RAG مخصصة على LangChain/LlamaIndex).
  • MCP сервер: صفر كود لـ Claude Desktop، Cursor IDE، Windsurf، VS Code (llm CLI) وأي عميل متوافق مع MCP (بما فيها GPT مع MCP عبر OpenAI Realtime API).
  • HTTP API: استدعاء مباشر من الوكيل الخاص أو إطار عمل (LangChain، LlamaIndex، AutoGen، CrewAI).

الموقع بيعرض ملفين قابلين للقراءة آليًا بصيغة llms.txt:

  • /llms.txt: فهرس كل صفحات الوثائق مقسّم حسب الأقسام (API Reference, Use Cases, Examples, Products). صغير، يندمج مع أي نافذة سياق.
  • /llms-full.txt: كل محتوى الوثائق بملف نص عادي واحد. مناسب للفهرسة غير المتصلة بقاعدة بيانات متجهة أو للدمج مرة واحدة في السياق.
سيناريوملف
Cursor/Windsurf “اقرأ docs astroway وساعد في التكامل”/llms.txt (الوكيل بيجلب الأقسام المطلوبة بنفسه)
خط أنابيب RAG خاص / قاعدة بيانات متجهة لبوت FAQ/llms-full.txt (fetch واحد - كل المحتوى)
Claude/ChatGPT في المتصفح: “هذا API بتاعنا، ابني عميل”/llms-full.txt ألصقه في الـ prompt
وكيل إنتاج مع تنفيذ الاستدعاءاتMCP сервер أو HTTP API (انظر أدناه)

مثال: سحب إلى الوكيل الخاص

Section titled “مثال: سحب إلى الوكيل الخاص”
const docs = await fetch('https://api.astroway.info/llms-full.txt').then(r => r.text());
const systemPrompt = `You are an integration assistant for AstroWay API.
Documentation:
${docs}
When the user asks how to do X, return a working code snippet using their API key.`;

خادم MCP (موصى به لـ Claude Desktop)

Section titled “خادم MCP (موصى به لـ Claude Desktop)”

Model Context Protocol (MCP) - معيار مفتوح لتوصيل الأدوات بنماذج AI. خادم MCP المستضاف من AstroWay يقدم 883 أداة، واحدة لكل عملية API، بالإضافة إلى 12 موجهًا و14 موردًا.

أضف إلى claude_desktop_config.json:

{
"mcpServers": {
"astroway": {
"command": "npx",
"args": ["@astroway/mcp"],
"env": {
"ASTROWAY_API_KEY": "aw_live_your_key_here"
}
}
}
}

بعد إعادة تشغيل Claude Desktop سيظهر كل الـ 735 أداة في حزمة npm. لتقليل القائمة، عيّن ASTROWAY_TOOL_GROUPS أو اربط بخادم نطاق، انظر إعدادات MCP.

أداةماذا يفعل
astroway_western_chartحساب خريطة الميلاد
astroway_relational_synastryتوافق (سينستري) بين شخصين
astroway_horoscope_dailyبرج اليوم
astroway_ai_interpret_natalتفسير AI لخريطة الميلاد
astroway_hd_human_designخريطة HD كاملة
astroway_prognostics_transitsعبور (ترانزيت) حالي

القائمة الكاملة: 883 أداة على الخادم المستضاف، كل API، 795 منها بمخطط استجابة مُصنّف.

المستخدم: ابني خريطة ميلاد لشخص مولود 14 يوليو 1990 الساعة 14:30 في كييف. ماذا يعني الشمس في السرطان في البيت العاشر؟

Claude: يستخدم astroway_western_chart للحساب، ثم astroway_ai_interpret_placement للتفسير. يرجع مواقع الكواكب ببيانات حقيقية وتفسيرًا مفهومًا.

للـ AI-وكيل بدون دعم MCP - استخدم HTTP API مباشرة.

// The AI agent calls /interpret/natal for an interpretation
const r = await fetch('https://api.astroway.info/v1/interpret/natal', {
method: 'POST',
headers: {
'X-Api-Key': process.env.ASTROWAY_API_KEY!,
'Content-Type': 'application/json',
},
body: JSON.stringify({
date: '1990-07-14',
time: '14:30:00',
timezoneOffset: 3,
latitude: 50.4501,
longitude: 30.5234,
}),
});
const { data: result } = await r.json();
// result.interpretation - ready AI interpretation
// result.disclaimer - disclaimer to display
// 1. Get raw data from /chart (cheaper - 20 credits)
const chart = await fetch('https://api.astroway.info/v1/chart', { ... });
const { data } = await chart.json();
// 2. Pass the data to your own LLM
const prompt = `Interpret this natal chart: ${JSON.stringify(data.planets)}`;
const llmResponse = await myLLM.generate(prompt);

خادم MCP + Claude/ChatGPT. المستخدم يطلب - الوكيل يحسب ويفسر. الميزانية: خطة Free للاستخدام الشخصي.

بوت محتوى لوسائل التواصل

Section titled “بوت محتوى لوسائل التواصل”

توليد يومي للأبراج لـ 12 علامة عبر /horoscope/daily. 12 طلب في اليوم = 240 ائتمان. خطة Free مع رصيد كبير.

/interpret/natal + /interpret/transits لكل عميل. 100 عميل/يوم = 10 000 ائتمان/يوم. خطة Pro.