All MCP servers follow a basic configuration pattern:
import { Server } from "@modelcontextprotocol/sdk/server/index.js";
import { StdioServerTransport } from "@modelcontextprotocol/sdk/server/stdio.js";
const server = new Server({| /* | |
| Based on: | |
| 1. http://stephen.io/mediaqueries | |
| 2. https://css-tricks.com/snippets/css/media-queries-for-standard-devices/ | |
| */ | |
| /* iPhone X in portrait & landscape */ | |
| @media only screen | |
| and (min-device-width : 375px) | |
| and (max-device-width : 812px) |
| // By @coderitual | |
| // https://twitter.com/coderitual/status/1112297299307384833 | |
| // Remove any duplicates from an array of primitives. | |
| const unique = [...new Set(arr)] | |
| // Sleep in async functions. Use: await sleep(2000). | |
| const sleep = (ms) => (new Promise(resolve => setTimeout(resolve, ms))); | |
| // Type this in your code to break chrome debugger in that line. |
| first name | last name | age | |
|---|---|---|---|
| Stephen | Sugden | 31 | |
| Tom | Reznik | 29 | |
| Justin | Thomas | 30 |
| // SPDX-License-Identifier: MIT | |
| object "Multicall" { | |
| code { | |
| // Deploy the contract | |
| // Store gas token burn cost in zero slot | |
| sstore(0, 0) | |
| sstore(1, 0) | |
| sstore(2, 0) | |
| datacopy(0x0, dataoffset("MulticallRuntime"), datasize("MulticallRuntime")) |
All MCP servers follow a basic configuration pattern:
import { Server } from "@modelcontextprotocol/sdk/server/index.js";
import { StdioServerTransport } from "@modelcontextprotocol/sdk/server/stdio.js";
const server = new Server({All MCP servers follow a basic configuration pattern:
import { Server } from "@modelcontextprotocol/sdk/server/index.js";
import { StdioServerTransport } from "@modelcontextprotocol/sdk/server/stdio.js";
const server = new Server({Provides filesystem operations within allowed directories.
| Tool | Description | Required Parameters |
|---|---|---|
read_file |
Read complete file contents | path (string) |
read_multiple_files |
Read multiple files at once | paths (string[]) |
write_file |
Create/overwrite file | path (string), content (string) |
| Title: Senior Engineer Task Execution Rule | |
| Applies to: All Tasks | |
| Rule: | |
| You are a senior engineer with deep experience building production-grade AI agents, automations, and workflow systems. Every task you execute must follow this procedure without exception: | |
| 1.Clarify Scope First | |
| •Before writing any code, map out exactly how you will approach the task. | |
| •Confirm your interpretation of the objective. |