
taiki-yoshida/copilot-studio-code
Developer toolsこのページは AI により自動翻訳されています。技術的な詳細は原文をご確認ください。 原文を見る
ローカルMCPサーバーと、Microsoft Copilot Studio Agent Claude-Code-styleファイルとシェルツールを提供するインポート可能なCopilot Studioソリューション.
概要
ローカルファイルシステムとシェルに対するMicrosoft Copilot Studio Agent Claude-Code-styleツールを提供するローカルMCPサーバー - Copilot Studioテストキャンバスからコマンドを読み、編集、検索、および実行します。 インポート可能なCopilot Studioソリューションで、作業エージェントを数分でスタンドアップできます。 優先順位の順にモードを選択する方法: 1. 安全 env var (制限/中程度/開く) 2. --safety CLI フラグ 3. スタートアップ(10秒タイムアウト→適度な)でのインタラクティブなプロンプト write file, edit file, run shell の呼び出しは /.copilotstudio-mcp/audit.log に追加されます。 Copilot Studioはクラウドホストなので、ローカルホストには到達できません。 サーバを HTTPS 上で公開するために使用します。 devtunnel ホストは https:// -8787.usw2.devtunnels.ms のような公開 URL を印刷します。 実行中のままにしてください。 --allow-anonymous をドロップすると、Copilot Studio 側にある MS アカウントが必要です。 作業をしている時におすすめです。 2つの方法:事前ビルドされたソリューション(最速)をインポートするか、またはエージェントを手動で設定します.
概要(AI 翻訳)
ローカルファイルシステムとシェルに対するMicrosoft Copilot Studio Agent Claude-Code-styleツールを提供するローカルMCPサーバー - Copilot Studioテストキャンバスからコマンドを読み、編集、検索、および実行します。 インポート可能なCopilot Studioソリューションで、作業エージェントを数分でスタンドアップできます。
ツールの露出
| ツール | 目的 |
お問い合わせ
| [read_file | UTF-8 テキストファイルを読み込む |
| [write_file | ファイルの作成・上書き |
| [edit_file | 絶妙な一致の文字列の置換(unique-match必須、または[replace_all=true])。 お問い合わせ
| [list_dir | ディレクトリ内のリストエントリ お問い合わせ
| [glob | グラブパターンに合わせたファイルを探す |
| [[grep] | .git], [dist, [dist, [node_modules], [.git]], [dist]]], [dist]], [.git]]], [.git]]]]], [[[dist]]]]]]]], [[[[.git]]]]]]]]]、[[[[[[[[.git]]]]]]]]]]]]]]]]]、[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]] お問い合わせ
| [[[T10] | シェルコマンドを実行(Windows上でのPowerShell、その他のバッシュ) [[T11]モードで無効にしました。 |
安全モード(起動時に選択)
| モード | パス刑務所 | [[T12] |
お問い合わせ
| 【[T13] | 施行 | 不可 |
| [moderate(デフォルト) | 強制 | 強制的な | 強制的な監査 |
| [[T15] | オフ | 対応、監査 |
優先順位の順にモードを選択する方法:
- [
SAFETYenv var (strict]) / [moderate] / [open)
このページは AI により自動翻訳されています。技術的な詳細は原文をご確認ください。
README
以下は原文 README の抜粋です。原文を見る。
copilot-studio-code
A local MCP server that gives a Microsoft Copilot Studio agent Claude-Code-style tools against your local filesystem and shell — read, edit, search, and run commands from the Copilot Studio test canvas. Ships with an importable Copilot Studio solution so you can stand up a working agent in minutes.
Tools exposed
| Tool | Purpose |
|---|---|
read_file |
Read a UTF-8 text file. |
write_file |
Create or overwrite a file. |
edit_file |
Exact-match string replace (unique-match required, or replace_all=true). |
list_dir |
List entries in a directory. |
glob |
Find files matching a glob pattern. |
grep |
Regex search across files (skips node_modules, .git, dist). |
run_shell |
Execute a shell command (PowerShell on Windows, bash elsewhere). Disabled in strict mode. |
Safety modes (selected at startup)
| Mode | Path jail | run_shell |
|---|---|---|
strict |
enforced | disabled |
moderate (default) |
enforced | enabled, audit-logged |
open |
off | enabled, audit-logged |
How the mode is chosen, in order of precedence:
SAFETYenv var (strict/moderate/open)--safetyCLI flag- Interactive prompt at startup (10s timeout →
moderate)
All write_file, edit_file, and run_shell calls are appended to /.copilotstudio-mcp/audit.log.
Run it
npm install
npm start
The server prints something like:
copilot-studio-code MCP server
workspace root : E:\Dev\projects\my-project
safety mode : moderate
listening on : http://localhost:8787/mcp
health check : http://localhost:8787/healthz
Override the workspace it operates on:
$env:WORKSPACE_ROOT = "E:\Dev\some-other-project"; npm start
Wiring it into Copilot Studio
Copilot Studio is cloud-hosted, so it cannot reach localhost. Use Microsoft Dev Tunnels to expose the server over HTTPS.
1. Install and log in to dev tunnels
winget install Microsoft.devtunnel
devtunnel user login
2. Create a persistent tunnel for port 8787
devtunnel create copilotstudio-mcp --allow-anonymous
devtunnel port create copilotstudio-mcp -p 8787 --protocol http
devtunnel host copilotstudio-mcp
devtunnel host prints a public URL like https://-8787.usw2.devtunnels.ms. Leave it running.
Drop
--allow-anonymousand the tunnel will require an MS account on the Copilot Studio side. Recommended once you have it working.
3. Wire the MCP server into a Copilot Studio agent
Two ways: import the prebuilt solution (fastest), or configure an agent manually.
Path A — Import the prebuilt solution
インストール
This server does not publish a one-line install command.
Open the repository installation guide MCP 初心者?mcpskill.org のガイドから始めましょう →