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 uvx (recommended)

uvx 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 with uv
uv sync --dev

# Or with pip
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.8.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.8-py3-none-any.whl (3.0 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: topology_mcp-0.1.8.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.8.tar.gz
Algorithm Hash digest
SHA256 5b16749b0bdcbccb86ab4160ab9a41fffbb9a31aabe862c4f60680f9656fd846
MD5 4318b2316bb34cbfcaaa7271fa216c66
BLAKE2b-256 ed2e2ecb00d1c3744648813ad071e9d4b0caa36a7d9a8dc2fbbc71373ddcc962

See more details on using hashes here.

File details

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

File metadata

  • Download URL: topology_mcp-0.1.8-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.8-py3-none-any.whl
Algorithm Hash digest
SHA256 8b1d51a55097537ff8cbd5b2d989f2b6381b2d9db456ba9fa6295a5d54f53748
MD5 cf84b16ffa1a1f5a6af32b9a30ed3ac8
BLAKE2b-256 b55dbccddc3713895f4b0b4bf512d2c8850dd418f73565aa8c87a455d53de4e9

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