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:| Area | Position | What it contains |
|---|---|---|
| Activity bar | Far left | Quick access icons for navigation |
| Configuration panel | Left | Tool settings: parameters, active status toggle |
| Code editor + Terminal | Center | The main editing area with an integrated output terminal below |
| AI Assistant | Right | AI Tool Builder prompt panel for code generation |
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
| Trigger | Suggestions |
|---|---|
sdk. | db, http, lodash |
sdk.db(). | select, insert, update, delete, query |
sdk.lodash. | get, set, map, filter, find, groupBy, orderBy, sortBy, uniq, uniqBy, flatten, flatMap, chunk, compact, difference, intersection, merge, pick, omit, sumBy, meanBy, countBy, keyBy, debounce, throttle, cloneDeep |
console.* completions
| Trigger | Suggestions |
|---|---|
console. | log, info, warn, error, debug |
. — 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
Default code template
When you create a new tool, the editor is pre-filled with a starter template that shows all available globals:Status bar
The status bar at the bottom of the editor displays:| Item | Description |
|---|---|
| Active status | Green indicator when the tool is active |
| Tool name | The current tool’s name |
| Language | Always JavaScript |
| Cursor position | Current line and column number (e.g. Ln 12, Col 34) |
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:- Type a natural-language description of what your tool should do
- A character counter (max 2000) helps you stay within limits
- Click Generate to produce the complete tool
- The generated code, parameters, and name are applied to the editor
Keyboard shortcuts
The editor supports standard Monaco/VS Code keyboard shortcuts:| Shortcut | Action |
|---|---|
Ctrl+S / Cmd+S | Save the tool |
Ctrl+Z / Cmd+Z | Undo |
Ctrl+Shift+Z / Cmd+Shift+Z | Redo |
Ctrl+D / Cmd+D | Select next occurrence |
Ctrl+/ / Cmd+/ | Toggle line comment |
Ctrl+Shift+K / Cmd+Shift+K | Delete line |
Alt+Up / Option+Up | Move line up |
Alt+Down / Option+Down | Move line down |
Ctrl+Space | Trigger suggestions |