Inspiration
Financial assistants need source-aware answers. A single venue response is insufficient evidence for a market-wide price, and a point-in-time snapshot cannot support a market-regime forecast. VELQIRIS demonstrates a fail-closed approach for an Alexa+ interaction concept.
What It Does
- Model Context Protocol tools: Exposes
get_market_truth_consensusandverify_risk_regimethrough an MCP 2025-11-25 JSON-RPC endpoint. - Indicative multi-venue snapshot: Queries Coinbase USD plus Binance and OKX USDT spot indications, requires at least two successful venues, calculates the median, and reports dispersion in basis points. The result is an indicative USD/USDT snapshot, not a tradeable quote.
- Fail-closed regime response: Returns
REGIME_VERIFICATION_REFUSED,regime: null, andconfidence: 0because a single snapshot cannot establish a market regime. - Browser-based Alexa+ interaction simulation: The public web client displays text-formatted interactions and executes
initialize,notifications/initialized,tools/list, andtools/callagainst the deployed endpoint. It is not connected to a consumer Alexa account and does not claim Amazon certification.
How We Built It
- Local transport:
http_mcp_server.jsprovides a stateful Streamable HTTP implementation with session validation and Origin checks. - Serverless transport:
netlify/functions/amazon-mcp.jsprovides a stateless Netlify endpoint withoutMcp-Session-Id. - Validation: Requests validate protocol headers, Origin, tool names, and required symbols before external venue calls. Notifications return HTTP 202 with an empty body.
- Consensus engine: Reports a median, source count, spread in basis points, per-venue values, and one observation timestamp for the completed request. It does not implement per-venue timestamps, staleness rejection, cryptographic attestations, or order execution.
Testing & Verification
- Deterministic suite: 23 local unit, negative, and integration tests pass with controlled venue responses (
npm test). - Internal verification: The project-owned verifier completes 40 internal assertions (
npm run verify:mcp); this is not an Amazon certification tool. - Optional live smoke test:
npm run test:livequeries currently available public venue endpoints and fails closed when fewer than two respond. - Open source: The submission repository is public under the MIT License.
Built With
- alexa
- crypto
- financial-ai
- javascript
- mcp
- netlify
- python