Skip to main content

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.

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.4.tar.gz (14.2 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.4-py3-none-any.whl (11.7 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: utcp_gql-1.1.4.tar.gz
  • Upload date:
  • Size: 14.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.0

File hashes

Hashes for utcp_gql-1.1.4.tar.gz
Algorithm Hash digest
SHA256 81c7de89705c549d22540cf218005201202e946a0d12d8819875ca894cee0f60
MD5 0fa73c37d7fef51426c6d9fb36c15bf8
BLAKE2b-256 064004a4492dcf50c6b8cd17d0f10f1fbb4da61072a37c0249b1e1901d8fc860

See more details on using hashes here.

File details

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

File metadata

  • Download URL: utcp_gql-1.1.4-py3-none-any.whl
  • Upload date:
  • Size: 11.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.0

File hashes

Hashes for utcp_gql-1.1.4-py3-none-any.whl
Algorithm Hash digest
SHA256 687d2575fc5b619f69eb6a2729dd9e7bdc5368fd10158ec8629b60f71c8ee26e
MD5 9ab9eca727d43d70672b4df72234146f
BLAKE2b-256 982355914fcb307d50f7a128d925cf7986ba06e4454213b6bcadf4b779993504

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

1.1.4 This release

2 files

1.1.3

2 files

1.1.2

2 files

1.1.1

2 files

1.1.0

2 files

1.0.2

2 files

Supported by

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