ต้นแบบ · รุ่นทดลอง: มีทุก server ในทะเบียนทางการ อัปเดตทุก 30 นาที เข้าสู่ระบบด้วย Google เพื่อเขียนรีวิวได้แล้วต้นแบบ · อัปเดตทุก 30 นาที
PopNx MCPที่รวม MCP สำหรับคนใช้ AI · วิธีติดตั้งภาษาไทยทุกตัว เข้าสู่ระบบ

Npm Package Ws Has 241560546 Weekly Downloads But Sdk

โดย nexus-mcp-infraรุ่น 1.0.0i★ 0iรันบนคลาวด์หน้า repo ↗
ชื่อใน registryio.github.nexus-mcp-infra/npm-package-ws-has-241560546-weekly-downloads-but-sdk

วิธีติดตั้ง

ใช้ทำอะไรได้

ยังไม่มีคำอธิบายภาษาไทย ดูข้อเท็จจริงด้านล่าง หรือเปิดคำอธิบายต้นฉบับจากผู้ทำ

  • ต่อแบบ คลาวด์ (ต่อผ่านอินเทอร์เน็ต)
  • บัญชีหรือคีย์ ไม่ต้องใส่คีย์
  • หมวด เครื่องมือนักพัฒนา
คำอธิบายต้นฉบับจากผู้ทำ (อังกฤษ)
Stateful WebSocket session registry with per-connection Shannon entropy delta tracking for schema di

ใช้คู่กับ

Skill ที่สอน AI ทำงานแบบนี้ ใช้ร่วมกับตัวนี้ได้

rea

rea เป็นเครื่องมือเสริมสำหรับ AI agent ใช้ทำ reverse engineering กับสิ่งต่าง ๆ ตั้งแต่พฤติกรรมของแอปพลิเคชันไปจนถึงไบนารีระดับ native

โดย morluto★ 470,1651 skill

Skill · คู่มือ

andrej-karpathy-skills

andrej-karpathy-skills เป็นไฟล์ CLAUDE.md ไฟล์เดียวที่ใช้ปรับพฤติกรรมของ Claude Code ให้ดีขึ้น โดยอ้างอิงจากข้อสังเกตของ Andrej Karpathy เกี่ยวกับข้อผิดพลาดที่พบบ่อยเมื่อ LLM เขียนโค้ด

โดย multica-ai★ 234,5281 skill

Skill · คู่มือไม่ระบุสัญญาอนุญาต

graphify

graphify เป็นเครื่องมือที่แปลงโค้ด เอกสาร สคีมา SQL คอนฟิก และไฟล์ PDF ให้เป็นกราฟความรู้ที่ค้นหาได้ ทำงานแบบ local ผ่านการแยกโครงสร้าง AST และใช้ได้กับ Claude Code, Cursor, Codex และ Gemini CLI

โดย Graphify-Labs★ 150,6951 skill

Skill · คู่มือ

ทำไมอยู่อันดับนี้

หน้ารายการเรียงด้วยคะแนนการใช้งาน (เต็ม 100) จากส่วนเหล่านี้

ความนิยม0/80ดาว GitHub หรือยอดดาวน์โหลดต่อสัปดาห์ ค่ามากนับ 60 ค่าน้อยนับ 20
ความสด7/12ออกรุ่นหรือแก้โค้ดใน 30 วัน ได้เต็ม
ระบบยังตอบ0/8endpoint บนคลาวด์ตอบตอนตรวจล่าสุด
คะแนนการใช้งาน7/100

คุณภาพ: ผลตรวจเบื้องต้นผ่าน 2/4 ข้อ (แสดงให้ดู ไม่ได้ใช้เรียง) · ความมาแรง: ยังไม่มีข้อมูล (ใช้เรียงเฉพาะแท็บมาแรง)

ติดตั้ง

เลือกโปรแกรม AI ที่คุณใช้ แล้วคัดลอกค่าตั้งไปวาง

