Skip to main content

Spec-driven management tool registrar for Copass agents (read-only, Phase 1).

Project description

copass-management

Spec-driven management tool registrar for Copass agents (Python).

This package consumes the copass/spec/management/v1/ JSON Schema corpus and exposes a transport-agnostic registrar that wires each tool through copass-core. An optional MCP adapter lives at copass_management.adapters.mcp for Model Context Protocol consumers.

Phase 1 ships the read-only subset (14 tools). Write tools follow in Phase 2.

Usage

from copass_core import ApiKeyAuth, CopassClient
from copass_management import (
    RegistrarOptions,
    register_management_tools,
)

client = CopassClient(auth=ApiKeyAuth(key="olk_..."))

def register(registration):
    print(registration.name, registration.description)

register_management_tools(
    register,
    client,
    RegistrarOptions(sandbox_id="sb_..."),
)

For MCP transports, use register_to_mcp_server from copass_management.adapters.mcp. The MCP SDK is an optional dependency installed separately.

Spec source

The package vendors a copy of the JSON Schema corpus under copass_management/_spec/v1/. In dev, set COPASS_MANAGEMENT_SPEC_DIR to point at the source tree.

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

copass_management-0.5.0.tar.gz (19.6 kB view details)

Uploaded Source

Built Distribution

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

copass_management-0.5.0-py3-none-any.whl (44.9 kB view details)

Uploaded Python 3

File details

Details for the file copass_management-0.5.0.tar.gz.

File metadata

  • Download URL: copass_management-0.5.0.tar.gz
  • Upload date:
  • Size: 19.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.10.9

File hashes

Hashes for copass_management-0.5.0.tar.gz
Algorithm Hash digest
SHA256 edf0c6dc553c3410efeb4f7ecbb464e6719cf8796eeda32c52b9bfda19127723
MD5 9a2013de82e85b6314254b2bae851c79
BLAKE2b-256 282d2d0a9562e60a0bf9fc7de6c233f4c75c00a62709652a13893cbe5f514b0e

See more details on using hashes here.

File details

Details for the file copass_management-0.5.0-py3-none-any.whl.

File metadata

File hashes

Hashes for copass_management-0.5.0-py3-none-any.whl
Algorithm Hash digest
SHA256 a8f5d8d7001afa66e7a902f9e317b21585a0677806965edd7222ca66e6b80bac
MD5 0e6b3722a886342cd4f0e9c872f178d5
BLAKE2b-256 e7ade59266705d985ccf37bdfa29368e6e00504d687a571f3ec8113024683780

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