midnight-mcp:mcp-compile

Compile Compact contracts via MCP tools with hosted compiler services.

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

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

Compile Compact contracts using the hosted compiler service via MCP tools, enabling automated, scalable build and verification workflows.

Core Features & Use Cases

  • Hosted compilation of Single-file and multi-file Compact contracts with built-in snippet wrapping.
  • Multi-version testing across compiler versions to verify compatibility and regression safety.
  • OpenZeppelin linking and archive/contract workflows via hosted MCP tooling for streamlined deployments.

Quick Start

Submit a Compact contract to the MCP hosted compiler using midnight-compile-contract to validate syntax and generate artifacts.

Frequently Asked Questions about midnight-mcp:mcp-compile

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

FAQPage Schema
How do I compile Compact contracts using a hosted compiler service?

You can compile Compact contracts by submitting single-file or multi-file projects to the hosted MCP compiler, which validates syntax and returns generated artifacts, diagnostics, and references.

What is snippet wrapping when compiling Compact code?

Snippet wrapping is a built-in feature of the hosted Compact compiler that allows you to compile individual code snippets by automatically wrapping them, simplifying syntax validation and artifact generation.

Can I test Compact contracts across multiple compiler versions?

Yes, the hosted MCP tooling supports multi-version testing, allowing you to compile Compact contracts across different compiler versions to verify compatibility and ensure regression safety.

Does the Compact compiler support OpenZeppelin library linking?

Yes, the hosted Compact compiler supports OpenZeppelin linking and archive workflows via MCP tooling, streamlining contract dependencies and deployment preparation.

What artifacts do I get back after compiling Compact code?

Compiling Compact code via the MCP tools returns generated build artifacts, compilation diagnostics, and references, enabling automated verification workflows.