Expand description
PatchworkMCP — Drop-in feedback tool for Rust MCP servers.
Copy this file into your project and call send_feedback() with your
MCP server router, or use the constants and helpers directly.
Dependencies (add to Cargo.toml): reqwest = { version = “0.12”, features = [“json”] } serde = { version = “1”, features = [“derive”] } serde_json = “1” tokio = { version = “1”, features = [“full”] }
Configuration via environment: PATCHWORKMCP_URL - default: https://patchworkmcp.com PATCHWORKMCP_API_KEY - required API key PATCHWORKMCP_SERVER_SLUG - required server identifier
Note: The Rust MCP ecosystem is still maturing. This file provides the feedback payload, HTTP submission, and schema constants. Wire the tool into your MCP framework’s registration system as needed.
Structs§
- Feedback
Payload - Options
- Override environment variable defaults for PatchworkMCP connection.
Constants§
Functions§
- payload_
from_ args - Build a FeedbackPayload from a JSON value (as received from MCP call_tool). Missing fields get sensible defaults. Server slug is resolved from opts/env.
- send_
feedback - Send feedback to PatchworkMCP with retry logic.
- tool_
input_ schema - Returns the tool input schema as a serde_json::Value. Use this when registering the tool manually with your MCP framework.