Skip to main content

A modern MCP server for TCP ping testing via pingloc.com

Project description

tcpping MCP stdio server (FastMCP)

FastMCP-based stdio MCP server implemented in modern_server.py. The earlier hand-written JSON-RPC variant has been removed for simplicity.

Features

  • Self-contained scraping core (tcpping_core.py)
  • Single tool tcpping_run with rich parameters
  • Fallback parsing & diagnostics (debug dumps HTML + screenshot)
  • Optional summary_only mode for lightweight responses

Run (from source checkout)

python -m tcpping.mcp.stdio.modern_server

Run (after pip install)

tcpping-mcp

Both start a stdio MCP server exposing tool name tcpping_run.

Self-contained: the server embeds its own scraping core (tcpping_core.py) and does not import the top-level run_tcpping.py, making it easy to vendor just this directory.

Invoke (conceptual example)

MCP client request (pseudo):

{"jsonrpc":"2.0","id":"10","method":"tools/call","params":{"name":"tcpping_run","arguments":{"target":"admin.exchange.microsoft.com","summary_only":true}}}

Response result will be a JSON string (already serialized) containing either full dataset or minimal subset.

FastMCP Tool Parameters

Name Type Default Description
target string (required) Domain or URL
port int 443 TCP port
timeout float 120 Max seconds overall
retries int 1 Retry attempts
headless bool true Headless browser mode
browser_channel string msedge Playwright browser channel
debug bool false Dump diagnostics on empty results
summary_only bool false Return reduced summary subset

Returned Value

Serialized JSON string. Client may need to parse it once more to treat as object.

Notes

  • Ensure Playwright browsers installed:
pip install -r tcpping/requirements.txt
playwright install chromium
  • If site structure changes, underlying run_tcpping.py improvements automatically propagate here.

CLI Help (future)

The current entry point simply launches the MCP server. A future version may add flags like --info or --version.

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

tcpping_mcp_server-0.1.0.tar.gz (3.6 kB view details)

Uploaded Source

Built Distribution

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

tcpping_mcp_server-0.1.0-py3-none-any.whl (3.7 kB view details)

Uploaded Python 3

File details

Details for the file tcpping_mcp_server-0.1.0.tar.gz.

File metadata

  • Download URL: tcpping_mcp_server-0.1.0.tar.gz
  • Upload date:
  • Size: 3.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.9

File hashes

Hashes for tcpping_mcp_server-0.1.0.tar.gz
Algorithm Hash digest
SHA256 c41eb71ebe1f4106282b22d4d30d70a8cb92d56646eda76b8cce2cc79888d115
MD5 57b00da4ea6e8660aac902a339868229
BLAKE2b-256 a591c84d8b8901e80427662cd3f48dafd40a3cdd413b16c3c131f632a73822fc

See more details on using hashes here.

File details

Details for the file tcpping_mcp_server-0.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for tcpping_mcp_server-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 c682b97301c8c00fb1f7d219787b29fc868cf723a89ae993528e979a225225c3
MD5 b87b52356c81861cca311b6dca8392c9
BLAKE2b-256 1baf2328a34eef8804d057986f38b91014450ee15e7f4e14f0264ff74b2a3909

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