ผลตรวจผ่าน 2/4 · ทำงานบนเครื่องคุณ

เราซ่อนคำสั่งบางส่วนไว้

แบบต่อผ่านที่อยู่: ที่อยู่ของ server ไม่ตอบตอนเราตรวจ

ยังไม่มีทางติดตั้งที่ตรวจผ่าน ดูวิธีจากผู้ทำ หรือเลือกตัวอื่นในหมวดเดียวกัน · วิธีติดตั้งจากผู้ทำ · ตัวอื่นในหมวดนี้

ขั้นแรก: คุณใช้ AI ตัวไหน

เลือกแอปที่คุณใช้ ขั้นตอนจะขึ้นด้านล่าง

Claude ยังต่อ Npm Package Ws Has 241560546 Weekly Downloads But Sdk ไม่ได้

ยังไม่มีทางติดตั้งที่ตรวจผ่าน ดูวิธีจากผู้ทำ หรือเลือกตัวอื่นในหมวดเดียวกัน

ChatGPT ยังต่อ Npm Package Ws Has 241560546 Weekly Downloads But Sdk ไม่ได้

ยังไม่มีทางติดตั้งที่ตรวจผ่าน ดูวิธีจากผู้ทำ หรือเลือกตัวอื่นในหมวดเดียวกัน

คุณทำแบบนี้แทนได้

ข · ตัวอื่นในหมวด เครื่องมือนักพัฒนา ที่ต่อกับ ChatGPT ได้

เลือกจากตัวที่ใช้มากในหมวดเดียวกัน เฉพาะตัวที่ต่อด้วยที่อยู่ได้โดยไม่ต้องใส่คีย์

Claude Code ยังต่อ Npm Package Ws Has 241560546 Weekly Downloads But Sdk ไม่ได้

ยังไม่มีทางติดตั้งที่ตรวจผ่าน ดูวิธีจากผู้ทำ หรือเลือกตัวอื่นในหมวดเดียวกัน

Cursor ยังต่อ Npm Package Ws Has 241560546 Weekly Downloads But Sdk ไม่ได้

ยังไม่มีทางติดตั้งที่ตรวจผ่าน ดูวิธีจากผู้ทำ หรือเลือกตัวอื่นในหมวดเดียวกัน

VS Code ยังต่อ Npm Package Ws Has 241560546 Weekly Downloads But Sdk ไม่ได้

ยังไม่มีทางติดตั้งที่ตรวจผ่าน ดูวิธีจากผู้ทำ หรือเลือกตัวอื่นในหมวดเดียวกัน

ยังไม่มีทางติดตั้งที่ตรวจผ่าน ดูวิธีจากผู้ทำ หรือเลือกตัวอื่นในหมวดเดียวกัน

ติดตรงไหน? ถามคนที่ใช้ Npm Package Ws Has 241560546 Weekly Downloads But Sdk อยู่💬 พูดคุย →

สรุป

ดาวน์โหลดต่อสัปดาห์i
ไม่มียอดใน npm/PyPI
licensei
ไม่ระบุ license
การเชื่อมต่อ
รันบนคลาวด์
รุ่นล่าสุดi
1.0.0
ส่งเข้า registryi
28 ก.ค. 2569
แก้โค้ดล่าสุดi
3 ก.ย. 2569
ตรวจล่าสุดเมื่อ
16 พ.ย. 2569
ผู้ทำ
nexus-mcp-infra
สถานะใน registry
ใช้งานอยู่

ใช้กับโปรแกรมไหนได้

ดูจากแบบการต่อของ server ตัวนี้ และเอกสารของผู้ทำโปรแกรมแต่ละตัว ตรวจเมื่อ 10 พ.ย. 2569

ต่อผ่านคลาวด์ได้ใน

GooseLM StudioMsty StudioCherry StudioVisual StudioWindsurf (Devin Desktop)ZedKiroClineContinueJetBrains AI AssistantCodex CLIGemini CLIOpenCodenodecodeWarpLibreChatOpen WebUIRaycast

