Skip to main content
Glama
gagarinyury

MCP Bitget Trading Server

by gagarinyury

disconnectWebSocket

Terminates active WebSocket connections on the MCP Bitget Trading Server. Ensures consistent API usage and prevents duplicate connections during spot and futures trading operations.

Instructions

Disconnect from WebSocket

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Implementation Reference

  • Handler implementation for the 'disconnectWebSocket' tool. Calls `this.wsClient.disconnect()` to disconnect the WebSocket and returns a success response.
    case 'disconnectWebSocket': { this.wsClient.disconnect(); return { content: [ { type: 'text', text: 'WebSocket disconnected', }, ], } as CallToolResult; }
  • src/server.ts:248-256 (registration)
    Tool registration in the ListTools response, defining the name, description, and empty input schema for 'disconnectWebSocket'.
    { name: 'disconnectWebSocket', description: 'Disconnect from WebSocket', inputSchema: { type: 'object', properties: {}, required: [] }, },

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/gagarinyury/MCP-bitget-trading'

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