/ الدليل / الملعب / Nanobot
● مجتمع HKUDS ⚡ فوري

Nanobot

بواسطة HKUDS · HKUDS/nanobot

If FastMCP and Upsonic feel heavy: Nanobot is a few hundred lines of Python that gives you a working personal agent with MCP support.

Nanobot is an academic-style minimal agent framework. Strips most abstraction; you bring tools and an LLM, it gives you the loop. Use it when you want a teachable, hackable baseline for an MCP-aware agent.

لماذا تستخدمه

الميزات الأساسية

عرض مباشر

كيف يبدو في الممارسة

جاهز

التثبيت

اختر العميل

~/Library/Application Support/Claude/claude_desktop_config.json  · Windows: %APPDATA%\Claude\claude_desktop_config.json
{
  "mcpServers": {
    "nanobot-mcp": {
      "command": "uvx",
      "args": [
        "nanobot",
        "serve",
        "--mcp"
      ]
    }
  }
}

افتح Claude Desktop → Settings → Developer → Edit Config. أعد التشغيل بعد الحفظ.

~/.cursor/mcp.json · .cursor/mcp.json
{
  "mcpServers": {
    "nanobot-mcp": {
      "command": "uvx",
      "args": [
        "nanobot",
        "serve",
        "--mcp"
      ]
    }
  }
}

يستخدم Cursor نفس مخطط mcpServers مثل Claude Desktop. إعدادات المشروع أولى من الإعدادات العامة.

VS Code → Cline → MCP Servers → Edit
{
  "mcpServers": {
    "nanobot-mcp": {
      "command": "uvx",
      "args": [
        "nanobot",
        "serve",
        "--mcp"
      ]
    }
  }
}

انقر على أيقونة MCP Servers في شريط Cline الجانبي، ثم "Edit Configuration".

~/.codeium/windsurf/mcp_config.json
{
  "mcpServers": {
    "nanobot-mcp": {
      "command": "uvx",
      "args": [
        "nanobot",
        "serve",
        "--mcp"
      ]
    }
  }
}

نفس الصيغة مثل Claude Desktop. أعد تشغيل Windsurf لتطبيق التغييرات.

~/.continue/config.json
{
  "mcpServers": [
    {
      "name": "nanobot-mcp",
      "command": "uvx",
      "args": [
        "nanobot",
        "serve",
        "--mcp"
      ]
    }
  ]
}

يستخدم Continue مصفوفة من كائنات الخادم بدلاً من خريطة.

~/.config/zed/settings.json
{
  "context_servers": {
    "nanobot-mcp": {
      "command": {
        "path": "uvx",
        "args": [
          "nanobot",
          "serve",
          "--mcp"
        ]
      }
    }
  }
}

أضف إلى context_servers. يعيد Zed التحميل تلقائيًا عند الحفظ.

claude mcp add nanobot-mcp -- uvx nanobot serve --mcp

أمر من سطر واحد. تحقق باستخدام claude mcp list. احذف باستخدام claude mcp remove.

حالات الاستخدام

استخدامات عملية: Nanobot

Learn the agent loop by reading the source

👤 Developers ⏱ ~15 min intermediate

متى تستخدمه: You want to understand what FastMCP / Upsonic do under the hood.

الخطوات
  1. Read
    Open the main module — single-file core.✓ تم النسخ
    → Mental model
  2. Run
    Start the bot; call its MCP tools from Claude.✓ تم النسخ
    → Works
  3. Modify
    Add a tool or change the planner.✓ تم النسخ
    → Fork ready

النتيجة: Working hackable baseline for your own agent.

التركيبات

اجمعها مع خوادم MCP أخرى لتحقيق نتائج x10

nanobot-mcp + fastmcp-prefect

Prototype with Nanobot; harden with FastMCP for production

Combine nanobot-mcp with fastmcp-prefect: Prototype with Nanobot; harden with FastMCP for production✓ تم النسخ

الأدوات

ما يوفره هذا الـ MCP

الأداةالمدخلاتمتى تستدعيهاالتكلفة
run (see docs) Run a task through the nanobot loop 1 call

التكلفة والحدود

تكلفة التشغيل

حصة API
Bound by LLM
الرموز لكل استدعاء
Normal
التكلفة المالية
Free OSS
نصيحة
Keep tool sets small — Nanobot is minimal, not magical

الأمان

الصلاحيات والأسرار ونطاق الأثر

تخزين بيانات الاعتماد: LLM keys in env
نقل البيانات الخارجي: Configured provider

استكشاف الأخطاء

الأخطاء الشائعة وحلولها

Planner gets stuck

Add a step budget; minimal planners need explicit halts

البدائل

Nanobot مقابل البدائل

البديلمتى تستخدمهاالمقايضة
FastMCPProduction serverMore framework

المزيد

الموارد

📖 اقرأ ملف README الرسمي على GitHub

🐙 تصفح القضايا المفتوحة

🔍 تصفح أكثر من 400 خادم MCP و Skills