jueves, 9 de octubre de 2025

HTML

 

$ ops -plugin https://github.com/mastrogpt/olaris-mcp $ ops mcp Usage: mcp new [] (--tool=|--resource=|--prompt=|--clean=) [--redis] [--postgres] [--milvus] [--s3] mcp run [--sse] mcp test [--sample] [--norun] mcp install [] [--cursor] [--claude] [--5ire] [--uninstall] mcp inspect [--sse] $ ops mcp new demomcp --tool=weather #-a mcp:type tool #-a mcp:desc "Provides weather information for a given location" #-a input:str "The location to retrieve weather data for" AI Prompt: A Python function get_weather(location) using requests and open-meteo.com that retrieves the given location, selects the first match, then fetches and returns the weather information for that location. def weather(args): inp = args.get("input", "") if inp: out = get_weather(inp) else: out = "Please provide a location to get the weather information for." return {"output": out} $ ops ide deploy demomcp/weather ok: updated action demomcp/weather $ ops invoke demomcp/weather { "output": "Please provide a location to get the weather information for." } $ ops invoke demomcp/weather input=Rome { "output": { "location": "Rome, Italy", "temperature": 26.0, "time": "2025-06-22T06:45", "weathercode": 2, "winddirection": 360, "windspeed": 2.9 } } $ ops invoke demomcp/weather input=NontExistingCity { "output": "Could not find location: NontExistingCity" } $ ops mcp inspect demomcp $ ops -plugin https://github.com/mastrogpt/olaris-mcp $ ops ide login $ ops mcp install demomcp --5ire

No hay comentarios:

Publicar un comentario

Juegos Olimpicos 2028 SIGUE TU BANDERA

  Web Oficial Link RADAR de Feeder AIRNAVIGATION REAL TIME COLABORACION INTERNACIONAL. FONDOS EUROPEOS NEXT GENERATION. SALVAMENTO Y RESCAT...