Denaria Action Handoff MCP
Prepares unsigned App/PWA handoffs for creating positions in Denaria markets, returning QR codes for user review and signing in the Denaria app, without signing or executing transactions.
README
Denaria Action Handoff MCP
Denaria Action Handoff is the official Denaria MCP service for preparing unsigned App/PWA handoffs from agent requests.
It preserves this authority boundary:
Denaria Agent Service prepares.
Denaria App/PWA verifies.
The user signs.
External agents do not execute.
The service does not sign, submit, broadcast, execute transactions, custody funds, or run autonomous trading strategies.
Official Endpoint
MCP transport: Streamable HTTP
https://mcp.denaria.finance/mcp
Runtime public base URL for deployments:
DENARIA_PUBLIC_BASE_URL=https://mcp.denaria.finance
Use the origin without /mcp for DENARIA_PUBLIC_BASE_URL; the service uses it to generate QR page and image URLs such as:
https://mcp.denaria.finance/handoff/qr
https://mcp.denaria.finance/handoff/qr.png
Tools
denaria_get_capabilities
Read-only discovery tool. It returns supported markets, aliases, defaults, response contract, and the authority boundary.
denaria_prepare_create_position
Prepare-only tool for Denaria create-position handoffs.
Preferred arguments:
{
"marketId": "BTC-USD",
"side": "long",
"collateralAsset": "USDC",
"collateralAmount": "20",
"leverage": "4"
}
Supported aliases include BTC -> BTC-USD. Agents should prefer marketId: "BTC-USD" when calling the tool.
Do not send maxSlippageBps in normal create-position requests. Denaria App/PWA applies the user's slippage settings during scan/review.
Response Contract
Successful prepare responses expose QR-first display fields under result.clientDisplay:
result.clientDisplay.qrMarkdown
result.clientDisplay.qrPageUrl
result.clientDisplay.qrImageUrl
result.clientDisplay.nextStep
Agents should render the QR by default, include the QR page URL and direct image URL, and keep the final response compact.
The QR payload carries frontend-aligned intent parameters directly, so Denaria App/PWA can read the scanned action without an MCP fetch:
denaria://agent/handoff?assetTicker=BTC&side=long&collateralUSDC=20&leverage=4
The QR/handoff is not an approval. Denaria App/PWA verifies the handoff, refreshes app-side state/settings, prepares the signing flow, and the user signs in the app.
Agent Skill
The standalone behavior file is available in this repository at:
skills/denaria-action-handoff.md
The public landing copy is expected at:
https://denaria.finance/skills/denaria-action-handoff.md
The skill defines intent parsing, tool selection, response format, and safe refusals.
Local Development
Install dependencies:
pnpm install
Run local checks:
pnpm build
pnpm test
Run the HTTP MCP server locally:
DENARIA_MCP_PORT=8787 pnpm mcp:http
For production-like deployments, set DENARIA_PUBLIC_BASE_URL to the public origin that serves /handoff/qr and /handoff/qr.png.
Deployment
Dockerfile builds the service image. The container runs:
node dist/mcp/http-server.js
The service listens on port 8787 by default and exposes:
/mcp
/handoff/qr
/handoff/qr.png
Canonical Context
This README and the current MCP implementation are authoritative for the Action Handoff MCP surface.
Recommended Servers
playwright-mcp
A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.
Magic Component Platform (MCP)
An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.
Audiense Insights MCP Server
Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.
VeyraX MCP
Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.
graphlit-mcp-server
The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.
Kagi MCP Server
An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.
E2B
Using MCP to run code via e2b.
Neon Database
MCP server for interacting with Neon Management API and databases
Exa Search
A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.
Qdrant Server
This repository is an example of how to create a MCP server for Qdrant, a vector search engine.