Skip to main content

Overview

MCPCore’s code editor is a full-featured IDE built directly into the dashboard. It uses Monaco Editor — the same engine that powers VS Code — so you get a familiar, professional editing experience without leaving your browser.

Editor layout

The tool editor follows a VS Code-inspired layout with four main areas: The center area is resizable — drag the divider between the code editor and the terminal to adjust the split.

Editor features

Syntax highlighting

Full JavaScript syntax highlighting with support for:
  • Keywords, strings, numbers, and operators
  • Template literals (`https://api.example.com/${params.id}`)
  • Comments (single-line // and multi-line /* */)
  • Async/await and arrow functions

Dark theme

The editor uses the vs-dark theme by default — a dark background with high-contrast syntax colors optimised for long editing sessions.

Line numbers

Line numbers are displayed in the left gutter. The current cursor position (line and column) is shown in the status bar at the bottom of the editor.

Word wrap

Lines wrap automatically to fit the editor width — no horizontal scrolling needed for long lines.

Tab size

Indentation is set to 2 spaces per tab stop, matching common JavaScript conventions.

Auto layout

The editor automatically resizes when the browser window changes size. No manual adjustment needed.

AI-powered completions

The editor provides context-aware autocompletions for all MCPCore SDK functions. Type . after any SDK object to see available methods:

sdk.* completions

console.* completions

Completions trigger automatically when you type . — no keyboard shortcut needed.

Integrated terminal

Below the code editor, an integrated terminal shows execution output when you run your tool from the Run panel:

Output format

Each log entry includes:
  • Timestamp — when the log was produced (e.g. 12:03:41)
  • Log level — color-coded badge:
    • info — blue
    • warn — yellow
    • error — red
  • Message — the content you logged

Example output

The terminal shows the total execution time at the end. Use the Clear button to reset the terminal output between runs.

Default code template

When you create a new tool, the editor is pre-filled with a starter template that shows all available globals:
This template gives you a working starting point — modify or replace it entirely as needed.

Status bar

The status bar at the bottom of the editor displays:

Configuration panel

The left panel provides quick access to tool settings without leaving the editor:

Parameters

View and manage the tool’s input parameters. Each parameter shows its name, type, and whether it’s required. You can add, edit, or remove parameters directly from this panel.

Active toggle

Enable or disable the tool. Inactive tools are not exposed to AI clients.

AI Assistant panel

The right panel houses the AI Tool Builder:
  1. Type a natural-language description of what your tool should do
  2. A character counter (max 2000) helps you stay within limits
  3. Click Generate to produce the complete tool
  4. The generated code, parameters, and name are applied to the editor
Three example prompts are provided as quick-start suggestions to help you get started.

Keyboard shortcuts

The editor supports standard Monaco/VS Code keyboard shortcuts: