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 Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

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

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

Uploaded Python 3

File details

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

File metadata

  • Download URL: topology_mcp-0.1.3-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.3-py3-none-any.whl
Algorithm Hash digest
SHA256 0965c1acdbbf77a8d83acd0b810c27400287b42a3b49e4f9c1a91763c527322b
MD5 056868dde5cecbcfc408864038ad877b
BLAKE2b-256 bec5a31255a9b9e0eaac541481952728939a6ba788f63a715a0d02223f554750

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