Logo di ElizaOS Agents

ElizaOS Agents

Community
wearesociety

Repository dedicated to the ElizaOS MCP Connector.

Autorewearesociety
Repositoryelizaos_mcp
LinguaTypeScript
Fork
3
Stelle
10
Strumenti disponibili
0
Tipo di trasportostdio
Categorie
Link
  • Collega gli strumenti ai flussi di lavoro IA

    ElizaOS Agents mette a disposizione funzionalità MCP utilizzabili da client e agenti IA compatibili.

  • 0 strumenti disponibili

    Esplora le azioni richiamabili qui sotto, con nomi e descrizioni quando forniti dal server.

  • Configurazione pronta da copiare

    Usa gli esempi di installazione per configurare questo server nel tuo client MCP preferito.

  • Indicatori di interesse open source

    10 stelle e 3 fork nel repository collegato.

alt text

Society ElizaOS Connector MCP

The Society ElizaOS Connector MCP (Model Context Protocol) allows you to seamlessly integrate your ElizaOS agents with Cursor. This enables you to list available agents, select a specific agent to interact with, and chat directly with your ElizaOS agents from within the Cursor IDE.

This MCP server runs locally on your machine and is managed by Cursor using the stdio transport, meaning Cursor automatically starts and communicates with it.

Features

  • List Agents: Retrieve a list of available agents from your ElizaOS instance.
  • Select Agent: Choose a specific agent to interact with. The Room ID will be automatically set to match the Agent ID.
  • Chat with Agent: Send messages to the selected ElizaOS agent and receive responses.
  • Check Status: Verify the MCP server's connection state and current agent configuration.