ดูโปรแกรมทั้งหมดพร้อมข้อดีข้อเสีย →

คู่มือที่เกี่ยวข้อง

ทำอะไรได้บ้าง

ตอนตรวจล่าสุด server ไม่ตอบ จึงอ่านรายการเครื่องมือไม่ได้

ผลตรวจเบื้องต้นi

เราตรวจจากข้อมูลที่ใครก็เปิดดูได้ ยังไม่ได้อ่านโค้ด ข้อที่ไม่เกี่ยวกับตัวนี้ไม่นับในตัวหาร · ตรวจเมื่อ 21 พ.ย. 2569

  • ✓ ผ่าน

    ตัวตนผู้ทำตรงกับ repo

    ชื่อใน registry ยืนยันด้วยบัญชี GitHub nexus-mcp-infra ซึ่งเป็นเจ้าของ repo

  • ✓ ผ่าน

    ยังมีคนดูแล

    มีการแก้โค้ดล่าสุด 3 เดือนที่ผ่านมา

  • ✕ ไม่ผ่าน

    มีสัญญาอนุญาต (license)

    ไม่พบไฟล์ license ใน repo

  • ✕ ไม่ผ่าน

    endpoint ตอบ

    ไม่ตอบภายใน 6 วินาทีตอนที่เราตรวจ

  • – ไม่เกี่ยว

    ล็อกอินแบบ OAuth

    ไม่ตอบภายใน 6 วินาทีตอนที่เราตรวจ

  • … ยังไม่ตรวจ

    คำอธิบายเครื่องมือไม่มีคำสั่งแอบแฝง

    ยังไม่ได้ตรวจ เราอ่านรายการเครื่องมือตอนตรวจ endpoint

เราตรวจอะไรบ้าง → · JSON

ผู้ทำ: ขอให้ตรวจใหม่ หรือแจ้งข้อมูลผิด
สำหรับผู้ทำ: ติดป้ายใน README

ถ้าคุณเป็นผู้ทำตัวนี้ คัดลอกโค้ดนี้ไปวางใน README ได้เลย ป้ายลิงก์กลับมาที่หน้านี้

