mcpField
F
Flux

Flux

Remote
github.com/asrvdDeveloper Tools3Updated 75w ago
Repository

About Flux

Flux is an MCP server for using natural language to create, run, and test AO code and handlers. It is aimed at AO developers using MCP-compatible AI development tools.

Key features

  1. 01Run AO code from natural-language requests
  2. 02Create AO code and blueprints
  3. 03Test code sent to a process
  4. 04Create and test handlers
  5. 05Connect to MCP-compatible AI development tools

Use cases

  1. 01Run AO code through an AI development tool
  2. 02Draft an AO blueprint from a natural-language request
  3. 03Test code and handlers on a process

MCP support

Flux provides AO-related tools through an MCP server. It can be configured locally or accessed through the listed remote SSE endpoint, and works with tools that support MCP tool calling.

Configuration

Remote servers need no local install. Pick your client, then copy the config or install in one click.

Endpointhttps://flux-2esw.onrender.com/sse
Copy install command
Claude CodeTerminal
Cursor.cursor/mcp.json
VS Code.vscode/mcp.json
Claude Desktopclaude_desktop_config.json
Windsurf~/.codeium/windsurf/mcp_config.json

Run commands in a terminal; paste JSON into the client’s MCP config and restart. Servers that need sign-in will prompt on first connect.

Tools

12
ParameterTypeRequiredDescription
tagsarrayYes
needsSqlitebooleanNo

Details

From the project README

Flux

AI based AO tool calling on steroids that integrates with your existing tools and editor using a MCP server.

https://github.com/user-attachments/assets/3484e2db-e7cb-479a-84a2-0b399e1149ac

Features Implemented

  • Run AO code using just natural language
  • Create and run custom AO code/blueprints completely using natural language
  • Integrates with your existing AI dev tools like Cursor, Windsurf, Claude, and anything that supports MCP tool calling
  • Can test out all the code it pushes to an process
  • Can create and test complex handlers

Features to be implemented

  • Inetgration with AO ecosystem tools
  • Better code generation capabilities by adding more context about AO

Tech stack

  • AO
  • Arweave
  • MCP typescript sdk
  • Typescript
  • Node.js

Installation

There are currently two ways to install and use Flux, right now it has been tested significantly only on Cursor so we will be showing how to install FLux in Cursor -

  1. Local Setup - For users who want everything to be present locally, no remote servers involved

    • Make sure you have latest stable version of NODE.js installed - Node.js download
    • Open Cursor and go to Settings > Cursor Settings > MCP > Add new MCP tool
    • Paste this code in the file
      "mcpServers": {
          "flux": {
              "command": "npx",
              "args": ["-y", "flux-ao@latest"],
          }
      }
      
    • if you did everything correctly you will be able to see the flux MCP loaded with all the tools, and its ready to be used in Cursor (PS: You might have to reload the MCP multiple times or restart Cursor)! Flux MCP loaded in Cursor
  2. Remote Setup - For users who want to use Flux without installing anything locally

    • Open Cursor and go to Settings > Cursor Settings > MCP > Add new MCP tool
    • Paste this code in the file
      "mcpServers": {
          "flux": {
              "url": "https://flux-2esw.onrender.com/sse",
          }
      }
      
    • if you did everything correctly you will be able to see the flux MCP loaded with all the tools, and its ready to be used in Cursor (PS: You might have to reload the MCP multiple times or restart Cursor)! Flux MCP loaded in Cursor

Usage

We would suggest you add the llms.txt for AO docs in cursor first and use it as a context before you start using the MCP server. If you don't know how to do it, checkoout this documentation on how to add docs to cursor.

The more context you give to cursor, the more acurate the responses will be.

Now add these custom rules in your Cursor project to make sure Cursor doesn't hallucinate or give wrong responses. You can add these rules in the Settings > Cursor Settings > Rules > Add new rule.

For adding json capabilities ONLY IF NEEDED, you need to add a line "local json = require("json")" on top of file. BUT DONT USE IT UNLESS NEEDED. SIMPLE THINGS CAN BE DONE USING AO PROCESS STATE

Always use Send instead of msg.reply

Always make sure a handler is sending out a response/reply (using Send) and send it as data as well instaed of just returning using tags

Never add any tags by yourself, always add tags when needed or instructed by user, also {"Action":"Eval"} tag is for running lua in an ao process and {"Action" : "action_name"} is for running a handler

Never add the "Type" tag to anything, thats reserved for internal ao specifications

Always use Handler.utils whever possible when creating a handler, for example --
    Handlers.add(
        "pingpong",
        Handlers.utils.hasMatchingTag("Action", "Ping"),
        function (msg) 
            Handlers.utils.reply("Pong")(msg) -- or use Send() here
        end
    )

Now you can start using the Flux MCP server in Cursor Agents.

Support

If you find any issues with the Server or encounter any bugs, please let us know by opening an issue or mailing us @ [email protected]

Comments

Markdown supported

New to MCP?

From what the protocol is to installing your first server, these answers cover most first questions.

An open protocol that defines how AI applications connect to external tools and data in a uniform way. Clients talk to the model; MCP servers provide tools, resources and prompt templates. They exchange standard messages, so one server can be reused by many clients.