MCP 服务器

npm-package-ws-has-241560546-weekly-downloads-but-sdk

io.github.nexus-mcp-infra/npm-package-ws-has-241560546-weekly-downloads-but-sdk
开发者工具 公开且可连接 MCP 2025-11-25

此 MCP 可以做什么

Opens and manages WebSocket sessions, sends and receives frames, and reports schema validation and entropy telemetry.

nexus_npm_package_ws_has_241560546_weekly_down_close_websocket_session
Sends a WebSocket close frame with the specified status code, waits for the server close handshake, and removes the session from the registry. Returns a final telemetry snapshot. Use when a session is no longer needed. Do NOT use to temporarily pause a session -- the session_id is permanently deallocated after this call and cannot be reused.
输入模式
{'type': 'object', 'title': 'close_websocket_sessionArguments', 'required': ['session_id'], 'properties': {'reason': {'type': 'string', 'title': 'Reason', 'default': '', 'maxLength': 123, 'description': 'Optional UTF-8 close reason string, max 123 bytes per RFC 6455.'}, 'session_id': {'type': 'string', 'title': 'Session Id', 'maxLength': 32, 'minLength': 32, 'description': '32-character session id of the session to close.'}, 'status_code': {'type': 'number', 'title': 'Status Code', 'default': 1000, 'maximum': 4999, 'minimum': 1000, 'description': 'WebSocket close status code per RFC 6455 (1000-4999). Defaults to 1000.'}}}
输出模式
{'type': 'object', 'title': 'close_websocket_sessionDictOutput', 'additionalProperties': True}
nexus_npm_package_ws_has_241560546_weekly_down_drain_ws_frame_buffer
Returns up to max_frames buffered inbound frames received since the last drain (or session open), each annotated with its Shannon entropy delta and schema validation result. Use to poll for incoming messages without holding a blocking connection. Do NOT use as a real-time streaming mechanism -- it returns only frames already buffered.
输入模式
{'type': 'object', 'title': 'drain_ws_frame_bufferArguments', 'required': ['session_id'], 'properties': {'max_frames': {'type': 'number', 'title': 'Max Frames', 'default': 32, 'maximum': 256, 'minimum': 1, 'description': 'Maximum number of buffered frames to return in a single call.'}, 'session_id': {'type': 'string', 'title': 'Session Id', 'maxLength': 32, 'minLength': 32, 'description': '32-character session id of the open session to drain frames from.'}}}
输出模式
{'type': 'object', 'title': 'drain_ws_frame_bufferDictOutput', 'additionalProperties': True}
nexus_npm_package_ws_has_241560546_weekly_down_inspect_ws_session_telemetry
Returns real-time telemetry for a session: connection state, frame counts, cumulative and rolling Shannon entropy statistics, schema violation rate, and uptime. Use to diagnose whether a stream is diverging from its expected schema or to verify a session is still alive before sending. Do NOT use as the primary liveness check in a tight loop.
输入模式
{'type': 'object', 'title': 'inspect_ws_session_telemetryArguments', 'required': ['session_id'], 'properties': {'session_id': {'type': 'string', 'title': 'Session Id', 'maxLength': 32, 'minLength': 32, 'description': '32-character session id of the session to inspect.'}}}
输出模式
{'type': 'object', 'title': 'inspect_ws_session_telemetryDictOutput', 'additionalProperties': True}
nexus_npm_package_ws_has_241560546_weekly_down_open_websocket_session
Establishes a persistent WebSocket connection to a target URL and registers it in the stateful session registry. Returns a session_id for all subsequent operations. Use when an agent needs to initiate a long-lived connection before sending or receiving frames. Do NOT use to reconnect an already-open session -- call close_websocket_session first, or use the session_id of an existing session.
输入模式
{'type': 'object', 'title': 'open_websocket_sessionArguments', 'required': ['target_url'], 'properties': {'target_url': {'type': 'string', 'title': 'Target Url', 'minLength': 6, 'description': 'Full WebSocket URL to connect to (must start with ws:// or wss://).'}, 'connect_timeout_seconds': {'type': 'number', 'title': 'Connect Timeout Seconds', 'default': 10.0, 'maximum': 60.0, 'minimum': 0.5, 'description': 'Maximum seconds to wait for the WebSocket handshake to complete.'}}}
nexus_npm_package_ws_has_241560546_weekly_down_send_typed_ws_frame
Sends a single text or binary frame over an open session and returns the frame's Shannon entropy delta relative to the session baseline. Use for request-response patterns or publishing commands to a WebSocket server. Do NOT use to send a sequence of frames in bulk -- call this tool once per frame. Fails if session_id does not exist or connection is not in OPEN state.
输入模式
{'type': 'object', 'title': 'send_typed_ws_frameArguments', 'required': ['session_id', 'payload'], 'properties': {'payload': {'type': 'string', 'title': 'Payload', 'maxLength': 131072, 'minLength': 0, 'description': "Frame payload. For binary frames, encode as hex and set frame_type to 'binary'."}, 'frame_type': {'enum': ['text', 'binary'], 'type': 'string', 'title': 'Frame Type', 'default': 'text', 'description': "Either 'text' or 'binary'. Determines wire encoding."}, 'session_id': {'type': 'string', 'title': 'Session Id', 'maxLength': 32, 'minLength': 32, 'description': '32-character session id (uuid4 hex, no dashes) returned by open_websocket_session.'}}}
输出模式
{'type': 'object', 'title': 'send_typed_ws_frameDictOutput', 'additionalProperties': True}
已添加
nexus_npm_package_ws_has_241560546_weekly_down_close_websocket_session
2026年9月17日 12:45
已添加
nexus_npm_package_ws_has_241560546_weekly_down_inspect_ws_session_telemetry
2026年9月17日 12:45
已添加
nexus_npm_package_ws_has_241560546_weekly_down_drain_ws_frame_buffer
2026年9月17日 12:45
已添加
nexus_npm_package_ws_has_241560546_weekly_down_send_typed_ws_frame
2026年9月17日 12:45
已添加
nexus_npm_package_ws_has_241560546_weekly_down_open_websocket_session
2026年9月17日 12:45