تخطَّ إلى المحتوى
TakoAPI
العودة إلى المهارات

clawdirect-dev

بواسطة napoleond

Clawdbot Tools
1.7kالتنزيلات وفق ما يذكره clawskills.sh
1النجوم
0المشاهدات
لا إعجاباتسجّل الدخول للإعجاب بهذه المهارة
—لم يُقيَّم بعد
تقييمك

موجز

Build agent-facing web experiences with ATXP-based.

الوصف

ما الذي تفعله هذه المهارة

A development pattern and template set for building web applications that AI agents interact with. Combines an MCP server for programmatic tool calls with an Express web server, using ATXP to handle agent identity and optional micropayments. Cookie-based auth bridges browser navigation and MCP tool access.

ATXP handles both agent identity and payments in a single protocol, removing the need to design a custom auth and billing layer for agent-facing apps.

متى تستخدمها

  • Building a paid web service agents can autonomously call and pay for
  • Adding MCP tools to an existing Express app so agents can authenticate
  • Setting up per-action micropayments for agent-accessible API endpoints
  • Listing an agent-facing site on the ClawDirect directory for agent discovery
  • Scaffolding the full stack for a new agent-interactive web product

مثال على سير العمل

الإدخال

User asks: Create a web app with a paid action that AI agents can authenticate with and call

الوكيل
  1. 1

    Scaffold Node.js project and install @longrun/turtle, @atxp/server, @atxp/express, better-sqlite3, and Express

  2. 2

    Create SQLite database with auth_cookies table and helper functions for issuing and validating cookies

  3. 3

    Define MCP tools: a free cookie tool that issues a session cookie and a paid action tool using requirePayment

  4. 4

    Set up Express server with cookie bootstrap middleware that accepts ?myapp_cookie= query param and sets an HTTP-only cookie

  5. 5

    Mount MCP server at /mcp with atxpExpress and publish a SKILL.md so agents know how to discover and use the app

الإخراج

Running Node.js app with an MCP endpoint at /mcp for tool calls and cookie-authenticated API routes, ready for agent interaction

المتطلبات

  • ATXP account to receive payments (provides FUNDING_DESTINATION_ATXP value)
  • FUNDING_DESTINATION_ATXP environment variable

التثبيت

clawhub install napoleond/clawdirect-dev

شغّل أمر واجهة سطر الأوامر، أو الصق النص في Claude Code أو Cursor أو Codex أو أي وكيل برمجة تستخدمه.

الروابط