Spectra Pt Yield Trader
Workflow Summary
- •
validate_inputsvalidates chain, size, slippage, and safety caps. - •
scan_opportunitiesusesmcp-spectra.scan_opportunitiesfor capital-aware ranking. - •
select_candidatefilters by symbol, liquidity, maturity window, and impact constraints. - •
quote_tradeusesmcp-spectra.quote_tradefor executable PT pricing and min-out. - •
simulate_portfoliousesmcp-spectra.simulate_portfolio_after_tradeto preview deltas. - •
looping_checkoptionally usesmcp-spectra.get_looping_strategyfor PT+Morpho leverage context. - •
risk_guardenforces notional/slippage limits and blocks unsafe requests. - •
execution_handoffemits a structured execution intent for a separate signer/executor.
Key Constraint
The Spectra MCP server is read-only. This skill does not sign or broadcast on-chain transactions.
live_mode only controls whether the skill emits an execution handoff payload after passing risk gates.
Safety Rules
- •Default mode is dry-run (
live_mode=false). - •Handoff requires both:
- •
inputs.live_mode=true - •
execution.confirm_live_handoff=truein config
- •
- •Risk caps are enforced before handoff:
- •
policies.max_notional_usd - •
policies.max_slippage_bps
- •
- •If any guard fails, return a policy block instead of an execution intent.
Tooling
- •Primary connector:
mcp-spectrapublisher backed by the Spectra MCP server (npx spectra-mcp-server). - •Optional scheduling connector:
seren-cronfor periodic scans. - •Tool reference:
references/spectra-mcp-tools.md.
Quick Start
- •Copy
config.example.jsontoconfig.json. - •Run dry-run planning:
- •
python scripts/agent.py --config config.json
- •
- •Enable execution handoff only after review:
- •set
inputs.live_mode=true - •set
execution.confirm_live_handoff=true - •run
python scripts/agent.py --config config.json
- •set
Autonomous Scheduling with seren-cron
- •Start trigger server:
- •
python scripts/run_agent_server.py --config config.json --port 8080
- •
- •Create cron job:
- •
python scripts/setup_cron.py create --url http://localhost:8080/run --schedule "*/30 * * * *"
- •
- •Manage jobs:
- •
python scripts/setup_cron.py list - •
python scripts/setup_cron.py pause --job-id <job_id> - •
python scripts/setup_cron.py resume --job-id <job_id> - •
python scripts/setup_cron.py delete --job-id <job_id>
- •
Each scheduled run executes one full planning cycle:
- •scan opportunities
- •quote candidate PT trade
- •simulate post-trade portfolio
- •emit execution handoff only when enabled by config guards