17 lines
418 B
Python
17 lines
418 B
Python
import asyncio
|
|
import json
|
|
from mcp_client import MCPClient
|
|
|
|
async def main():
|
|
client = MCPClient()
|
|
await client.connect()
|
|
try:
|
|
# Get raw API response
|
|
resp = await client.request("EvaluateCascadeLspMethods", {"method": "GetDiagnostics", "params": "{}"})
|
|
print(json.dumps(resp, indent=2))
|
|
finally:
|
|
await client.close()
|
|
|
|
if __name__ == "__main__":
|
|
asyncio.run(main())
|