Skip to main content
Glama
gagarinyury

MCP Bitget Trading Server

by gagarinyury

disconnectWebSocket

Terminate WebSocket connections to stop real-time data streams from the Bitget cryptocurrency exchange, managing network resources effectively.

Instructions

Disconnect from WebSocket

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Implementation Reference

  • The handler case for the 'disconnectWebSocket' tool. It calls this.wsClient.disconnect() to disconnect the WebSocket and returns a success message.
    case 'disconnectWebSocket': {
      this.wsClient.disconnect();
      return {
        content: [
          {
            type: 'text',
            text: 'WebSocket disconnected',
          },
        ],
      } as CallToolResult;
    }
  • src/server.ts:248-256 (registration)
    Registration of the 'disconnectWebSocket' tool in the list of available tools returned by listTools. Defines the tool name, description, and empty input schema.
    {
      name: 'disconnectWebSocket',
      description: 'Disconnect from WebSocket',
      inputSchema: {
        type: 'object',
        properties: {},
        required: []
      },
    },
  • Input schema for the 'disconnectWebSocket' tool, which requires no parameters.
    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