Skip to main content

A command-line interface for accessing topology data

Project description

Topology CLI

A command-line interface for accessing topology data from a topology service.

Installation

Via pipx (recommended)

pipx install topology-mcp

Via pip

pip install topology-mcp

Usage

Basic Commands

# Get topology edges
topology-cli edges

# Get topology graph
topology-cli graph

# Get topology nodes
topology-cli nodes

# Get topology events
topology-cli events

Advanced Usage

# Use a different topology service URL
topology-cli edges --url http://my-topology-service:8080

# Output as compact JSON
topology-cli nodes --format json

# Use environment variable for URL
export TOPOLOGY_URL=http://my-service:9000
topology-cli graph

Environment Variables

  • TOPOLOGY_URL: Base URL for the topology service (defaults to http://localhost:8000)

Examples

# Get all topology nodes in pretty format
topology-cli nodes

# Get topology graph as compact JSON
topology-cli graph --format json

# Connect to a remote topology service
topology-cli edges --url https://topology.example.com

Development

Setup

# Clone the repository
git clone https://github.com/yourusername/topology-mcp.git
cd topology-mcp

# Install in development mode
pip install -e ".[dev]"

Running Tests

pytest

Code Formatting

black src/

License

MIT License - see LICENSE file for details.

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

topology_mcp-0.1.2.tar.gz (2.9 kB view details)

Uploaded Source

Built Distribution

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

topology_mcp-0.1.2-py3-none-any.whl (3.0 kB view details)

Uploaded Python 3

File details

Details for the file topology_mcp-0.1.2.tar.gz.

File metadata

  • Download URL: topology_mcp-0.1.2.tar.gz
  • Upload date:
  • Size: 2.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.0

File hashes

Hashes for topology_mcp-0.1.2.tar.gz
Algorithm Hash digest
SHA256 3fa9dd7ebfd9fea5a27b0391955a827a98acfd0baebd47f6993c39610c344d52
MD5 fef752a640ebe586872cec8c3cea6c52
BLAKE2b-256 e21abb21b150c6030706990e7570e6bfc1c4ddc52575cde893b2b28082881210

See more details on using hashes here.

File details

Details for the file topology_mcp-0.1.2-py3-none-any.whl.

File metadata

  • Download URL: topology_mcp-0.1.2-py3-none-any.whl
  • Upload date:
  • Size: 3.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.0

File hashes

Hashes for topology_mcp-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 bd5cadf65f8cf9314565092a42810ad2dd6f67758c322353bfb7d549298ff6b6
MD5 1b8bb7890e77a1ee811a201fa7c38bb4
BLAKE2b-256 ba07a674d39b76e7ec45abf466e7c0b6d2cc3b7ecb296e8fb070c628e9424ef5

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