Skip to main content

UTCP communication protocol plugin for GraphQL.

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 headers plus whitelisted dynamic fields from header_fields.
  • Supported auth: API key, Basic auth, OAuth2 (client-credentials).
  • Security: only https:// or http://localhost/http://127.0.0.1 endpoints.

For UTCP core docs, see https://github.com/universal-tool-calling-protocol/python-utcp.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

utcp_gql-1.1.0.tar.gz (8.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

utcp_gql-1.1.0-py3-none-any.whl (6.8 kB view details)

Uploaded Python 3

File details

Details for the file utcp_gql-1.1.0.tar.gz.

File metadata

  • Download URL: utcp_gql-1.1.0.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

Hashes for utcp_gql-1.1.0.tar.gz
Algorithm Hash digest
SHA256 e85e6ff335158efe1dfa68dd67c4386f52841471196fc7aeaac4ae045e7b073b
MD5 2e518e5598e2a076c7195b71b0cead57
BLAKE2b-256 5f49cf5884627c1f17e6499f8d243408f1ee5f80b0d1b095fb3936d7bf25915c

See more details on using hashes here.

File details

Details for the file utcp_gql-1.1.0-py3-none-any.whl.

File metadata

  • Download URL: utcp_gql-1.1.0-py3-none-any.whl
  • Upload date:
  • Size: 6.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.5

File hashes

Hashes for utcp_gql-1.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 5b03427c73a5ebfdbb6a6a01d33684b1c2a43b6f00041db70c5b671adfd7a397
MD5 e9700f022177b5e549561b45cab957f5
BLAKE2b-256 b3ec12529c27253a065d052324c0e94c48cb9a1824d33df0c7c4327a4211db03

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page