UTCP GraphQL Communication Protocol Plugin
This plugin integrates GraphQL as a UTCP 1.0 communication protocol and call template. It supports discovery via schema introspection, authenticated calls, and header handling.
Getting Started
Installation
pip install gql
Registration
import utcp_gql
utcp_gql.register()
How To Use
- Ensure the plugin is imported and registered:
import utcp_gql; utcp_gql.register(). - Add a manual in your client config:
{ "name": "my_graph", "call_template_type": "graphql", "url": "https://your.graphql/endpoint", "operation_type": "query", "headers": { "x-client": "utcp" }, "header_fields": ["x-session-id"] }
- Call a tool:
await client.call_tool("my_graph.someQuery", {"id": "123", "x-session-id": "abc"})
Notes
- Tool names are prefixed by the manual name (e.g.,
my_graph.someQuery). - Headers merge static
headersplus whitelisted dynamic fields fromheader_fields. - Supported auth: API key, Basic auth, OAuth2 (client-credentials).
- Security: only
https://orhttp://localhost/http://127.0.0.1endpoints.
For UTCP core docs, see https://github.com/universal-tool-calling-protocol/python-utcp.
Metadata
Release files for utcp-gql 1.1.5
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| utcp_gql-1.1.5.tar.gz | 14.8 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| utcp_gql-1.1.5-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 26.5 kB
Release files / utcp_gql-1.1.5.tar.gz
| Download URL | utcp_gql-1.1.5.tar.gz |
|---|---|
| Size | 14.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
d64336354985c4ce8554821023809c14e3cbe9631f9e49f80ccd0d38550d388b
|
|
BLAKE2b-256 checksum How to use checksums |
9c9fec604baa98aacde7b3eb089ae5c91d02c086d27e3d043399f5b195905764
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.13.5
|
Release files / utcp_gql-1.1.5-py3-none-any.whl
| Download URL | utcp_gql-1.1.5-py3-none-any.whl |
|---|---|
| Size | 11.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
645f240038b6de7519edc77d2a44064f72d6195b80f1b1a9b0b61f8c9b8f1d75
|
|
BLAKE2b-256 checksum How to use checksums |
856564aff1beaa66385efc230f5811fa0bc7aef271febd5fc588c7bf8d08b29e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.13.5
|