Loading...
Loading...
Operate Matrix Client-Server API through UXC with a curated OpenAPI schema, bearer-token auth, and homeserver-aware messaging guardrails.
npx skill4agent add holon-run/uxc matrix-openapi-skilluxcuxcuxcPATHhttps://<homeserver>/_matrix/client/v3https://raw.githubusercontent.com/holon-run/uxc/main/skills/matrix-openapi-skill/references/matrix-client-server.openapi.json/synchttps://<homeserver>/_matrix/client/v3https://matrix.org/_matrix/client/v3/_matrix/client/v3Authorization: Bearer <access_token>uxc auth oauth start matrix-oauth \
--endpoint https://matrix.org/_matrix/client/v3 \
--redirect-uri http://127.0.0.1:8788/callback \
--client-id <client_id>
uxc auth oauth complete matrix-oauth \
--session-id <session_id> \
--authorization-response 'http://127.0.0.1:8788/callback?code=...'
uxc auth binding add \
--id matrix-oauth \
--host matrix.org \
--path-prefix /_matrix/client/v3 \
--scheme https \
--credential matrix-oauth \
--priority 100uxc auth credential set matrix-access \
--auth-type bearer \
--secret-env MATRIX_ACCESS_TOKEN
uxc auth binding add \
--id matrix-access \
--host matrix.org \
--path-prefix /_matrix/client/v3 \
--scheme https \
--credential matrix-access \
--priority 100matrix.orguxc auth binding match https://matrix.org/_matrix/client/v3uxc auth oauthhttp://127.0.0.1:8788/callbackcommand -v matrix-openapi-cliuxc link matrix-openapi-cli https://matrix.org/_matrix/client/v3 --schema-url https://raw.githubusercontent.com/holon-run/uxc/main/skills/matrix-openapi-skill/references/matrix-client-server.openapi.jsonmatrix-openapi-cli -hmatrix-openapi-cli get:/account/whoami -hmatrix-openapi-cli get:/sync -hmatrix-openapi-cli put:/rooms/{roomId}/send/{eventType}/{txnId} -hmatrix-openapi-cli get:/account/whoamimatrix-openapi-cli get:/joined_roomsmatrix-openapi-cli get:/rooms/{roomId}/state roomId=!abc123:example.orgmatrix-openapi-cli get:/sync timeout=30000 filter={"room":{"timeline":{"limit":10}}}matrix-openapi-cli put:/rooms/{roomId}/send/{eventType}/{txnId} '{"roomId":"!abc123:example.org","eventType":"m.room.message","txnId":"uxc-001","msgtype":"m.text","body":"Hello from UXC"}'/syncuxc subscribe startuxc subscribe start https://matrix.org/_matrix/client/v3 get:/sync --auth matrix-oauth --mode poll --poll-config '{"interval_secs":2,"extract_items_pointer":"/rooms/join/!abc123:example.org/timeline/events","missing_extract_items_pointer_as_empty":true,"request_cursor_arg":"since","response_cursor_pointer":"/next_batch","checkpoint_strategy":{"type":"cursor_only"}}' --sink file:$HOME/.uxc/subscriptions/matrix-sync.ndjson timeout=1000 'filter={"room":{"rooms":["!abc123:example.org"],"timeline":{"limit":5}}}'get:/account/whoamiget:/joined_roomsget:/syncget:/rooms/{roomId}/stateget:/rooms/{roomId}/state/{eventType}/{stateKey}get:/profile/{userId}get:/presence/{userId}/statusput:/rooms/{roomId}/send/{eventType}/{txnId}--textokkindprotocoldataerrorget:/syncuxc subscribe start/syncmissing_extract_items_pointer_as_empty=trueput:/rooms/{roomId}/send/{eventType}/{txnId}m.room.messagetxnIdmatrix-openapi-cli <operation> ...uxc <homeserver_client_base> --schema-url <matrix_openapi_schema> <operation> ...references/usage-patterns.mdreferences/matrix-client-server.openapi.json