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 tohttp://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
Release history Release notifications | RSS feed
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.1.tar.gz
(2.9 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file topology_mcp-0.1.1.tar.gz.
File metadata
- Download URL: topology_mcp-0.1.1.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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
cc4a2e8361a1b2bacbfe782ffd4d8b89b99671ec355af01163213deb1643214d
|
|
| MD5 |
2e125c478f6e5e997bc410c5f6489de9
|
|
| BLAKE2b-256 |
bcaa3b22d7cd25cdd4ca01086ae2494e2abee6c6b46f4d20e422e936f1677142
|
File details
Details for the file topology_mcp-0.1.1-py3-none-any.whl.
File metadata
- Download URL: topology_mcp-0.1.1-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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
865516877ca33ed66686af4f2d0cf75cfded598c8d652c4d538ed419384aee65
|
|
| MD5 |
d20b0d6ea09e270ec92ce85236ca354e
|
|
| BLAKE2b-256 |
346228bf59913a2f6049a41a175f8d6e6f8403d87b7a5c1ecfc2510b1acca287
|