Skip to main content
Glama
project_nodes.py1.05 kB
from api_connection import post from models import ( ReadProjectNodesRequest, UpdateProjectNodesRequest, ProjectNodesResponse ) def register_project_node_tools(mcp): # Read @mcp.tool( annotations={'title': 'Read project nodes', 'readOnlyHint': True} ) async def read_project_nodes( model: ReadProjectNodesRequest) -> ProjectNodesResponse: """Read the available and selected nodes of a project.""" return await post('/projects/nodes/read', model) # Update @mcp.tool( annotations={ 'title': 'Update project nodes', 'destructiveHint': False, 'idempotentHint': True } ) async def update_project_nodes( model: UpdateProjectNodesRequest) -> ProjectNodesResponse: """Update the active state of the given nodes to true. If you don't provide any nodes, all the nodes become inactive and autoSelectNode is true. """ return await post('/projects/nodes/update', model)

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