We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/Zazzles2908/EX_AI-mcp-server'
If you have feedback or need assistance with the MCP directory API, please join our Discord server
chaining.py•519 B
from __future__ import annotations
from typing import Callable, Dict, Any, List
class ChainRunner:
"""Run a list of callables(context)->dict, threading context through."""
def __init__(self, steps: List[Callable[[Dict[str, Any]], Dict[str, Any]]]):
self.steps = steps
def run(self, context: Dict[str, Any]) -> Dict[str, Any]:
state = dict(context)
for step in self.steps:
out = step(state)
if out:
state.update(out)
return state