AsliCode

درگاه توسعه‌دهنده — عرشیا محبی (AsliCode)

APIهای عمومی arshia.rrast.ir: MCP، NLWeb /ask، OpenAPI، سندباکس. بدون کلید و بدون ثبت‌نام.

یک نگاه

همهٔ مسیرهای زیر عمومی و فقط‌خواندنی‌اند (جز ثبت یادگاری). نه کلید API می‌خواهند، نه ثبت‌نام، نه پرداخت. سایت روی Cloudflare Workers اجرا می‌شود و پاسخ‌ها JSON استاندارد دارند.

https://arshia.rrast.ir
روشمسیرکار
POST/mcpMCP (JSON-RPC 2.0): initialize، ping، tools/list، tools/call، resources/list، resources/read
POST / GET/askجست‌وجوی کلیدواژه‌ای NLWeb v0.55 روی صفحه‌ها، پروژه‌ها و نوشته‌ها
GET/api/guestbookپیام‌های عمومی یادگاری
POST/api/guestbookثبت پیام (حداکثر ۳ پیام در ۱۰ دقیقه برای هر IP)
GET/api/donate-statsآمار زندهٔ حمایت از دارمت
POST/api/sandbox/echoسندباکس: همان بدنه را برمی‌گرداند، هیچ چیزی نمی‌نویسد
GET/openapi.jsonمشخصات OpenAPI 3.1

شروع سریع

کشف ابزارها، سپس یک فراخوانی واقعی:

curl -s https://arshia.rrast.ir/mcp \
  -H 'content-type: application/json' \
  -d '{"jsonrpc":"2.0","id":1,"method":"tools/list"}'
curl -s https://arshia.rrast.ir/mcp \
  -H 'content-type: application/json' \
  -d '{"jsonrpc":"2.0","id":2,"method":"tools/call","params":{"name":"get_profile","arguments":{"language":"en"}}}'

و پرسش طبیعی از محتوای سایت:

curl -s https://arshia.rrast.ir/ask \
  -H 'content-type: application/json' \
  -d '{"query":{"text":"who is Arshia Mohebi?"},"prefer":{"streaming":false,"mode":"list"},"meta":{"version":"0.55"}}'

احراز هویت

برای مسیرهای عمومی هیچ احراز هویتی لازم نیست؛ هیچ توکن یا کوکی‌ای هم صادر نمی‌شود. مسیرهای مدیریتی (/admin/*) با HTTP Basic و رمز STATS_PASSWORD محافظت می‌شوند و برای ایجنت‌ها باز نیستند. ساخت فاکتور فروشگاه فقط از خود صفحه و با کلیدهای NoaPay روی سرور انجام می‌شود؛ API عمومی برای پرداخت وجود ندارد.

ابزارهای MCP

سرور MCP این سایت در /mcp قرار دارد و فقط واقعیت‌های منتشرشده را می‌خواند:

ابزارتوضیح
get_profileWho this site is about: full name, what Arshia Mohebi (AsliCode) does, a short about text, the names he is known by and the topics he works with. Start here.
list_linksList every link this page publishes (Telegram, Instagram and the outbound links), with the id each one can be fetched by and its absolute URL. Optional query filters by id or label.
get_linkGet one published link by its id: the absolute URL, the label and what the link is for. Use list_links first when the id is unknown.
get_contactHow to reach Arshia Mohebi: the contact channels this site publishes, what each is for, and the contact page. No email address or phone number is published.
get_sectionsThe prose sections of this site (about, contact, privacy) with their HTML URL and markdown twin, for citing or reading the long text without scraping.

سندباکس و سقف نرخ

POST /api/sandbox/echo بدنهٔ JSON (تا ۸ کیلوبایت) را بدون هیچ نوشتنی برمی‌گرداند تا اتصال را بی‌خطر تست کنید. سقف‌ها: /ask سی درخواست در دقیقه، /api/sandbox/echo شصت در دقیقه و ثبت یادگاری سه در ده دقیقه برای هر IP؛ پاسخ ۴۲۹ یعنی صبر کنید. صفحهٔ سندباکس

فایل‌های ماشینی