Infobús MCP (servidor)
Interfaz de inteligencia artificial en sistemas de información para personas usuarias del transporte público
Fabián Abarca Calderón
Nota: manejador de paquetes de Python uv.
uv init transit
cd transit
uv venv
source .venv/bin/activate
uv add "mcp[cli]" httpx
touch transit.py
@mcp.tool()
async def get_forecast(latitude: float, longitude: float) -> str:
"""Get weather forecast for a location.
Args:
latitude: Latitude of the location
longitude: Longitude of the location
"""
# First get the forecast grid endpoint
points_url = f"{INFOBUS_API_BASE}/points/{latitude},{longitude}"
points_data = await make_infobus_request(points_url)
if not points_data:
return "Unable to fetch forecast data for this location."
# Get the forecast URL from the points response
forecast_url = points_data["properties"]["forecast"]
forecast_data = await make_infobus_request(forecast_url)
if not forecast_data:
return "Unable to fetch detailed forecast."
# Format the periods into a readable forecast
periods = forecast_data["properties"]["periods"]
forecasts = []
for period in periods[:5]: # Only show next 5 periods
forecast = f"""
{period['name']}:
Temperature: {period['temperature']}°{period['temperatureUnit']}
Wind: {period['windSpeed']} {period['windDirection']}
Forecast: {period['detailedForecast']}
"""
forecasts.append(forecast)
return "\n---\n".join(forecasts)
Metadata
Release files for iflow-mcp_simovilab-transit 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| iflow_mcp_simovilab_transit-0.1.0.tar.gz | 3.8 kB | Without provenance | Details for iflow_mcp_simovilab_transit-0.1.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| iflow_mcp_simovilab_transit-0.1.0-py3-none-any.whl | Python 3 | none | any | Details for iflow_mcp_simovilab_transit-0.1.0-py3-none-any.whl |
Total release size: 9.5 kB
Release files / iflow_mcp_simovilab_transit-0.1.0.tar.gz
| Download URL | iflow_mcp_simovilab_transit-0.1.0.tar.gz |
|---|---|
| Size | 3.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
6505b0198e2a648b52fec86d33c83b2f08b9fffaed947c061866031d85989492
|
|
BLAKE2b-256 checksum How to use checksums |
54fd059679858d905b2af8b9d7925c905a22072ba5c003ade0b29d659422b64e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.10.2 {"installer":{"name":"uv","version":"0.10.2","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Debian GNU/Linux","version":"13","id":"trixie","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
|
Release files / iflow_mcp_simovilab_transit-0.1.0-py3-none-any.whl
| Download URL | iflow_mcp_simovilab_transit-0.1.0-py3-none-any.whl |
|---|---|
| Size | 5.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
3a350a954e62c9c070714ba239bedbe37efa5441243d7f80360c87c6738384dc
|
|
BLAKE2b-256 checksum How to use checksums |
5099e305fa17a3936d690f11247135e6a5bb09cb1e652f14febb8f2cdc9acd50
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.10.2 {"installer":{"name":"uv","version":"0.10.2","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Debian GNU/Linux","version":"13","id":"trixie","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
|
Security for iflow-mcp_simovilab-transit 0.1.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.