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

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.0.0.tar.gz (5.7 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.0.0-py3-none-any.whl (7.4 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: wazobiatech_nexus_mcp-1.0.0.tar.gz
  • Upload date:
  • Size: 5.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.0 CPython/3.14.3 Darwin/25.3.0

File hashes

Hashes for wazobiatech_nexus_mcp-1.0.0.tar.gz
Algorithm Hash digest
SHA256 4173b5215ee1bcb9fcc307283de09df59a2d9e74d2df8cbe6be7d6e7413d2806
MD5 b49fc04e96eefe5d29488e558fee062a
BLAKE2b-256 eb0b9222af91657d3c46f05a3a1997838054700d926377e0f232801b2b099c96

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for wazobiatech_nexus_mcp-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 6729d0ef6d1871d12acd9a5fc2063062aa9c560c775384dd99f2f610fd59a22c
MD5 0fdec09676a578141fcff4dc0ff33da9
BLAKE2b-256 205406b805a2ba4b7fe6a0e5e2054c707d772c50ed837f975586ecf2259328fa

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