About Codemesh
Codemesh is an MCP server published by kiliman in the Developer Tools category: the Self-Improving MCP Server - Agents write code to orchestrate multiple MCP servers with intelligent TypeScript execution and auto-augmentation. Conduid read 13 tools from its source: add-augmentation, collect-user-info, discover-tools, execute-code, generate-types, geocode and 7 more. It is published to npm as codemesh and starts with npx.
The repository has 26 stars and 4 forks, is licensed MIT, and its last commit was on 30 Nov 2026. The latest release is v0.2.5. It follows v0.2.4, and the 4 most recent releases go back to v0.2.0. It passes 4 of the 6 static checks Conduid ran on the repository; it does not pass Tests present and Scoped permissions. Its topics include multi-server, devtools, codemesh and orchestration.
Install
claude mcp add codemesh -- npx -y codemeshnpx -y codemeshgit clone https://github.com/kiliman/codemeshTools (13)
add-augmentationSave or update augmentation documentation for an MCP tool. Augmentations provide detailed output format descriptions, parsing examples, and field documentation that enhance the TypeScript APIs generated by get-tool-apis. The markdown will be saved to .codemesh/{serverId}.md and future get-tool-apis calls will include this documentation in the JSDoc.| Parameter | Type | Description |
|---|---|---|
| codemeshDir | string | Path to .codemesh directory (defaults to $PWD/.codemesh) |
| markdown * | string | Markdown content with sections: "# serverName.methodName", "## Output Format", "### Fields", "### Example Output", "### Parsing Example" (with TypeScript code block) |
| toolName * | string | Scoped tool name in serverName.methodName format (e.g., "filesystemServer.getFileInfo", "braveSearch.webSearch") |
collect-user-infoA tool that collects user information through elicitation| Parameter | Type | Description |
|---|---|---|
| infoType * | string | Type of information to collect |
discover-toolsCODEMESH STEP 1: Discover available tools from configured MCP servers. Use this first to see what tools are available before writing code. This is the preferred approach for complex tasks that require multiple tool calls or data processing across different MCP servers.| Parameter | Type | Description |
|---|---|---|
| serverId | string | Specific server ID to discover (discovers all if not specified) |
execute-codeCODEMESH STEP 3: Execute TypeScript code that can call multiple MCP tools and process their results.
<critical>
Tools are available as server objects with methods. Use serverName.methodName() format (e.g., await weatherServer.getForecast({ latitude: 36.5, longitude: -76.2 })). Do NOT use direct function calls or 'tools.' prefixes.
</critical>
<augmentation_instruction>
IMPORTANT: When exploring tool output, add a comment explaining what you're checking:
// EXPLORING: checking output format of filesystemServer.getFileInfo
const result = await filesystemServer.getFileInfo({path: 'test.txt'});
console.log(result);
This triggers augmentation guidance in the response.
</augmentation_instruction>
<augmentation_workflow>
If tool output is unclear/hard to parse, DO NOT trial-and-error different parsing approaches!
REQUIRED WORKFLOW:
1. Inspect raw output with console.log (include // EXPLORING comment)
2. When you see unclear output, STOP and create augmentation markdown:
# serverName.methodName
## Output Format
[Structure description]
### Fields
- field: type (description)
### Example Output
```
[actual output]
```
### Parsing Example
```typescript
[working parse code]
```
3. Call add-augmentation with toolName and markdown
4. Call get-tool-apis again to see enhanced JSDoc
5. NOW write your parsing code with better understanding
This is MANDATORY when struggling with output parsing!
</augmentation_workflow>| Parameter | Type | Description |
|---|---|---|
| code * | string | TypeScript code to execute |
| serverId | string | Specific server ID to use tools from (searches all if not specified) |
| toolNames | array | Array of tool names to make available (discovers all if not specified) |
generate-typesCODEMESH OPTIONAL: Generate complete TypeScript type definitions for all discovered MCP tools. Prefer get-tool-apis for context efficiency unless you need all types.| Parameter | Type | Description |
|---|---|---|
| outputDir | string | Directory to save generated types (defaults to ./generated) |
| serverId | string | Specific server ID to generate types for (generates for all if not specified) |
geocodeConvert a location name to latitude/longitude coordinates. Returns structured data with latitude, longitude, and formatted address information.| Parameter | Type | Description |
|---|---|---|
| location * | string | Location to geocode (e.g., 'Moyock, NC' or 'New York, NY') |
get-tool-apisCODEMESH STEP 2: Get TypeScript type definitions for specific tools you want to use in your code. This generates the server object interfaces you'll need. Use this after discover-tools to get only the APIs you need. IMPORTANT: Tools are available as server objects with methods, NOT as direct functions. Use the format: await serverName.methodName() (e.g., await weatherServer.getForecast(), await geocodeServer.geocode()). Do NOT use direct function calls like geocode() or get_forecast().| Parameter | Type | Description |
|---|---|---|
| codemeshDir | string | Path to .codemesh directory containing tool augmentation markdown files |
| serverId | string | Specific server ID to get tools from (searches all if not specified) |
| toolNames * | array | Array of scoped tool names from discover-tools output (e.g., ["weatherServer.getAlerts", "geocodeServer.geocode"]). Must use the serverName.toolName format. |
get_alertsGet weather alerts for a state. Returns JSON with features array containing alert objects. Each alert has properties: { event, severity, areaDesc, headline, description, instruction, effective, expires, ends }. Severity levels: Extreme, Severe, Moderate, Minor.| Parameter | Type | Description |
|---|---|---|
| state * | string | Two-letter state code (e.g. CA, NY) |
get_forecastGet weather forecast for a location. Returns JSON with properties.periods array containing forecast objects with name, temperature, temperatureUnit, windSpeed, windDirection, shortForecast, detailedForecast.| Parameter | Type | Description |
|---|---|---|
| latitude * | number | Latitude coordinate |
| longitude * | number | Longitude coordinate |
greetA simple greeting tool with customizable greeting| Parameter | Type | Description |
|---|---|---|
| greeting | string | Custom greeting (defaults to 'Hello') |
| name * | string | Name to greet |
list-filesReturns a list of files as ResourceLinks without embedding their content| Parameter | Type | Description |
|---|---|---|
| includeDescriptions | boolean | Whether to include descriptions in the resource links |
multi-greetA tool that sends different greetings with delays between them| Parameter | Type | Description |
|---|---|---|
| name * | string | Name to greet |
start-notification-streamStarts sending periodic notifications for testing resumability| Parameter | Type | Description |
|---|---|---|
| count | number | Number of notifications to send (0 for 100) |
| interval | number | Interval in milliseconds between notifications |
Security checks
Static checks derived from the repository 10 days ago. Heuristics on the source, not an audit.
- ✓README presentThe repository's README runs to about 1.4K words.
- ✓License declaredThe repository declares the MIT license.
- !Tests presentNo tests found. Behaviour changes may go unnoticed between versions.
- ✓Dependencies pinnedDependency versions are pinned by pnpm-lock.yaml and 2 more.
- ✓No dynamic code executionScanned 16 source files and found no eval, dynamic Function or shell execution.
- !Scoped permissionsDoesn't declare a permission scope. Assume it can do anything its process can.
What the source scan found
- Transport
- stdio and Streamable HTTPpackages/codemesh-server/src/index.ts:4, packages/example-server/index.ts:5
- Starts other programs
- 1 callpackages/weather-server/test-server.js:7
- Outbound network calls
- 5 callspackages/example-server/index.ts:493, packages/geocode-server/src/index.ts:16, packages/weather-server/src/index.ts:20
- Writes or deletes files
- 8 callspackages/codemesh-server/src/index.ts:406, packages/codemesh-server/src/index.ts:433, packages/codemesh-server/src/logger.ts:22
- Lockfile
- pnpm-lock.yaml and 2 more
Pattern matches on the source text of 16 files: places to read, not proof of what the code does at run time.
Releases
README
The repository's README runs to about 1.4K words, fetched a month ago. The original in the repository is authoritative.
Read full README