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.4

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.4.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.

cortexhub-2.0.4-py3-none-any.whl (11.7 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: cortexhub-2.0.4.tar.gz
  • Upload date:
  • Size: 8.8 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.4.tar.gz
Algorithm Hash digest
SHA256 24106db4fe315c83462712d104059e42c4bf74c4512809642e3a9b2f7d7d2416
MD5 38f4100d3e8a13e403946ca83b005e39
BLAKE2b-256 74f0fb98cbfac756b52ae56b149509e42786423e2744d09962bee02d929c383f

See more details on using hashes here.

File details

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

File metadata

  • Download URL: cortexhub-2.0.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.12

File hashes

Hashes for cortexhub-2.0.4-py3-none-any.whl
Algorithm Hash digest
SHA256 90f557412bd7e338bfde5d37b681511d995356d812d5047de12c8a44f455a65e
MD5 7c28af483bdf8e0a6e8a67c715fbbdda
BLAKE2b-256 24437b23d105fcd95a69ee97fefa1d20ee0bee5acf670fb7d77f57106a828908

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