Skip to main content

Crate patchworkmcp

Crate patchworkmcp 

Source
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§

FeedbackPayload
Options
Override environment variable defaults for PatchworkMCP connection.

Constants§

TOOL_DESCRIPTION
TOOL_NAME

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.