Prerequisites

  • Node.js and npm (v14 or higher).
  • An ElizaOS server instance running and accessible (e.g., locally on http://localhost:3000).
  • Cursor IDE with MCP support.

Installation & Usage with Cursor

Quick Setup (Recommended)

The easiest way to use this MCP is directly with Cursor using npx. Cursor will automatically handle running the package.

  1. Configure Cursor: Create or open the .cursor/mcp.json file in your project folder (or the global ~/.cursor/mcp.json file) and add:
json
{
  "mcpServers": {
    "society-elizaos-mcp-npx": { 
      "command": "npx",
      "args": [
        "-y",
        "society-elizaos-mcp@1.0.9"
      ],
      "env": {
        "ELIZAOS_SERVER_URL": "http://localhost:3000",
        "ELIZAOS_USER_ID": "000000000000000000000000000000000000",  example ad64a76a-0e09-0899-b8f8-492d6aea4118
        "ELIZAOS_WORLD_ID": "000000000000000000000000000000000000", example c930b151-dcfb-41c5-96af-550ffea7023c
        "ELIZAOS_AGENT_ID": "000000000000000000000000000000000000", example 85e9fa66-6f8c-0f18-922c-d6c962e21e18
        "ELIZAOS_ROOM_ID": "000000000000000000000000000000000000",  Need to be equal to the ELIZAOS_AGENT_ID 
        "ELIZAOS_CONNECTION_TIMEOUT": "120000",
        "ELIZAOS_RESPONSE_TIMEOUT": "90000",
        "PORT": "3099",
        "DEBUG": "true",
        "NODE_ENV": "production",
        "MCP_DISABLE_PINGS": "true"
      }
  }
}
  1. Replace all placeholder UUIDs with your actual ElizaOS IDs.

  2. Restart Cursor to apply the configuration changes.

  3. Start using the tools in the Cursor interface - they'll appear as:

    • get_status
    • list_agents
    • chat_with_agent
    • set_agent

Local Development Setup

If you want to run a local development version of the connector, follow these steps:

  1. Clone and install dependencies:

    bash
    git clone https://github.com/your-username/society-elizaos-mcp.git
    cd society-elizaos-mcp
    npm install
  2. Build the package:

    bash
    npm run build
  3. Run locally:

    bash
    # Set required environment variables
    export ELIZAOS_SERVER_URL="http://localhost:3000"
    export ELIZAOS_USER_ID="your-elizaos-user-uuid"
    export ELIZAOS_WORLD_ID="your-elizaos-world-uuid"
    export ELIZAOS_AGENT_ID="your-initial-agent-uuid"
    export ELIZAOS_ROOM_ID="your-initial-agent-uuid"
    
    # Run the server
    node dist/index.js
  4. Or use the convenience script:

    bash
    # The script sets default environment variables and runs the server
    ./scripts/mcp_run.sh
  5. Configure Cursor for local version: If you want Cursor to use your local version instead of the npm package, update your .cursor/mcp.json:

    json
    {
      "mcpServers": {
        "society-elizaos-mcp-local": {
          "command": "node",
          "args": [
            "/path/to/your/society-elizaos-mcp/dist/index.js"
          ],
          "env": {
            "ELIZAOS_SERVER_URL": "http://localhost:3000",
            "ELIZAOS_USER_ID": "your-elizaos-user-uuid",
            "ELIZAOS_WORLD_ID": "your-elizaos-world-uuid",
            "ELIZAOS_AGENT_ID": "your-initial-agent-uuid", 
            "ELIZAOS_ROOM_ID": "your-initial-agent-uuid",
            "ELIZAOS_CONNECTION_TIMEOUT": "120000",
            "ELIZAOS_RESPONSE_TIMEOUT": "90000",
            "PORT": "3069",
            "DEBUG": "true",
            "NODE_ENV": "production",
            "MCP_DISABLE_PINGS": "true"
          }
        }
      }
    }

Configuration Options

All configuration is done through environment variables, which you set in the env section of your .cursor/mcp.json file:

Environment VariableRequiredDescription
ELIZAOS_SERVER_URLYesURL of your ElizaOS server (e.g., http://localhost:3000)
ELIZAOS_USER_IDYesYour ElizaOS user UUID
ELIZAOS_WORLD_IDYesYour ElizaOS world UUID
ELIZAOS_AGENT_IDNoInitial agent UUID to connect to (optional but recommended)
ELIZAOS_ROOM_IDNoMust match ELIZAOS_AGENT_ID if provided
ELIZAOS_CONNECTION_TIMEOUTNoSocket connection timeout in ms (default: 120000)
ELIZAOS_RESPONSE_TIMEOUTNoAgent response timeout in ms (default: 90000)

Security Notice

⚠️ Important: Never include any API keys or secrets in your .cursor/mcp.json file or in any code you publish. The MCP does not require any external API keys to function.

MCP Tool Reference

Once configured, Cursor can communicate with your ElizaOS agents through these four tools:

1. get_status

Gets the current connection status and configuration of the ElizaOS MCP.

Arguments: None required (pass an empty object {} or {"random_string": "any"})

Returns:

json
{
  "connectionState": "connected", 
  "currentAgent": "agent-uuid",
  "currentRoom": "room-uuid",
  "serverUrl": "http://localhost:3000",
  "userId": "user-uuid",
  "worldId": "world-uuid",
  "connectionTimeout": 120000,
  "responseTimeout": 90000
}

2. list_agents

Lists all available agents from your ElizaOS server.

Arguments: None required (pass an empty object {} or {"random_string": "any"})

Returns:

json
[
  {
    "id": "agent-uuid-1",
    "name": "Agent Name 1"
  },
  {
    "id": "agent-uuid-2",
    "name": "Agent Name 2"
  }
]

3. chat_with_agent

Sends a message to the currently selected agent and returns the response.

Arguments:

json
{
  "message": "Your message to the agent goes here"
}

Returns:

json
{
  "messageText": "Your message to the agent goes here",
  "senderId": "your-user-id",
  "response": {
    "senderId": "agent-id",
    "senderName": "Agent Name",
    "text": "The agent's response text",
    "roomId": "room-id",
    "createdAt": 1747632281772,
    "source": "mcp_client_chat",
    "thought": "Optional agent thought process if available",
    "actions": ["REPLY"]
  }
}

4. set_agent

Switches to a different agent. Note that agent_id and room_id must be identical in ElizaOS.

Arguments:

json
{
  "agent_id": "the-agent-uuid-to-use",
  "room_id": "the-agent-uuid-to-use"
}

Returns:

json
{
  "success": true,
  "oldConfig": {
    "agentId": "previous-agent-uuid",
    "roomId": "previous-room-uuid"
  },
  "newConfig": {
    "agentId": "new-agent-uuid",
    "roomId": "new-agent-uuid"
  }
}

Troubleshooting

Common Issues

  • "Missing required ElizaOS environment variables":
    • Ensure ELIZAOS_USER_ID, ELIZAOS_WORLD_ID, and ELIZAOS_SERVER_URL are set in your MCP config.
  • "Failed to connect to ElizaOS for chat":
    • Confirm your ElizaOS server is running at the specified URL.
    • Verify the agent and room IDs match and are valid.
  • No agent responses:
    • Check that the agent is active in your ElizaOS environment.
    • Increase ELIZAOS_RESPONSE_TIMEOUT if your agent takes longer to respond.
  • "For ElizaOS, agent_id and room_id must be identical":
    • When using set_agent, ensure both IDs are the same value.

License

MIT


This README provides a comprehensive guide for setting up and using the Society ElizaOS Connector MCP with Cursor. For additional assistance, please open an issue on the GitHub repository.

Installazione

TypingMind
Prerequisiti:

Node.js 18+

{
  "mcpServers": {
    "society-elizaos-mcp-npx": {
      "command": "npx",
      "args": [
        "-y",
        "society-elizaos-mcp@1.0.9"
      ],
      "env": {
        "ELIZAOS_SERVER_URL": "http://localhost:3000",
        "ELIZAOS_USER_ID": "000000000000000000000000000000000000",
        "ELIZAOS_WORLD_ID": "000000000000000000000000000000000000",
        "ELIZAOS_AGENT_ID": "000000000000000000000000000000000000",
        "ELIZAOS_ROOM_ID": "000000000000000000000000000000000000",
        "ELIZAOS_CONNECTION_TIMEOUT": "120000",
        "ELIZAOS_RESPONSE_TIMEOUT": "90000",
        "PORT": "3099",
        "DEBUG": "true",
        "NODE_ENV": "production",
        "MCP_DISABLE_PINGS": "true"
      }
    }
  }
}

Usa MCP ElizaOS Agents con più modelli IA

TypingMind collega gli strumenti MCP a livello di area di lavoro: una volta connesso ElizaOS Agents, puoi usarlo con diversi modelli IA in TypingMind, senza configurarlo separatamente per ogni modello. Questa integrazione MCP viene eseguita localmente sul tuo dispositivo tramite il connettore MCP di TypingMind.

Guida alla configurazione del connettore locale

Usa questo metodo quando il server MCP deve accedere a file locali, app o risorse private sul tuo computer.

1

Apri le impostazioni MCP

In TypingMind, vai su Impostazioni, Impostazioni avanzate, poi su Model Context Protocol e scegli Configura MCP.

  1. Apri TypingMind nel tuo browser.
  2. Fai clic sull'icona Impostazioni.
  3. Vai a Impostazioni avanzate.
  4. Apri la sezione Model Context Protocol.
  5. Fai clic su Configura MCP e scegli Questo dispositivo.
Schermata di configurazione del connettore MCP di TypingMind con Questo dispositivo selezionato
2

Esegui il comando del connettore

Scegli Questo dispositivo, copia il comando da TypingMind ed eseguilo nel terminale. Lascia il processo in esecuzione mentre usi MCP.

  1. Copia il comando di configurazione mostrato da TypingMind.
  2. Apri Terminale su macOS o Windows Terminal su Windows.
  3. Incolla ed esegui il comando.
  4. Conferma l'installazione del pacchetto se il terminale ti chiede di procedere.
  5. Tieni aperta la finestra del terminale con il processo in esecuzione mentre usi gli strumenti MCP.
3

Aggiungi ElizaOS Agents come server

Quando lo stato del connettore è Pronto, fai clic su Modifica server e incolla la configurazione del server MCP.

  1. Attendi che lo stato del connettore sia Pronto.
  2. Fai clic su Modifica server.
  3. Incolla la configurazione del server MCP di ElizaOS Agents.
  4. Salva l'elenco dei server.
  5. Aggiorna per verificare che il connettore sia ancora pronto.
Impostazioni MCP di TypingMind con un server attivo e il pulsante Modifica server
{
  "mcpServers": {
    "elizaos-agents": {
      "command": "npx",
      "args": [
        "-y",
        "society-elizaos-mcp"
      ]
    }
  }
}
4

Usa la connessione con diversi modelli

Salva l'elenco dei server, apri Plugin, abilita gli strumenti MCP di ElizaOS Agents, poi seleziona un modello IA supportato in TypingMind e usa gli strumenti in chat o assegnali a un agente IA.

  1. Apri la pagina Plugin in TypingMind.
  2. Abilita gli strumenti MCP di ElizaOS Agents.
  3. Avvia una chat e scegli il modello IA che vuoi usare.
  4. Usa gli strumenti MCP in chat o assegnali a un agente IA.
  5. Passa a un altro modello IA quando serve, senza riconnettere MCP.
Chat di TypingMind che usa gli strumenti MCP abilitati con un modello IA selezionato
Puoi usare ElizaOS Agents per aiutarmi con questa attività?
ElizaOS Agents
Certo. Ho letto.
Ecco cosa ho trovato con ElizaOS Agents.

Domande frequenti

A cosa serve il server MCP ElizaOS Agents?

ElizaOS Agents è un server MCP che consente ai client IA compatibili di accedere a strumenti e informazioni di contesto esterni. In TypingMind puoi aggiungere questo server MCP una sola volta e rendere disponibili i suoi strumenti nella tua area di lavoro IA.

Posso usare ElizaOS Agents MCP con più modelli IA in TypingMind?

Sì. TypingMind collega gli strumenti MCP a livello di area di lavoro, quindi puoi usare ElizaOS Agents con diversi modelli IA come Claude, ChatGPT, Gemini o altri modelli che hai configurato in TypingMind, senza dover configurare il server MCP separatamente per ogni modello.

Perché usare il connettore MCP ElizaOS Agents con TypingMind?

TypingMind è una delle migliori interfacce per chattare con gli LLM perché riunisce più modelli IA, prompt, plugin, agenti IA, chiavi API e strumenti MCP in un'unica area di lavoro. Collegando ElizaOS Agents, puoi usare i suoi strumenti MCP con i tuoi modelli preferiti e mantenere organizzato il tuo flusso di lavoro in chat su TypingMind.

Come collego ElizaOS Agents MCP a TypingMind?

ElizaOS Agents funziona tramite il connettore MCP locale di TypingMind. È la soluzione ideale quando il server MCP deve accedere a file locali, app desktop, strumenti da riga di comando o risorse private sul tuo computer.

Quali strumenti offre ElizaOS Agents MCP in TypingMind?

ElizaOS Agents mette a disposizione funzionalità MCP che puoi attivare dalla pagina Plugin di TypingMind e usare in chat o assegnare agli agenti IA.

Devo condividere le mie chiavi API con TypingMind per usare ElizaOS Agents MCP?

No. TypingMind privilegia il funzionamento in locale e ti permette di mantenere il controllo su fornitori di modelli, chiavi API, prompt e configurazione MCP. Se ElizaOS Agents richiede l'autenticazione, aggiungi le intestazioni, le impostazioni OAuth o la configurazione locale necessarie per quel server MCP quando crei la connessione.

Server MCP correlati

Vedi tutti

Crea subito la tua area di lavoro IA

Iscriviti alla nostra newsletter per ricevere aggiornamenti sulle nuove funzionalità e sulle prossime iniziative a premi 👇