forgex 0.10.2

CLI and runtime for the Forge full-stack framework
Documentation
// Context API: ctx.db(), ctx.user_id()?. MCP tools are exposed via /_api/mcp.
// Args and return type become the tool's JSON schema; keep them typed.

use forge::prelude::*;

#[derive(Debug, Deserialize, JsonSchema)]
#[schemars(crate = "forge::schemars")]
pub struct {{Name}}Args {
    /// TODO: describe the input
    pub query: String,
}

#[derive(Debug, Serialize, JsonSchema)]
#[schemars(crate = "forge::schemars")]
pub struct {{Name}}Output {
    pub result: String,
}

#[forge::mcp_tool(description = "TODO: describe what this tool does")]
pub async fn {{name}}(ctx: &McpToolContext, args: {{Name}}Args) -> Result<{{Name}}Output> {
    let _ = ctx;
    Ok({{Name}}Output { result: args.query })
}