From c030ee35d945ca46b9914f3ce48e022eff9c3aef Mon Sep 17 00:00:00 2001 From: lanyuanxiaoyao Date: Tue, 26 May 2026 15:49:57 +0800 Subject: [PATCH] =?UTF-8?q?chore:=20=E6=B7=BB=E5=8A=A0=20pi=20=E9=85=8D?= =?UTF-8?q?=E7=BD=AE=E5=92=8C=20OpenSpec=20=E5=B7=A5=E4=BD=9C=E6=B5=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 添加 .pi/mcp.json 用于 MCP 服务器配置 - 添加 .pi/extensions/pi-permission-system 权限配置 - 更新 .gitignore 只追踪 .pi/mcp.json 和 .pi/extensions --- .gitignore | 3 +++ .pi/extensions/pi-permission-system/config.json | 16 ++++++++++++++++ .pi/mcp.json | 8 ++++++++ 3 files changed, 27 insertions(+) create mode 100644 .pi/extensions/pi-permission-system/config.json create mode 100644 .pi/mcp.json diff --git a/.gitignore b/.gitignore index 2a1e03c..77c4766 100644 --- a/.gitignore +++ b/.gitignore @@ -403,6 +403,9 @@ cython_debug/ !.claude/settings.json .opencode .codex +.pi/* +!.pi/mcp.json +!.pi/extensions openspec/changes/archive temp .agents diff --git a/.pi/extensions/pi-permission-system/config.json b/.pi/extensions/pi-permission-system/config.json new file mode 100644 index 0000000..aa93252 --- /dev/null +++ b/.pi/extensions/pi-permission-system/config.json @@ -0,0 +1,16 @@ +{ + "$schema": "https://raw.githubusercontent.com/gotgenes/pi-permission-system/main/schemas/permissions.schema.json", + "permission": { + "*": "allow", + "bash": { + "npm *": "deny", + "npx *": "deny", + "pnpm *": "deny", + "pnpx *": "deny" + }, + "external_directory": { + "*": "ask", + "/tmp/*": "allow" + } + } +} diff --git a/.pi/mcp.json b/.pi/mcp.json new file mode 100644 index 0000000..e48e11e --- /dev/null +++ b/.pi/mcp.json @@ -0,0 +1,8 @@ +{ + "mcpServers": { + "tdesign-mcp-server": { + "command": "bunx", + "args": ["tdesign-mcp-server@latest"] + } + } +}