Skip to content

feat: trios-server MCP WebSocket endpoint (ws://0.0.0.0:9005/ws) - #149

Merged
gHashTag merged 6 commits into
mainfrom
feat/trios-server-ws
Apr 20, 2026
Merged

gHashTag merged 6 commits into
mainfrom
feat/trios-server-ws

Conversation

@gHashTag

Copy link
Copy Markdown
Collaborator

Summary

  • WebSocket endpoint at /ws on port 9005 (L5) for Chrome Extension → agents bridge
  • MCP methods: agents/list, agents/chat, tasks/assign, tasks/status, experience/read, tools/list, tools/call
  • Full ws_handler.rs with async message routing and AppState (agents + tasks state)
  • mcp_endpoints/ module: agents.rs, tasks.rs, experience.rs
  • tokio::main with health endpoint, auth + timeout middleware
  • 13 unit tests passing (6 security + 7 ws_handler)
  • Fixed existing clippy warnings in tools modules

Architecture

Chrome Extension (trios-ext)
    │ WebSocket ws://localhost:9005/ws
    ▼
trios-server (Axum + WS)
    ├── /ws → ws_handler → MCP method dispatch
    ├── /health → "ok"
    └── tools/ → dispatch to trios-git, trios-gb, trios-kg, etc.

Verification

  • cargo clippy -p trios-server -- -D warnings = 0 (L3)
  • cargo test -p trios-server = 13/13 passed (L4)
  • cargo build -p trios-server --release = 0 errors
  • 0 .sh files (L1)

Closes #118 refs #106 #107 #108 #114

…, safe Result<Option<T>> patterns — Closes #121 refs #108
- igla-trainer: 11 tests (config, schedule LR, audit log)
- trios-doctor: 9 tests (diagnosis, crate discovery, parsing)
- trios-hybrid: 4 tests (FFI stubs, null safety)
- trios-vm: 4 tests (FFI stubs, null safety)
- trios-sdk: 3 tests (hypervector FFI, dimensions)
@gHashTag
gHashTag force-pushed the feat/trios-server-ws branch from 1c02c05 to ff5ff10 Compare April 20, 2026 19:23
@gHashTag
gHashTag merged commit fe4e70d into main Apr 20, 2026
2 checks passed
@gHashTag
gHashTag deleted the feat/trios-server-ws branch April 20, 2026 19:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

feat: crates/trios-server — MCP WebSocket endpoint (мост Chrome Extension → агенты)

1 participant