Skip to main content

Python SDK for Nexus MCP

Project description

wazobiatech-nexus-mcp

Python SDK for the Nexus MCP ecosystem. Provides HMAC signing/verification and MCP server scaffolding.

Installation

pip install wazobiatech-nexus-mcp==1.1.0

Usage

HMAC Signing

from nexus_mcp.hmac_utils import sign_request

sig, ts = sign_request("GET", "/mcp/manifest", "my-secret")
print("x-signature:", sig)
print("x-timestamp:", ts)

HMAC Middleware (FastAPI)

from fastapi import FastAPI
from nexus_mcp.middleware import HMACMiddleware

app = FastAPI()
app.add_middleware(HMACMiddleware, hmac_secret="my-secret")

MCP Server

from nexus_mcp.server import create_mcp_server
from nexus_mcp.models import Manifest

app = create_mcp_server(
    port=8000,
    hmac_secret="my-secret",
    manifest=Manifest(...),
    tools=[...],
)

# Start with uvicorn
# uvicorn.run(app, host="0.0.0.0", port=8000)

Testing

poetry install
poetry run pytest

Contract vector tests verify every entry from nexus-mcp-contract/vectors.json.

Tool Naming Convention

Tool names follow the Wazobia inter-service MCP convention:

Pattern Valid? Example
service__tool_name thoth__process_content, krisis__score_article
plain_snake_case health_check, process_content

Names start with a lowercase letter and contain only [a-z0-9_]. The double underscore __ is exactly two — not one (which would be part of the slug) and not three or more (which is invalid). Names like a___b, __a__b, or a__b__ are rejected (verified by tests/test_models.py).

License

MIT

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

wazobiatech_nexus_mcp-1.1.0.tar.gz (6.2 kB view details)

Uploaded Source

Built Distribution

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

wazobiatech_nexus_mcp-1.1.0-py3-none-any.whl (8.0 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: wazobiatech_nexus_mcp-1.1.0.tar.gz
  • Upload date:
  • Size: 6.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.0 CPython/3.11.15 Darwin/25.5.0

File hashes

Hashes for wazobiatech_nexus_mcp-1.1.0.tar.gz
Algorithm Hash digest
SHA256 a3abe0d8045b342bfb1f051d8a869829ccd53b7b469786a1ad6f17c184729d13
MD5 df7062b4278f41dbd077f66899a4cf9e
BLAKE2b-256 0699c960cb38954647297232cd42633cdcc130039cf3d971487c465e19bf65d5

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for wazobiatech_nexus_mcp-1.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 3b45834aef43ba0b6eca21db8e44714e8587714bd3685823cc73e543e00fa9e8
MD5 b452bcc4f6b947cf2c6e1fa60f068e41
BLAKE2b-256 c141d6781f8ea1ed45c36ef22e6566894b958b70169f1c5c8099a46552ad7fb0

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