[![แนะนำบน PopNx MCP](https://mcp.popnx.com/badge/nexus-mcp-infra-npm-package-ws-has-241560546-weekly-downloads-but-sdk.svg?lang=th)](https://mcp.popnx.com/th/servers/nexus-mcp-infra-npm-package-ws-has-241560546-weekly-downloads-but-sdk)

พูดคุย

ถาม แชร์เคล็ดลับ หรือแจ้งว่าใช้ไม่ได้ เรียงตามที่คนกดว่ามีประโยชน์

ยังไม่มีใครโพสต์ ถามหรือแชร์เป็นคนแรกได้เลย

ข้อความในส่วนนี้เขียนโดยผู้ใช้ ไม่ใช่ทีม PopNx

เข้าสู่ระบบเพื่อโพสต์

รีวิวจากผู้ใช้

ยังไม่มีรีวิว

เข้าสู่ระบบเพื่อเขียนรีวิว

เทียบกับตัวอื่นในหมวด เครื่องมือนักพัฒนาi

  • ดาวมากกว่า 0% ของอีก 6686 ตัวในหมวดนี้
  • ส่งรุ่นใหม่เข้า registry ล่าสุดกว่า 20% ของอีก 6686 ตัวในหมวดนี้
  • ผลตรวจเบื้องต้นดีกว่าหรือเท่ากับ 8% ของอีก 6686 ตัวในหมวดนี้

เทียบกับทุก server ที่ยังใช้งานในหมวดนี้ทั้งทะเบียน ดาวนับเฉพาะเมื่อผู้ลงทะเบียนเป็นเจ้าของ repo

คำถามที่พบบ่อย

Npm Package Ws Has 241560546 Weekly Downloads But Sdk ปลอดภัยไหม?

จากการตรวจเบื้องต้นของเรา ผ่าน 2 จาก 4 ข้อที่ตรวจได้ เรายังไม่ได้อ่านโค้ด ก่อนใส่กุญแจหรือ token ให้ดูว่า server ขอสิทธิ์อะไร และเลือกกุญแจที่ทำได้เท่าที่จำเป็น

ต้องใช้กุญแจหรือรหัสอะไรบ้าง?

registry ไม่ได้ระบุว่าต้องใช้กุญแจ แต่บางตัวจะขอให้ล็อกอินตอนใช้ครั้งแรก

ตัวนี้รันบนเครื่องหรือบนคลาวด์?

รันบนคลาวด์ของผู้ทำ ต่อผ่านอินเทอร์เน็ตได้เลย ไม่ต้องลงโปรแกรม แต่ข้อมูลที่ส่งให้จะผ่านเซิร์ฟเวอร์ของผู้ทำ

ยังมีคนดูแลอยู่ไหม?

repo บน GitHub มีการแก้โค้ดล่าสุด 3 เดือนที่ผ่านมา และส่งรุ่นล่าสุด (1.0.0) เข้า registry 4 เดือนที่ผ่านมา

ใช้กับโปรแกรมไหนได้บ้าง?

โปรแกรมที่รองรับ MCP เช่น Claude Desktop, Claude Code, Cursor และ VS Code ตัวนี้ต่อผ่าน URL จึงใช้กับโปรแกรมที่รับ remote MCP ได้ เช่น ChatGPT บนเว็บ (แบบเต็มในแผน Business ขึ้นไป · Pro แบบอ่านอย่างเดียว)

มีตัวไหนใช้แทนได้บ้าง?

ในหมวดเดียวกันมี GitDiagram, Appllama, Cloudflare MCP, Omnara, hotpath-cloud

ตัวอื่นที่ทำงานคล้ายกัน

หมวดเดียวกันจากผู้ทำคนอื่น ผ่านตัวตรวจคำสั่งแล้ว ตัวทางการขึ้นก่อน แล้วเรียงตามดาว

อ่านการ์ด:↓ ดาวน์โหลดต่อสัปดาห์i★ ดาว GitHubiสามเสา: รีวิว · ผลตรวจ · การใช้งานiอัปเดต = วันที่ส่งรุ่นล่าสุดเข้า registryi

GitDiagram

Architecture diagrams, explanations and Mermaid source for public GitHub repositories.

โดย ahmedkhaleel2004ใช้กันมาก★ 19Kอัปเดต 2 เดือนที่ผ่านมา

รันบนคลาวด์✓ เจ้าของบริการ · gitdiagram.comทีม PopNx ลองใช้จริงแล้ว

Appllama

Study screens, flows and paywalls from top-earning iOS apps, then build from what wins.

โดย Appllamaใช้กันมาก★ 5.3Kอัปเดต 3 เดือนที่ผ่านมา

รันบนคลาวด์✓ เจ้าของบริการ · appllama.io

Cloudflare MCP

Cloudflare MCP servers

โดย cloudflareใช้กันมาก★ 4.5Kอัปเดต 14 เดือนที่ผ่านมา

รันบนคลาวด์✓ เจ้าของบริการ · mcp.cloudflare.comทีม PopNx ลองใช้จริงแล้ว

Omnara

Deploy durable AI agents with Omnara, an open-source managed-agent platform.

โดย omnara-aiใช้กันมาก★ 3.4Kอัปเดต 2 เดือนที่ผ่านมา

รันบนคลาวด์✓ เจ้าของบริการ · omnara.com

hotpath-cloud

Read-only access to Rust profiling reports from CI: benchmark history, diffs and policies

โดย hotpath-rsกำลังโต★ 1.9Kอัปเดต 12 วันที่ผ่านมา

รันบนคลาวด์✓ เจ้าของบริการ · hotpath.rs
เทียบกับตัวที่คล้ายกัน
ตัวนี้
Npm Package Ws Has 241560546 Weekly Downloads But Sdk
GitDiagramAppllamaCloudflare MCPOmnarahotpath-cloud
ทำงานที่ไหนใช้บนคลาวด์ ไม่ต้องลงเครื่องใช้บนคลาวด์ ไม่ต้องลงเครื่องใช้บนคลาวด์ ไม่ต้องลงเครื่องใช้บนคลาวด์ ไม่ต้องลงเครื่องใช้บนคลาวด์ ไม่ต้องลงเครื่องใช้บนคลาวด์ ไม่ต้องลงเครื่อง
ต้องใส่คีย์ไม่ไม่ไม่ไม่ไม่ไม่
กด + ใน Claude ได้ไม่ไม่ไม่ใช่ไม่ไม่
ผลตรวจเบื้องต้น2/44/44/44/44/44/4
สัญญาอนุญาต–MITMITApache-2.0Apache-2.0MIT
ราคาไม่พบค่าใช้จ่ายในทะเบียนไม่พบค่าใช้จ่ายในทะเบียนไม่พบค่าใช้จ่ายในทะเบียนไม่พบค่าใช้จ่ายในทะเบียนไม่พบค่าใช้จ่ายในทะเบียนไม่พบค่าใช้จ่ายในทะเบียน

README จากผู้ทำ

เปิดอ่าน README

ส่วนนี้คัดจาก repo ของผู้ทำตามต้นฉบับ PopNx MCP ไม่ได้ตรวจหรือรับรองเนื้อหา ตัด HTML รูปภาพ และสคริปต์ออกแล้ว ลิงก์จะพาออกนอกเว็บ

ws-mcp

WebSocket session management as MCP tools — with per-frame Shannon entropy tracking.

ws has 241,560,546 weekly downloads. There are zero MCP servers that expose WebSocket primitives. This is that server.


The problem

AI agents cannot interact with live WebSocket streams without custom glue code per integration. There is no standardized way for an LLM to open a persistent connection, send a typed frame, and receive structured events as tool call responses. Debugging message flows requires external tooling (Wireshark, browser devtools) that is incompatible with agentic workflows.

ws-mcp exposes five atomic operations over HTTP: open a session, send a frame, drain buffered frames, inspect telemetry, and close. Each frame — inbound or outbound — is scored with a Shannon entropy delta relative to the session's cumulative message distribution, so an agent can detect when a stream is diverging from its expected schema without any external monitoring.


Why the entropy delta is not optional

The server maintains a live token-frequency Counter per session_id inside the same process that holds the socket open. For each frame, it computes:

delta = H(t) - H(t-1)

where H(t) is the Shannon entropy of the cumulative byte distribution after frame t. A delta near zero means the frame is statistically consistent with the session's established message pattern. A large positive delta means the frame introduced new information — schema divergence, anomalous payload, or a new message type.

This requires coupling MCP tool state with a live socket registry and a probabilistic frame classifier in the same process. It cannot be replicated by wrapping ws.send() in a stateless proxy.


Base URL

https://npm-package-ws-has-241560546-w-production.up.railway.app

Authentication

None. There is no API key, header, or auth mechanism of any kind on this asset today — every request is served regardless of headers sent.

Pricing

  • `POST /ws-sessions/open` requires an x402 payment: $0.01 USDC on Base Sepolia (testnet), scheme exact. A request without payment gets 402 Payment Required with the payment details in the payment-required response header.
  • All other operations (send-frame, drain-frames, telemetry, close) act on a session that was already paid for at open time and are not separately charged.

Endpoints

POST /ws-sessions/open

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. Requires an x402 payment (see Pricing above).

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 first, or use the session_id of an existing session.

Request

{

"target_url": "wss://echo.websocket.org", "connect_timeout_seconds": 10.0, "extra_headers": { "X-Custom-Header": "value" } }

target_url must start with ws:// or wss:// (validated, not just a regex in the schema). connect_timeout_seconds defaults to 10.0, range 0.5–60.0. extra_headers is optional (HTTP headers sent on the upgrade request).

Response (201)

{

"session_id": "8662044208f54095b327ab4c29e1554c", "target_url": "wss://echo.websocket.org", "state": "OPEN", "opened_at_unix": 1785012145.03, "message": "Session '8662044208f54095b327ab4c29e1554c' is OPEN. Use session_id for all subsequent operations." }

session_id is a 32-character hex string (uuid.uuid4().hex, no dashes) — use it as-is in the paths below.

Errors: 422 if target_url doesn't start with ws:///wss://; 504 if the handshake doesn't complete within connect_timeout_seconds; 502 if the host is unreachable or refuses the connection; 503 if the server is already at NEXUS_WS_MAX_SESSIONS concurrent sessions.


POST /ws-sessions/{session_id}/send-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 endpoint once per frame. Fails if session_id does not exist or the connection is not in OPEN state.

Request

{

"payload": "{\"action\": \"subscribe\", \"channel\": \"trades\"}", "frame_type": "text" }

frame_type is "text" (default) or "binary" — if binary, payload must be a hex-encoded string.

Response (200)

{

"session_id": "8662044208f54095b327ab4c29e1554c", "frame_type": "text", "payload_bytes": 44, "entropy_after": 4.237441, "entropy_delta": 0.245712, "schema_valid": true, "sent_at_unix": 1785012151.68 }

Errors: 404 if session_id is not in the registry (session_id ' ' not found in registry); 409 if the session isn't in OPEN state; 422 if frame_type is "binary" and payload isn't valid hex; 502 if the underlying socket send fails.


POST /ws-sessions/{session_id}/drain-frames

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 (buffer capped at 512 frames per session; oldest frames are dropped once full).

Request

{

"max_frames": 10 }

max_frames defaults to 32, range 1–256.

Response (200)

{

"session_id": "8662044208f54095b327ab4c29e1554c", "frames_returned": 2, "frames": [ { "payload": "{\"event\": \"trade\", \"price\": 42381.50}", "frame_type": "text", "entropy_after": 3.91, "entropy_delta": 0.12, "schema_valid": true, "received_at": 1785012155.203 }, { "payload": "{\"event\": \"liquidation\", \"size\": 180000, \"side\": \"long\"}", "frame_type": "text", "entropy_after": 5.38, "entropy_delta": 1.47, "schema_valid": false, "received_at": 1785012155.891 } ], "buffer_remaining": 0 }

The entropy_delta of 1.47 on the second frame combined with schema_valid: false indicates the stream introduced content statistically inconsistent with the session's established byte distribution — a signal an agent can use to decide whether to escalate or re-negotiate the subscription.

Errors: 404 if session_id is not in the registry.


POST /ws-sessions/{session_id}/telemetry

Returns real-time telemetry for a session: connection state, frame counts, cumulative and rolling Shannon entropy statistics, schema violation rate, and uptime. Takes no request body.

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 — it recomputes rolling statistics on every call.

Response (200)

{

"session_id": "8662044208f54095b327ab4c29e1554c", "target_url": "wss://echo.websocket.org", "state": "OPEN", "uptime_seconds": 108.77, "frames_sent": 1, "frames_received": 2, "current_entropy": 4.16695, "rolling_entropy_mean": 0.18, "rolling_entropy_std": 0.31, "rolling_entropy_max": 1.47, "cumulative_entropy_bits": 4.16695, "schema_violations": 1, "schema_violation_rate": 0.333333, "inbound_buffer_depth": 2 }

Errors: 404 if session_id is not in the registry.


POST /ws-sessions/{session_id}/close

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. session_id is permanently deallocated after this call and cannot be reused.

Request (both fields optional)

{

"status_code": 1000, "reason": "agent task complete" }

status_code defaults to 1000, range 1000–4999 (RFC 6455). reason defaults to "", max 123 bytes.

Response (200)

{

"session_id": "8662044208f54095b327ab4c29e1554c", "target_url": "wss://echo.websocket.org", "final_state": "CLOSED", "frames_sent": 1, "frames_received": 2, "terminal_entropy": 4.16695, "schema_violations": 1, "uptime_seconds": 310.2, "message": "Session '8662044208f54095b327ab4c29e1554c' closed with status 1000. Total frames exchanged: 3. session_id is permanently deallocated." }

Errors: 404 if session_id is not in the registry.


End-to-end example: open a session, send a frame, drain, close

import httpx

BASE = "https://npm-package-ws-has-241560546-w-production.up.railway.app"

1. Open a session (requires x402 payment on this call — omitted here for brevity,

see https://docs.x402.org for how to attach a payment header)

r = httpx.post(f"{BASE}/ws-sessions/open", json={ "target_url": "wss://echo.websocket.org", "connect_timeout_seconds": 10.0, }) r.raise_for_status() session_id = r.json()["session_id"]

2. Send a frame (not billed)

httpx.post(f"{BASE}/ws-sessions/{session_id}/send-frame", json={ "payload": '{"action": "ping"}', "frame_type": "text", }).raise_for_status()

3. Drain buffered inbound frames, alert on entropy spikes

ENTROPY_ALERT_THRESHOLD = 1.0

drain = httpx.post(f"{BASE}/ws-sessions/{session_id}/drain-frames", json={ "max_frames": 20, }).json()

for frame in drain["frames"]: if frame["entropy_delta"] > ENTROPY_ALERT_THRESHOLD or not frame["schema_valid"]: print(f"[ALERT] delta={frame['entropy_delta']:.2f} schema_valid={frame['schema_valid']}") print(f" payload={frame'payload'}")

4. Inspect session health before deciding to continue

telemetry = httpx.post(f"{BASE}/ws-sessions/{session_id}/telemetry").json() print(f"schema_violation_rate={telemetry['schema_violation_rate']:.3f} " f"current_entropy={telemetry['current_entropy']:.2f}")

5. Close cleanly

httpx.post(f"{BASE}/ws-sessions/{session_id}/close", json={ "status_code": 1000, "reason": "task complete", }).raise_for_status()


curl example

# Open a session (requires x402 payment — this call alone will return 402

without a valid payment header; see https://docs.x402.org)

curl -X POST https://npm-package-ws-has-241560546-w-production.up.railway.app/ws-sessions/open \ -H "Content-Type: application/json" \ -d '{"target_url": "wss://echo.websocket.org"}'

Send a frame (replace SESSION_ID with the value returned above — not billed)

curl -X POST https://npm-package-ws-has-241560546-w-production.up.railway.app/ws-sessions/SESSION_ID/send-frame \ -H "Content-Type: application/json" \ -d '{"payload": "hello world", "frame_type": "text"}'

Drain buffered inbound frames

curl -X POST https://npm-package-ws-has-241560546-w-production.up.railway.app/ws-sessions/SESSION_ID/drain-frames \ -H "Content-Type: application/json" \ -d '{"max_frames": 5}'


MCP

Connect an MCP-compatible client to the streamable HTTP endpoint at:

https://npm-package-ws-has-241560546-w-production.up.railway.app/mcp

Exposes the same 5 operations as MCP tools (open_websocket_session, send_typed_ws_frame, drain_ws_frame_buffer, inspect_ws_session_telemetry, close_websocket_session), with the same parameters and payment requirement (open_websocket_session requires x402 payment; the other 4 do not).


SDKs

  • `sdk_wrappers/sdk.js` — real HTTP client (axios) against the base URL above. Published to npm as @nexus-mcp-infra/npm-package-ws-has-241560546-weekly-downloads-but-sdk. This is the one to use.
  • `mcp_wrapper/npm_package_ws_has_241560546_weekly_downloads_but_sdk.py` — do not use. It defaults to a placeholder d

ตัดมาแค่ช่วงต้น อ่านต่อใน repo