Skip to main content
Glama

mq_login

Authenticate to the Agent-MQ message queue using a token to enable AI agents to communicate across sessions and machines.

Instructions

Login with a token. Server defaults to config.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
tokenYes
serverNo

Implementation Reference

  • The tool 'mq_login' is defined and its handler is implemented inline in mcp/src/index.ts.
    server.tool("mq_login", "Login with a token. Server defaults to config.", {
      token: z.string(),
      server: z.string().optional(),
    }, async ({ token, server: srv }) => {
      const cfg = client.loadConfig();
      const finalServer = srv?.replace(/\/+$/, "") || cfg.server;
      client.saveConfig({ server: finalServer, token });
      return { content: [{ type: "text", text: JSON.stringify({ status: "ok", server: finalServer }) }] };
    });

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/bababoi-bibilabu/agent-mq'

If you have feedback or need assistance with the MCP directory API, please join our Discord server