Skip to main content

MCP gateway client for CortexHub programmatic agent access.

Project description

cortexhub

Official Python SDK for CortexHub programmatic MCP access.

Documentation

Install

pip install cortexhub

Credentials

Create an MCP OAuth client in CortexHub Cloud: AccountMCP API access → copy client_id and client_secret.

Usage

from cortexhub import Cortexhub

session = Cortexhub().session(
    agent="helpdesk-bot",
    mcp_session_id="chat-42",  # optional: separate conversations in Cloud
    conversation_title="Engineering standup",  # optional: shown to operators
    last_user_message="Create a standup page in Engineering Confluence",  # optional
)
# session.mcp.url and session.mcp.headers → pass to your MCP transport

Configuration

Variable Default Purpose
CORTEXHUB_URL https://mcp.cortexhub.ai MCP gateway and OAuth token base URL
CORTEXHUB_CLIENT_ID MCP OAuth client id
CORTEXHUB_CLIENT_SECRET MCP OAuth client secret

Token exchange: POST {CORTEXHUB_URL}/v1/mcp/oauth/token (client_credentials or refresh_token).

License

MIT.

Project details


Release history Release notifications | RSS feed

This version

2.0.3

Download files

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

Source Distribution

cortexhub-2.0.3.tar.gz (6.0 kB view details)

Uploaded Source

Built Distribution

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

cortexhub-2.0.3-py3-none-any.whl (7.4 kB view details)

Uploaded Python 3

File details

Details for the file cortexhub-2.0.3.tar.gz.

File metadata

  • Download URL: cortexhub-2.0.3.tar.gz
  • Upload date:
  • Size: 6.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.12

File hashes

Hashes for cortexhub-2.0.3.tar.gz
Algorithm Hash digest
SHA256 0bc507c50ab8d561675e6d3a89b9d98be9d084190851159eda0cade591993048
MD5 c5b041ab93a768f677db7158e114700e
BLAKE2b-256 eb90de07cadda18ba4dbfedad2db7a99339adf2d9e33ae4bda880223ef22a343

See more details on using hashes here.

File details

Details for the file cortexhub-2.0.3-py3-none-any.whl.

File metadata

  • Download URL: cortexhub-2.0.3-py3-none-any.whl
  • Upload date:
  • Size: 7.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.12

File hashes

Hashes for cortexhub-2.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 09648c43cd156776bfe4738fa344bbdd071dc01e0c9db1cdeeae2003ecf04619
MD5 cf8b66892181876839b75acab4170f30
BLAKE2b-256 0e4ddee373b1dfb1959aa1be77a12f19559d88f968bf44b655489286ebab3c61

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