We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/Banyango/ReciMCP'
If you have feedback or need assistance with the MCP directory API, please join our Discord server
tools.py•803 B
from wireup.integration.starlette import inject
from app.container import container
from core.interfaces.recipe_client import RecipeClient
from core.recipes.queries import RecipeQueries
@inject
async def get_recipe_by_name(recipe_name: str) -> str:
"""Get a recipe by name tool.
Args:
recipe_name (str): The name of the recipe.
"""
recipe_client = await container.get(RecipeClient)
tool = RecipeQueries(recipe_client)
return tool.get_recipe_by_name(recipe_name)
@inject
async def get_recipe_by_id(recipe_id: int) -> str:
"""
Get a recipe by ID tool.
Args:
recipe_id (int): The ID of the recipe.
"""
recipe_client = await container.get(RecipeClient)
tool = RecipeQueries(recipe_client)
return tool.get_recipe_by_id(recipe_id)