MCP.so
ログイン

Cairo Coder MCP Server

@kasarlabs

基本情報

カテゴリ

開発者ツール

トランスポート

stdio

作者

kasarlabs

投稿者

antiyro

Cairo Coder MCP Server について

The most powerful open-source Cairo code generator.

Cairo Coder MCP Server の設定

以下の設定を使って、このサーバーを MCP 対応クライアントに追加してください。

{
  "mcpServers": {
    "cairo coder": {
      "command": "npx",
      "args": [
        "-y",
        "@kasarlabs/cairo-coder-mcp"
      ],
      "env": {
        "CAIRO_CODER_API_KEY": "<YOUR_API_KEY>"
      }
    }
  }
}

Cairo Coder MCP Server のツール

1

Provides technical assistance with writing, refactoring, debugging, and understanding Cairo smart contracts and programs. Call this tool when the user needs to: - **Write or generate Cairo code** from scratch - **Refactor or optimize** existing Cairo code - **Debug compilation errors** or runtime issues - **Implement specific Cairo features** (traits, storage, events, etc.) - **Understand Cairo syntax** and best practices - **Complete TODO sections** in Cairo smart contracts This tool has access to Cairo documentation, code examples, corelib references, and technical guides.

概要

What is Cairo Coder?

A Model Context Protocol (MCP) server that provides AI‑assisted Cairo and Starknet development through the Cairo Coder API. It is built for developers writing, refactoring, or learning Cairo smart contracts on Starknet.

How to use Cairo Coder?

Run it directly with npx -y @kasarlabs/cairo-coder-api. Set the CAIRO_CODER_API_KEY environment variable with your API key. For Claude Desktop, add a cairo-coder entry to claude_desktop_config.json with the same command and environment variable. The server exposes one tool, assist_with_cairo, which accepts a required query and an optional context string.

Key features of Cairo Coder

  • Write Cairo smart contracts and Starknet code
  • Refactor and optimize existing Cairo code
  • Implement features and complete TODOs
  • Learn about the Starknet ecosystem and best practices
  • Receive advice based on official Cairo/Starknet documentation

Use cases of Cairo Coder

  • Generate a complete counter contract in Cairo
  • Optimize an existing Starknet contract with context and code snippets
  • Get step‑by‑step guidance on using OpenZeppelin for an ERC20 token

よくある質問

1

What is Cairo Coder MCP server?

It is an MCP server that uses the Cairo Coder API to assist with Cairo and Starknet development tasks, such as writing, refactoring, and learning.

2

How do I set up Cairo Coder?

Run `npx -y @kasarlabs/cairo-coder-api` and provide your API key via the `CAIRO_CODER_API_KEY` environment variable. For Claude Desktop, add the server configuration to `claude_desktop_config.json`.

3

What tool does Cairo Coder provide?

The server offers one tool: `assist_with_cairo`. It takes a required `query` (your development question) and an optional `context` (code snippets or additional information).

4

What are the runtime requirements for Cairo Coder?

Node.js version 18 or higher and npm or yarn are required to run the server locally.

5

Where can I get help or report issues?

Visit the GitHub Issues page for the repository (https://github.com/kasarlabs/cairo-coder-api/issues) or refer to the Model Context Protocol documentation.

コメント

「開発者ツール」の他のコンテンツ