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.4.tar.gz (6.0 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.4-py3-none-any.whl (3.0 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: topology_mcp-0.1.4.tar.gz
  • Upload date:
  • Size: 6.0 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.4.tar.gz
Algorithm Hash digest
SHA256 78ef83731c3d350952021305005e065064a94d6268d603d1ccdd08fe42537e27
MD5 c0201e1cd1416c34eb184d1feef3cf04
BLAKE2b-256 db3ca8674dd2b3c9add5e7e0d873df6307e4aac24cc51b10ba7024b6ab594899

See more details on using hashes here.

File details

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

File metadata

  • Download URL: topology_mcp-0.1.4-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.4-py3-none-any.whl
Algorithm Hash digest
SHA256 ff0c3217102721963409348b0ce1e0e6e6e3965e8adc4370a90e42f68cd6b57c
MD5 e29d4dbe9cc275052ff11855f1761df6
BLAKE2b-256 c127c8a848fad5c9166c4a3da5b8db22cdab44ffe1b6c538e01d32d1f05a9ec2

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