Skip to main content
Glama
live_command.py582 B
# region imports from AlgorithmImports import * # endregion class LiveCommandsTestAlgorithm(QCAlgorithm): def initialize(self): self.add_command(MyCommand) def on_command(self, data): self.log(f'Generic command. data.text: {data.text}') class MyCommand(Command): text = None number = None parameters = {} def run(self, algorithm): parameters = {kvp.key: kvp.value for kvp in self.parameters} algorithm.log(f"Encapsulated command. text: {self.text}; number: {self.number}; parameters: {parameters}") return True

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/i-dream-of-ai/quantconnect-mcp-jwt'

If you have feedback or need assistance with the MCP directory API, please join our Discord server