Skip to main content
Glama
tmustier

Code Mode MCP

by tmustier

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault

No arguments

Capabilities

Features and capabilities supported by this server

CapabilityDetails
tools
{
  "listChanged": false
}
logging
{}

Tools

Functions exposed to the LLM to take actions

NameDescription
execA

Run JavaScript to discover and compose upstream MCP tools in one call.

The code is an async function body: use top-level await and return a final value. Global APIs:

  • search(query, options?): ranked tool discovery by name and description. Use a short keyword query; if no result, rephrase or remove a term. Options: { server?, limit? }. Start here, then describe one result.

  • describe(name): full metadata and JSON input/output schemas for one normalized or unambiguous raw tool name.

  • ALL_TOOLS: frozen complete { name, server, tool, title?, description } inventory for deterministic enumeration when search is insufficient.

  • ALL_SERVERS: connection status for configured upstream servers.

  • tools.(args) or call(name, args): invoke a tool. Names are normalized as mcp____ and returned by search or ALL_TOOLS.

  • text(value), image(dataUrlOrMcpImage, detail?), emit(contentBlock): select MCP output blocks.

  • store(key, value), load(key), clearStore(key?): explicit JSON-only in-memory session state.

  • signal: AbortSignal for this execution.

Nested calls can be looped, branched, or run with Promise.all. Return a complete MCP CallToolResult to preserve all its text, image, audio, resource, structured content, error, and metadata fields. Otherwise returned values become text/JSON; use image() or emit() to select rich blocks.

This is ordinary host-authority Node JavaScript, not a security sandbox. process, require(), dynamic import(), fetch(), filesystem, network, environment, and child-process APIs have the same authority as this MCP server. node:vm supplies execution context and synchronous timeout control only. Standard output is reserved for MCP; console output is captured and returned.

Prompts

Interactive templates invoked by user choice

NameDescription

No prompts

Resources

Contextual data attached and managed by the client

NameDescription

No resources

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/tmustier/code-mode-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server