Skip to main content
Glama

MCP 3D Printer Server

tcp.ts559 B
import { StreamBuilder } from '../shared' import net from 'net' import _debug from 'debug' const debug = _debug('mqttjs:tcp') /* variables port and host can be removed since you have all required information in opts object */ const buildStream: StreamBuilder = (client, opts) => { opts.port = opts.port || 1883 opts.hostname = opts.hostname || opts.host || 'localhost' const { port, path } = opts const host = opts.hostname debug('port %d and host %s', port, host) return net.createConnection({ port, host, path }) } export default buildStream

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/DMontgomery40/mcp-3D-printer-server'

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