midnight-mcp:mcp-simulate

Simulate Compact contract deployment, circuit execution, and ledger state locally.

37|9|Updated Feb 25, 2026
One-click install
npx skills add https://github.com/devrelaicom/midnight-expert --skill midnight-mcp-mcp-simulate
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: midnight-mcp:mcp-simulate
Source: https://github.com/devrelaicom/midnight-expert/tree/main/plugins/midnight-mcp/skills/mcp-simulate
Command: npx skills add https://github.com/devrelaicom/midnight-expert --skill midnight-mcp-mcp-simulate

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

Provides a real execution environment for deploying and testing Compact contracts without a live network, enabling safe, rapid iteration and debugging with deterministic results.

Core Features & Use Cases

  • Four core tools enabling real execution environments: midnight-simulate-deploy, midnight-simulate-call, midnight-simulate-state, and midnight-simulate-delete.
  • Session-based workflow that mirrors on-chain lifecycles: deploy → call → state → repeat → delete.
  • Intent-to-Reference Routing supports loading guidance from references/ when simulation issues arise, for error-recovery and best practices.

Quick Start

Deploy a contract with midnight-simulate-deploy, inspect circuits and initial state with midnight-simulate-state, run circuit calls with midnight-simulate-call, and clean up with midnight-simulate-delete.

Frequently Asked Questions about midnight-mcp:mcp-simulate

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I test Compact contracts locally without deploying to a live network?▼

Local Compact contract simulation allows you to deploy and execute circuits in a real environment without a live network, enabling safe, rapid iteration and deterministic debugging results.

What is the session lifecycle for simulating Compact contract execution?▼

The Compact contract simulation lifecycle mirrors on-chain workflows by following a deploy, call, state inspection, repeat, and delete sequence to manage testing sessions effectively.

How do I debug reference routing issues during local MCP simulations?▼

Debugging reference routing during local MCP simulations is supported by intent-to-reference routing, which loads guidance from loaded references to provide error recovery and best practices.

Can I inspect ledger state and circuit execution results during a local simulation?▼

Yes, local simulation provides dedicated tools to inspect circuits and initial ledger state, execute simulate-call operations, and verify state changes before cleaning up the session.

What's the best way to clean up Compact contract testing sessions after simulation?▼

Cleaning up Compact contract testing sessions requires using the simulate-delete lifecycle tool to safely remove deployed contracts and reset the local ledger state after testing.