UTCP communication protocol plugin for GraphQL. (Work in progress)
Project description
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.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file utcp_gql-1.0.2.tar.gz.
File metadata
- Download URL: utcp_gql-1.0.2.tar.gz
- Upload date:
- Size: 8.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
760c62a2ae4326cfa46894c7f26fbb70ce97950cf7f5a99dd414efa72eafe634
|
|
| MD5 |
24455b69ec3bf10ac368e448b91f5ba9
|
|
| BLAKE2b-256 |
4a3086b9eea967dce2edcacf18663fa6103bf61068f28d3b4c76f801995931b0
|
File details
Details for the file utcp_gql-1.0.2-py3-none-any.whl.
File metadata
- Download URL: utcp_gql-1.0.2-py3-none-any.whl
- Upload date:
- Size: 6.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c76e2f8731f7367ccd1b91e16110b54039e1b0843edc58eda750c82271c7ee22
|
|
| MD5 |
46e27ac185c9e5d6d5d0afc5e8b5da7e
|
|
| BLAKE2b-256 |
d461310374d3bdd1faf9d82406391839e253a5ae975f1320b2f293aed8e076e9
|