Skip to main content
Glama
xiaochenwin

Trae Rules Generator MCP

by xiaochenwin

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault
PYTHONPATHNoPython path for module import resolution.

Capabilities

Features and capabilities supported by this server

CapabilityDetails
tools
{
  "listChanged": false
}
prompts
{
  "listChanged": false
}
resources
{
  "subscribe": false,
  "listChanged": false
}
experimental
{}

Tools

Functions exposed to the LLM to take actions

NameDescription
read_existing_rulesB

读取现有的规则文件内容

Args: rules_path: 规则文件目录路径,默认为 .trae/rules

Returns: 现有规则文件的内容和结构信息

generate_project_rulesB

根据项目类型和功能特性生成新的项目规则文件

Args: project_type: 项目类型 (如: web, mobile, ai, backend, frontend 等) features: 项目功能特性列表 (如: ["authentication", "database", "api"]) language: 规则文件语言,默认为中文

Returns: 生成的规则文件内容

save_rules_fileB

保存规则文件到指定目录

Args: content: 规则文件内容 filename: 文件名,默认为 project_rules.md rules_path: 规则文件目录路径,默认为 .trae/rules

Returns: 保存操作的结果信息

update_existing_rulesA

更新现有的规则文件内容

Args: file_path: 要更新的规则文件路径 updates: 更新内容的字典,支持以下键: - append_content: 要追加的内容 - replace_section: 要替换的章节 {"section_name": "new_content"} - insert_after: 在指定内容后插入 {"after": "content", "insert": "new_content"}

Returns: 更新操作的结果信息

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/xiaochenwin/trae-rules-mcp'

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