Skip to main content
Glama
register_slave.js592 B
'use strict'; const Command = require('./command'); const Packets = require('../packets'); class RegisterSlave extends Command { constructor(opts, callback) { super(); this.onResult = callback; this.opts = opts; } start(packet, connection) { const newPacket = new Packets.RegisterSlave(this.opts); connection.writePacket(newPacket.toPacket(1)); return RegisterSlave.prototype.registerResponse; } registerResponse() { if (this.onResult) { process.nextTick(this.onResult.bind(this)); } return null; } } module.exports = RegisterSlave;

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/michael7736/mysql-mcp-server'

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