{"$schema":"https://wellknown.network/schemas/agent-record-v1.json","schemaVersion":"1","id":"ag_pwp77fjaxd8s","handle":"dli-mcp-server","url":"https://wellknown.network/agents/dli-mcp-server","links":{"self":"https://wellknown.network/agents/dli-mcp-server/record.json","html":"https://wellknown.network/agents/dli-mcp-server","markdown":"https://wellknown.network/agents/dli-mcp-server/record.md","api":"https://wellknown.network/api/v1/agents/dli-mcp-server","status":"https://wellknown.network/api/v1/agents/dli-mcp-server/status","claim":"https://wellknown.network/agents/dli-mcp-server/claim","claimApi":"https://wellknown.network/api/v1/claims","claimDescriptor":"https://wellknown.network/agents/dli-mcp-server/claim.json","badge":"https://wellknown.network/agents/dli-mcp-server/badge.svg","openapi":"https://wellknown.network/openapi.json","history":"https://wellknown.network/api/v1/agents/dli-mcp-server/history","tools":"https://wellknown.network/api/v1/agents/dli-mcp-server/tools"},"ard":{"identifier":"urn:air::server:dli-mcp-server","type":"application/mcp-server-card+json"},"kind":"mcp_server","declared":{"name":"dli-mcp-server","summary":"An MCP server to control Digital Loggers (DLI) Web Power Switches.","description":"# DLI Power Switch MCP Server\n\n## Overview\n\nThis project implements a **Model Context Protocol (MCP)** server that allows an AI agent to control [**Digital Loggers (DLI)** Web Power Switches](https://www.digital-loggers.com/LPC9.html). The system provides tools for discovering hardware, querying outlet status, and performing power operations (On/Off/Cycle).\n\n**Crucial Constraint:** This system interacts with physical hardware. Strict safety protocols are enforced to prevent accidental power loss to critical infrastructure.\n\n## Key Files\n\n* **`server.py`**: The main entry point. Contains the FastMCP server implementation, tool definitions, and hardware interaction logic using the [`power-switch-pro`](https://pypi.org/project/power-switch-pro/) library.\n* **`switches_config.json`**: The source of truth for device configuration. Defines IP addresses, authentication, outlet aliases, and safety types (`standard`, `critical`, `prohibited`).\n* **`requirements.txt`**: Python dependencies (`power-switch-pro`).\n* **`tests/`**: Unit tests for the server logic.\n\n## Architecture & Performance\n\nThis server is designed for responsiveness and safety:\n\n* **Asynchronous Core:** Built on Python's `asyncio` to handle multiple operations efficiently.\n* **Non-Blocking I/O:** Interactions with physical hardware (which can be slow) are offloaded to background threads, ensuring the main server loop remains responsive.\n* **Parallel Discovery:** The `get_inventory` tool fetches status from all configured switches concurrently, significantly reducing latency in systems with multiple devices.\n\n## Installation\n\nInstall this server from PyPI using pip:\n\n```bash\npip install dli-mcp-server\n```\n\n### Configuring with Gemini CLI (and Antigravity)\n\nOnce installed, register the server with the Gemini CLI (or Antigravity) using the `mcp add` command. This ensures the server starts automatically.\n\n```bash\ngemini mcp add dli-mcp-server dli-mcp-server -e DLI_MCP_CONFIG=\"/path/to/your/config.json\"\n```\n\n**Pa…","publisher":null,"homepage":"https://github.com/hharte/dli-mcp-server","repository":"https://github.com/hharte/dli-mcp-server","version":"0.0.1","license":null,"protocols":["mcp"],"tags":["mcp"],"pricing":null,"endpoints":[{"url":"pypi:dli-mcp-server","type":"package_pypi","auth":null,"probeable":false}],"skills":null,"tools":null,"extra":null,"attribution":{"kind":"pypi","name":"pypi","repoUrl":"pypi","summary":"pypi","version":"pypi","description":"pypi","homepageUrl":"pypi"}},"derived":{"capabilities":[{"slug":"dev.package-management","name":"Packages & Dependencies","confidence":0.825,"provenance":"derived"},{"slug":"infra.devices","name":"Devices & IoT","confidence":0.802,"provenance":"derived"}],"categories":["dev","infra"],"language":"en"},"observed":{"status":"unknown","statusReason":"Distributed as a package to run locally; no network endpoint to check.","lastOkAt":null,"lastProbedAt":null,"statusComputedAt":null,"reliability30d":null,"latestObservations":[],"tools":null,"package":{"name":"dli-mcp-server","registry":"pypi","observedAt":"2026-11-09T03:24:46.188Z","publishedAt":"2026-02-02T01:05:35.004926Z","latestVersion":"0.0.1"},"toolSurface":null,"endpointFacts":[]},"verification":{"claimed":false,"claimedAt":null,"proofs":[]},"provenance":{"sources":[{"source":"pypi","key":"dli-mcp-server","url":"https://pypi.org/project/dli-mcp-server/","firstSeenAt":"2026-09-09T14:31:51.661Z","fetchedAt":"2026-11-09T03:23:48.154Z","normalizedAt":"2026-11-09T03:23:48.154Z"}]},"firstSeenAt":"2026-09-09T14:31:51.661Z","updatedAt":"2026-11-09T03:24:46.188Z"}