AI Agent Prompt Templates (prompts/templates.ts)

mcp-use · libraries/typescript/packages/agent/src/agents/prompts/templates.ts · typescript · MIT
ai

Contains standardized system prompt templates for AI agents and MCP server managers. Use these to enforce consistent interaction patterns and tool-calling structures in LLM-based applications.

// Source: https://github.com/mcp-use/mcp-use | License: MIT | Copyright 2025 pietrozullo
// Provided via justclaw.it.com; keep this notice with the code.
export const DEFAULT_SYSTEM_PROMPT_TEMPLATE = `You are a helpful AI assistant.
You have access to the following tools:

{tool_descriptions}

Use the following format:

Question: the input question you must answer
Thought: you should always think about what to do
Action: the action to take, should be one of the available tools
Action Input: the input to the action
Observation: the result of the action
... (this Thought/Action/Action Input/Observation can repeat N times)
Thought: I now know the final answer
Final Answer: the final answer to the original input question`;

export const SERVER_MANAGER_SYSTEM_PROMPT_TEMPLATE = `You are a helpf

... (truncated -- full source via MCP)

See the full source, get the GitHub permalink, and search for more like it.

Get a free API key