1. Conduid
  2. Developer Tools
  3. Codemesh
MCP server · Developer Tools

Codemesh

The Self-Improving MCP Server - Agents write code to orchestrate multiple MCP servers with intelligent TypeScript execution and auto-augmentation

66Good

Scored 20 hours ago · breakdown

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 Code
claude mcp add codemesh -- npx -y codemesh
npx
npx -y codemesh
From source
git clone https://github.com/kiliman/codemesh

Tools (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.
ParameterTypeDescription
codemeshDirstringPath to .codemesh directory (defaults to $PWD/.codemesh)
markdown *stringMarkdown content with sections: "# serverName.methodName", "## Output Format", "### Fields", "### Example Output", "### Parsing Example" (with TypeScript code block)
toolName *stringScoped tool name in serverName.methodName format (e.g., "filesystemServer.getFileInfo", "braveSearch.webSearch")
collect-user-infoA tool that collects user information through elicitation
ParameterTypeDescription
infoType *stringType 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.
ParameterTypeDescription
serverIdstringSpecific 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>
ParameterTypeDescription
code *stringTypeScript code to execute
serverIdstringSpecific server ID to use tools from (searches all if not specified)
toolNamesarrayArray 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.
ParameterTypeDescription
outputDirstringDirectory to save generated types (defaults to ./generated)
serverIdstringSpecific 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.
ParameterTypeDescription
location *stringLocation 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().
ParameterTypeDescription
codemeshDirstringPath to .codemesh directory containing tool augmentation markdown files
serverIdstringSpecific server ID to get tools from (searches all if not specified)
toolNames *arrayArray 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.
ParameterTypeDescription
state *stringTwo-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.
ParameterTypeDescription
latitude *numberLatitude coordinate
longitude *numberLongitude coordinate
greetA simple greeting tool with customizable greeting
ParameterTypeDescription
greetingstringCustom greeting (defaults to 'Hello')
name *stringName to greet
list-filesReturns a list of files as ResourceLinks without embedding their content
ParameterTypeDescription
includeDescriptionsbooleanWhether to include descriptions in the resource links
multi-greetA tool that sends different greetings with delays between them
ParameterTypeDescription
name *stringName to greet
start-notification-streamStarts sending periodic notifications for testing resumability
ParameterTypeDescription
countnumberNumber of notifications to send (0 for 100)
intervalnumberInterval 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

v0.2.5v0.2.5
v0.2.4v0.2.4
v0.2.3v0.2.3
v0.2.0v0.2.0

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
Questions

About Codemesh

How do I install Codemesh?

In Claude Code, run claude mcp add codemesh -- npx -y codemesh. Other MCP clients take the command after "--" in their server configuration.

Is Codemesh safe to use with an AI agent?

Its trust score is 66 out of 100 (good). It passes 4 of the 6 static checks Conduid ran on the repository; it does not pass Tests present and Scoped permissions. Conduid's scan of 16 source files found that it serves MCP over stdio and Streamable HTTP, starts other programs (1 call), makes outbound network calls (5 calls) and writes or deletes files (8 calls). Its dependencies are pinned by pnpm-lock.yaml and 2 more. It has no ConduID identity yet, so agent calls to it are not receipted.

Is Codemesh still maintained?

Yes — the last commit was yesterday. The repository has 26 stars and 4 forks and 2 open issues.

What tools does Codemesh provide?

Conduid read 13 tools from the source: add-augmentation, collect-user-info, discover-tools, execute-code, generate-types, geocode, get-tool-apis, get_alerts and 5 more. 13 of them publish their parameters, listed under Tools above.

What license is Codemesh released under?

The repository declares the MIT license. That applies to the latest release, v0.2.5, as well.