🔧Tool Prompts/mcp

MCP Tool

src/tools/MCPTool/prompt.ts

Prompt Engineering Insight

The MCP tool is unique in that it has no static prompt content — it's a dynamic passthrough that surfaces descriptions from connected MCP servers at runtime. The empty prompt/description pattern with runtime override is an architectural choice that allows a single tool definition to represent any number of external MCP tools. This is a form of context-injection where the prompt content is entirely determined by the external tool ecosystem.

Techniques Used

context-injectionscope-limiting
prompt
[Dynamic — MCP tool prompts and descriptions are populated at runtime from connected MCP server tool definitions. The MCPTool.ts file declares empty PROMPT and DESCRIPTION constants that are overridden in the MCP client layer. Each MCP server provides its own tool name, description, and input schema. The tool acts as a generic passthrough that adapts its identity to whichever MCP tool it represents.]

Tags

mcpmodel-context-protocoldynamicextensibilityexternal-tools

Appears in use cases

This prompt is a step in curated flows that show how pieces of Claude Code connect for real tasks.