[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M69AQF6YWHBCYCPE2YT4Y3ZA":3,"skill-same:01M69AQF6YWHBCYCPE2YT4Y3ZA":101},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":8,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":18,"categories":19,"keywords":30,"publishedAt":51,"linkOnly":52,"markdownContent":53,"markdownBody":54,"frontMatter":55,"refName":56,"commitSha":57,"skillDirectory":58,"forksCount":59,"repositoryHtmlUrl":60,"repositoryHomepageUrl":17,"ownerHtmlUrl":61,"ownerBlogUrl":62,"ownerDescription":63,"updatedAt":64,"install":65,"resources":78},"01M69AQF6YWHBCYCPE2YT4Y3ZA","dv-connect","Dataverse 连接配置","One-step setup and connection diagnostics for a Dataverse environment — installs tools, authenticates, registers MCP, writes `.env`, and verifies active profiles and linked ERP endpoints. Use when starting a new project, switching environments, fixing authentication, troubleshooting MCP, or checking existing Dataverse \u002F Finance and Operations connectivity or linkage.","Dataverse 环境的一步式设置与连接诊断——安装工具、进行身份验证、注册 MCP、写入 `.env` 文件，并验证活动配置文件和关联的 ERP 端点。在开始新项目、切换环境、修复身份验证、排查 MCP 问题，或检查现有 Dataverse \u002F Finance and Operations 连接或关联时使用。","microsoft\u002FDataverse-skills","microsoft","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F6154722?v=4","01M698VYDXZ6JW5WH3CRV650R8","Microsoft","01M69AQ9SHMSQ8KC4EKV8DZW2Y",258,"MIT",null,"https:\u002F\u002Fgithub.com\u002Fmicrosoft\u002FDataverse-skills\u002Fblob\u002Fmain\u002F.github\u002Fplugins\u002Fdataverse\u002Fskills\u002Fdv-connect\u002FSKILL.md",[20,25],{"categoryNo":21,"categoryName":22,"taxonomyType":23,"taxonomyTypeDesc":24},"01M8BQ6TQZN6R52WBJ9H8NRMQM","软件开发工程师","PROFESSION","适用职业",{"categoryNo":26,"categoryName":27,"taxonomyType":28,"taxonomyTypeDesc":29},"01M8BSTR9G4A4GZ0VB2DFN9490","开发环境与工具链管理","SCENARIO","使用场景",[31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50],"connect","dv connect","environments","endpoints","env","Existing","use","profiles","environment","for","erp","new project","Tools","active","switching","authentication","project","diagnostics","dataverse","MCP","2026-11-10 10:12:30",false,"---\nname: dv-connect\ndescription: One-step setup and connection diagnostics for a Dataverse environment — installs tools, authenticates, registers MCP, writes `.env`, and verifies active profiles and linked ERP endpoints. Use when starting a new project, switching environments, fixing authentication, troubleshooting MCP, or checking existing Dataverse \u002F Finance and Operations connectivity or linkage.\n---\n\n# Skill: Connect\n\nOne-step, idempotent Dataverse connection. Each step checks if it's already done and skips.\n\n> **Environment-First Rule** — All metadata and plugin registrations are created **in the environment** via API\u002Fscripts, then pulled into the repo. Never hand-write solution XML to create components.\n\n**Execute steps in order; do not skip ahead.** **Exception:** Step 0 can short-circuit the flow if the workspace is already set up.\n\n> **Host entry test (FIRST — before Step 0).** A **local Windows\u002FmacOS host is capable by default, whichever agent drives it** — it can run the CLIs, use persistent credentials, and host local MCP servers; an approval\u002Fsandbox gate isn't a constraint, and a **missing CLI = install it**. **Constrained only when** a runtime **can't start**, auth **can't persist**, or the host is explicitly **ChatGPT Work Mode \u002F Codex cloud \u002F CI \u002F no-keyring Linux** (deterministic table: [headless-hosts.md](references\u002Fheadless-hosts.md)). **Constrained →** install **only** Python + pip deps, `.env`, `scripts\u002Fauth.py`, verify `python scripts\u002Fauth.py --check`, **skip** CLI \u002F PAC \u002F MCP. **Capable →** normal flow below.\n\n---\n\n## Step 0: Detect existing setup (run this first)\n\nBefore touching anything, check whether this workspace is already connected to a Dataverse environment. Repeating setup on an already-configured workspace overwrites `.env`, re-registers MCP, and wastes time.\n\nGemini supports GA only. If Preview is requested, explain and stop before setup shortcuts.\n\nRun these checks in order. If **all four pass**, skip straight to Step 7 (final verification) and stop there.\n\n1. **`.env` is present and complete** — file exists at the workspace root and contains non-empty values for `DATAVERSE_URL`, `TENANT_ID`, and `MCP_CLIENT_ID`\n2. **MCP is registered** — the host MCP list has a `dataverse-*` entry, or Gemini has its bundled `dataverse` entry, pointing at `DATAVERSE_URL`\n3. **Both auth surfaces match `.env`** — `dataverse auth who` shows a profile whose `Environment Url` matches `DATAVERSE_URL`, AND `pac org who` against a PAC profile for the same URL succeeds. (DV CLI auth covers Connect \u002F Data \u002F Query \u002F Metadata \u002F MCP \u002F Python; PAC auth covers `dv-solution` and `dv-admin`. Both are front-loaded at connect time so neither prompts later.)\n4. **Python SDK is importable and current** — `python -c \"from PowerPlatform.Dataverse.client import DataverseClient; import pandas; from importlib.metadata import version; v=version('PowerPlatform-Dataverse-Client'); parts=tuple(int(p) for p in v.split('.')[:2]); assert parts>=(1,1), f'SDK {v} is outdated, need >=1.1.0'\"` exits 0\n\n**If all pass:** First ensure `.env` has valid attribution — set `DATAVERSE_PLUGIN_VERSION` to the loaded manifest `version` and add `DATAVERSE_PLUGIN_AGENT` (detected host, per Step 3) if absent or a stale `unknown`\u002Fplaceholder. Confirm the detected setup (URL, profile, MCP server), and jump to Step 7. Do not otherwise rewrite `.env`, re-register MCP, or re-run `pip install`.\n\n**If any check fails:** Proceed through the normal flow (Steps 1–7), but still use each step's own skip condition. A partially-configured workspace doesn't need a full redo — e.g., if only `.env` and MCP are missing but tools and auth are fine, start at Step 2 or Step 3.\n\n---\n\n## Step 1: Ensure tools are installed\n\nCheck each tool independently -- report all missing tools at once. See [tools-setup.md](references\u002Ftools-setup.md) for install commands.\n\n| Tool | Check |\n|---|---|\n| Python 3 | `python --version` |\n| Git | `git --version` |\n| Node.js | `node --version` |\n| PAC CLI | `pac` (prints version banner; `pac --version` is not valid) (see [tools-setup.md](references\u002Ftools-setup.md) if not in PATH) |\n| Dataverse CLI | `npm list -g @microsoft\u002Fdataverse` |\n| .NET SDK | `dotnet --version` |\n| Azure CLI | `az --version` |\n\n.NET SDK is needed for PAC CLI but NOT for the Dataverse CLI (the npm package bundles its own runtime). Node.js powers the Dataverse CLI npm package (`@microsoft\u002Fdataverse`), which is used as the MCP proxy and for scripted data plane actions. Azure CLI is used as a fallback for environment discovery when PAC CLI isn't available (see [mcp-configuration.md](references\u002Fmcp-configuration.md) Step 3b). GitHub CLI is not needed for connecting — it's used later for ALM\u002FCI\u002FCD scenarios (see `dv-solution`).\n\nIf any tool is missing, install it (see [tools-setup.md](references\u002Ftools-setup.md)), then verify. If `winget` installs a tool but it's not in PATH, ask the user to restart the terminal.\n\nAfter Python is confirmed, check if deps are already present before installing:\n```\npython -c \"from PowerPlatform.Dataverse.client import DataverseClient; import azure.identity, msal, msal_extensions, requests, pandas; print('OK')\"\n```\nIf it prints `OK`, skip pip. Otherwise:\n```\npip install --upgrade azure-identity requests PowerPlatform-Dataverse-Client pandas msal msal-extensions\n```\n\n`msal` + `msal-extensions` let `scripts\u002Fauth.py` reuse the `dataverse auth create` cache -- one sign-in for CLI, MCP, Python.\n\nAfter Node.js is confirmed, install the Dataverse CLI **only if missing** (do not re-run on every connect -- on managed devices each `@latest` fetch can trigger npm-registry security prompts; see [tools-setup.md](references\u002Ftools-setup.md)):\n```\nnpm install -g @microsoft\u002Fdataverse@latest\n```\n\n**Skip condition:** All tools present, Python SDK installed, and `pandas` importable (`python -c \"import pandas\"`).\n\n---\n\n## Step 2: Discover and select the environment\n\nBefore asking the user for a URL, check what's already available.\n\n> **Auth tool choice.** Two tools, two AAD apps, two caches — front-load both at connect:\n>\n> 1. **`dataverse auth create`** (app `0c412cc3-…`) covers DV CLI + MCP + Python.\n> 2. **`pac auth create`** (PAC's own app) covers `dv-solution` + `dv-admin`.\n\nCheck for an existing DV CLI profile first, then fall back to PAC for environment discovery if needed:\n\n```\ndataverse auth list\ndataverse auth who\npac auth list   # PAC profiles are still useful for env discovery \u002F pac org list\n```\n\n**If `dataverse auth who` shows a profile and its environment matches the user's target:**\n- Reuse it. Set `DATAVERSE_URL` and `TENANT_ID` from the profile.\n\n**If no DV CLI profile exists (or it points at the wrong environment):**\n- Ask: \"Do you want to connect to an existing environment or create a new one?\"\n\n**Before selecting, check for tenant\u002Fregion mismatch.** If the target URL uses a different region than the authenticated account's environments, create a new profile for the correct tenant rather than reuse the old one:\n\n```\ndataverse auth create --environment \u003Curl>          # interactive (WAM broker on Windows → no browser tab)\ndataverse auth create --environment \u003Curl> --deviceCode   # headless \u002F remote \u002F SSH\n```\n\nIf the user hits an admin-consent error, the CLI prints the correct scope-scoped consent URL to share with a tenant admin — do not synthesize one.\n\n**To switch between existing DV CLI profiles:**\n```\ndataverse auth select --name \u003Cprofile-name>\n```\n\n**To create a new environment** (requires admin permissions):\n```\npac admin create --name \"\u003Cname>\" --type \"\u003Ctype>\" --region \"\u003Cregion>\"\n```\nIf this fails with permissions error, guide the user to [Power Platform Admin Center](https:\u002F\u002Fadmin.powerplatform.microsoft.com\u002F) to create it, then connect.\n\n**Confirm connection:**\n```\ndataverse auth who\ndataverse org who --context \"app=dataverse-skills\u002F\u003Cver>;skill=dv-connect;agent=\u003Cagent>\"\n```\nParse the output to extract `DATAVERSE_URL`, `TENANT_ID`, and — on ERP-linked envs — `ERP_URL` (see [`erp-detection.md`](references\u002Ferp-detection.md)).\n\nIf neither command shows a tenant ID, fall back to:\n```bash\ncurl -sI https:\u002F\u002F\u003Corg>.crm.dynamics.com\u002Fapi\u002Fdata\u002Fv9.2\u002F \\\n  | grep -i \"WWW-Authenticate\" \\\n  | sed -n 's|.*login\\.microsoftonline\\.com\u002F\\([^\u002F]*\\).*|\\1|p'\n```\n\n### Step 2b: Front-load PAC CLI auth for the same environment\n\nPAC uses its own AAD app, so a separate sign-in is required for `dv-solution` and `dv-admin` — do it now.\n\n```\npac auth list                                       # skip if a profile for $DATAVERSE_URL exists\npac auth create --name \u003Corgid> --environment \u003CDATAVERSE_URL>\n```\n\nUse the same account as Step 2. If PAC CLI is not installed, skip with a note that `dv-solution` \u002F `dv-admin` will need it later.\n\n\n---\n\n## Step 3: Create .env\n\nPresent authentication options:\n\n> How would you like to authenticate with Dataverse?\n> 1. **Interactive login (recommended)** — Sign in via browser. No app registration needed. Token stays cached across sessions.\n> 2. **CI\u002FCD service principal** — Use `CLIENT_SECRET` or `CLIENT_CERTIFICATE_PATH`.\n\nWrite `.env` directly — do not instruct the user to create it:\n\nUse one detected `tool_type` to derive both `MCP_CLIENT_ID` and canonical attribution. Set `PLUGIN_VERSION` from the loaded manifest; Antigravity uses `.claude-plugin\u002Fplugin.json` because native `plugin.json` has none.\n\n```python\ntool_type = \"\u003Ccopilot | claude | cursor | codex | gemini | antigravity | unknown>\"\nplugin_version = \"\u003Cplugin manifest version, e.g. 1.5.0>\"\nmcp_client_id = \"aebc6443-996d-45c2-90f0-388ff96faa56\" if tool_type == \"copilot\" else \"0c412cc3-0dd6-449b-987f-05b053db9457\"\nagent_host = {\n    \"copilot\": \"copilot\", \"claude\": \"claude-code\", \"cursor\": \"cursor\",\n    \"codex\": \"codex\", \"gemini\": \"gemini-cli\",\n    \"antigravity\": \"antigravity-cli\",\n}.get(tool_type, \"unknown\")\nide = \"\u003Cjetbrains if a JetBrains install, else empty; see references\u002Fhelper-scripts.md>\"\nagent_host += f\"\u002F{ide}\" if ide else \"\"\n\nwith open(\".env\", \"w\") as f:\n    f.write(f\"DATAVERSE_URL={dataverse_url}\\n\")\n    f.write(f\"TENANT_ID={tenant_id}\\n\")\n    f.write(f\"MCP_CLIENT_ID={mcp_client_id}\\n\")\n    f.write(f\"DATAVERSE_PLUGIN_VERSION={plugin_version}\\n\")\n    f.write(f\"DATAVERSE_PLUGIN_AGENT={agent_host}\\n\")\n    f.write(f\"SOLUTION_NAME={solution_name}\\n\")\n    f.write(f\"PUBLISHER_PREFIX=\\n\")  # filled in when solution is created\n    f.write(f\"PAC_AUTH_PROFILE=nonprod\\n\")\n    if client_id:\n        f.write(f\"CLIENT_ID={client_id}\\n\")\n    if client_secret:\n        f.write(f\"CLIENT_SECRET={client_secret}\\n\")\n```\n\nEnsure `.env` is in `.gitignore`:\n\n```python\nimport os\n\nGITIGNORE_ENTRIES = [\n    \".env\", \".vscode\u002Fsettings.json\", \".claude\u002Fmcp_settings.json\",\n    \".token_cache.bin\", \".dataverse\u002F\", \"*.snk\", \"__pycache__\u002F\", \"*.pyc\",\n    \"solutions\u002F*.zip\", \"plugins\u002F**\u002Fbin\u002F\", \"plugins\u002F**\u002Fobj\u002F\",\n]\ngitignore = open(\".gitignore\").read() if os.path.exists(\".gitignore\") else \"\"\nmissing = [e for e in GITIGNORE_ENTRIES if e not in gitignore]\nif missing:\n    with open(\".gitignore\", \"a\") as f:\n        f.write(\"\\n\" + \"\\n\".join(missing) + \"\\n\")\n```\n\n**Skip condition:** `.env` already exists with all required values.\n\n---\n\n## Step 4: Set up project structure (new projects only)\n\nIf this is a new project (no `scripts\u002F` directory):\n\n```\nmkdir -p solutions plugins scripts\n```\n\nEnsure `scripts\u002Fauth.py` and `scripts\u002Fenable-mcp-client.py` exist -- see [`references\u002Fhelper-scripts.md`](references\u002Fhelper-scripts.md).\n\nCopy `templates\u002FCLAUDE.md` to the repo root if it doesn't exist. Replace placeholders (`{{DATAVERSE_URL}}`, `{{SOLUTION_NAME}}`, `{{PUBLISHER_PREFIX}}`) with values from `.env`.\n\n---\n\n## Step 5: Verify the connection\n\n```\ndataverse auth who\npac org who\npython scripts\u002Fauth.py --check\n```\n\n`--check` makes a **real data-plane call** (not just a token) — the only proof the org is actually reachable; a token can be minted while the org domain is blocked. All must resolve the same user\u002Fenvironment, proving the DV CLI cache, the PAC profile (Step 2b), and Python's reuse of the shared cache are wired.\n\n**If any fail:**\n- `dataverse auth who` fails → re-run Step 2.\n- `pac org who` fails → re-run Step 2b.\n- `python scripts\u002Fauth.py --check` prints a device-code URL → browser\u002FWAM cache has no Python-reusable token. **Auto-fix:** re-run `dataverse auth create --environment \u003Curl> --deviceCode`, then retry. If it *still* prompts, check `pip show msal msal-extensions`. **Headless hosts** (ChatGPT \u002F Codex cloud \u002F CI): `dataverse auth create` can't persist here — don't loop (see [headless-hosts.md](references\u002Fheadless-hosts.md)).\n- `python scripts\u002Fauth.py --check` prints `NOT REACHABLE` with a connection\u002Ftimeout error → the org domain is blocked by network egress, not auth. Do NOT report success or a count — see [headless-hosts.md](references\u002Fheadless-hosts.md) remediation.\n- Other Python error → check SDK install and `.env`.\n\nBefore metadata work, also confirm the account has the `prvCreateEntity` customization privilege — see [tools-setup.md](references\u002Ftools-setup.md#privilege-preflight).\n\n---\n\n## Step 6: Configure MCP server\n\n**Skip this step** only when the current host points to the selected environment:\n- Gemini: `gemini mcp list` resolves bundled server `dataverse` to the selected URL\n- Antigravity: `agy mcp list` contains the selected environment\n- Other hosts: their MCP list or config contains a Dataverse server for the selected URL\n\nIf MCP is not configured, follow [mcp-configuration.md](references\u002Fmcp-configuration.md):\n\n1. Detect which tool the user is running (Copilot, Claude, Cursor, Codex, Gemini, or Antigravity) from context\n2. Set `MCP_CLIENT_ID` based on tool choice\n3. Get environment URL from `.env`\n4. Default to GA endpoint (`\u002Fapi\u002Fmcp`)\n5. Register the MCP server per host (see the per-host blocks below)\n6. Handle Dataverse admin consent and allowlist — prefer `dataverse mcp allow \u003CMCP_CLIENT_ID>` over the portal (one-time per tenant\u002Fenvironment)\n7. If `ERP_URL` exists, separately allowlist and validate ERP\n\n**Plugin attribution for MCP:** This plugin uses the **stdio proxy** transport (`npx @microsoft\u002Fdataverse mcp \u003Curl>`). When registering it, include `DATAVERSE_OPERATION_CONTEXT` in the env block so the CLI appends it to its User-Agent on requests to `\u002Fapi\u002Fmcp`. Build the value from `.env`:\n\n```\nDATAVERSE_OPERATION_CONTEXT=app=dataverse-skills\u002F{DATAVERSE_PLUGIN_VERSION};skill=mcp-direct;agent={DATAVERSE_PLUGIN_AGENT}\n```\n\nFor Claude Code (`claude mcp add -t stdio`), pass it via `-e DATAVERSE_OPERATION_CONTEXT=...`. For JSON\u002FTOML hosts, add it to the server's environment block.\n\n**Important:** MCP configuration requires an editor\u002FCLI restart.\n\n**For Copilot:** Write the JSON config, then:\n> ✅ Dataverse MCP server configured. **Restart your editor** for changes to take effect.\n\n**For Claude:** Run the `claude mcp add` command, then warn the user about the auth popup that will appear on next launch:\n> ✅ Dataverse MCP server registered. Restart Claude Code to enable MCP tools.\n> Remember to **use `claude --continue` to resume the session** without losing context.\n>\n> On restart, a browser window may open to sign in to your Dataverse environment (the MCP proxy authenticating on your behalf). See [mcp-configuration.md](references\u002Fmcp-configuration.md) for details.\n\n**For Cursor:** Write the JSON config, then:\n> ✅ Dataverse MCP server `dataverse-{orgid}` configured in `~\u002F.cursor\u002Fmcp.json`. **Reload the Cursor window** (Ctrl+Shift+P → \"Developer: Reload Window\") for the new MCP server to appear under Settings → Tools & MCPs.\n>\n> On first use the `npx @microsoft\u002Fdataverse` proxy signs in via browser device code, then reuses the shared cache silently. See [mcp-configuration.md](references\u002Fmcp-configuration.md).\n\n**For Codex:** Write the TOML config to `~\u002F.codex\u002Fconfig.toml`. Codex loads MCP tools only at startup, so don't claim they're callable until the user restarts. Tell the user:\n> ✅ Dataverse MCP server `dataverse-{orgid}` configured in `~\u002F.codex\u002Fconfig.toml`. **Restart Codex** (CLI) or reload the Codex IDE to load the MCP tools.\n\n---\n\n## Step 7: Final verification\n\nAfter the editor\u002FCLI restarts, **both** of these must succeed before declaring the setup complete:\n\n**Check 1: the host's MCP list shows the Dataverse server connected**\n- Claude: `claude mcp list`\n- Gemini: `gemini extensions list`, then `gemini mcp list`\n- Antigravity: `agy mcp list`; after restart, `\u002Fmcp`\nThis proves the MCP server starts, but not that data operations work.\n\n**Check 2: Agent successfully lists tables via `describe`\u002F`search` and returns data**\n> \"List the tables in my Dataverse environment.\"\n\nThis proves end-to-end wiring: auth, tenant consent, environment allowlist, and endpoint reachability are all correct. If the agent falls back to PAC CLI or Web API, see [mcp-configuration.md](references\u002Fmcp-configuration.md) troubleshooting.\n\nOnly when **both** checks pass is the setup verified.\n\n**Interpreting failures:**\n\n- If Check 1 fails (server not ✓ Connected): the MCP server itself cannot start. Re-run Step 6 and check that `npx`\u002FNode.js are installed and the MCP registration succeeded.\n- If Check 1 passes but Check 2 fails (server starts but `describe`\u002F`search` errors): the server can speak MCP but cannot reach or read Dataverse. Run `--validate` below to diagnose.\n\n**Diagnostic — `--validate` (for failure investigation only):**\n```\nnpx @microsoft\u002Fdataverse mcp {DATAVERSE_URL} --validate\n```\nThis exercises two Dataverse MCP endpoints with a fresh authentication handshake and reports detailed errors (auth, allowlist, consent, endpoint reachability):\n\n- **GA \u002F Production endpoint** — `{DATAVERSE_URL}\u002Fapi\u002Fmcp`. This is the one the plugin actually uses at runtime.\n- **Preview endpoint** — `{DATAVERSE_URL}\u002Fapi\u002Fmcp_preview`. Opt-in per environment; not used by the plugin.\n\n**Do not use `--validate` as a success gate on first-time setup.** On a freshly configured workspace, the token cache hasn't warmed up, so `--validate` can fail with `MsalClientException` or `403` while MCP is actually working fine on subsequent real calls. Reserve `--validate` for diagnosing a confirmed failure in Check 1 or Check 2.\n\n**How to read `--validate` output:**\n\n- **Look at the GA \u002F Production endpoint (`\u002Fapi\u002Fmcp`) result first.** If this passes, MCP will work for normal plugin usage regardless of what the Preview endpoint reports.\n- **A `403 Forbidden` on the Preview endpoint (`\u002Fapi\u002Fmcp_preview`) is expected for most environments.** Preview is opt-in per environment; if your environment hasn't enabled it, the Preview check will always fail. This does not indicate a broken setup.\n- **Ignore the overall exit code and the `⚠ Partial success` warning in this case.** The validator returns exit code `1` (failure) unless BOTH `\u002Fapi\u002Fmcp` and `\u002Fapi\u002Fmcp_preview` pass. Because most environments don't enable the Preview endpoint, `--validate` will exit `1` even when MCP is fully functional via the GA endpoint. Focus on per-endpoint results, not the aggregate status.\n- **If the GA endpoint (`\u002Fapi\u002Fmcp`) fails:** that's the real signal to investigate — auth, tenant consent, environment allowlist, or endpoint reachability.\n\n### MCP Server Capabilities\n\nFor what MCP can and can't do (data CRUD + batch up to 25, table\u002Fcolumn creation incl. choice\u002Flookup, `search`\u002F`describe`, file upload\u002Fdownload) versus the SDK \u002F Web API, see the **overview** skill's Tool Capabilities matrix.\n\nAfter verifying MCP works, tell the user:\n\n> ✅ Connected to Dataverse at `{DATAVERSE_URL}`. Tools installed, authenticated, MCP live.\n>\n> You can now:\n> - Create tables, columns, and relationships (`dv-metadata`)\n> - Write and import data (`dv-data`)\n> - Query and analyze data (`dv-query`)\n> - Export and promote solutions (`dv-solution`)\n>\n> To create your first solution, see the `dv-solution` skill.\n> To load sample data (accounts, contacts, opportunities), ask: \"Load demo data into my Dataverse environment.\"\n\n---\n\n## Supported Agents\n\nThis plugin's skills are natively loaded by **GitHub Copilot CLI**, **Claude Code CLI**, **Gemini CLI**, and **Antigravity CLI** when installed as a plugin. No manual context loading is needed.\n\nThe PAC CLI commands, Python scripts, and XML templates work identically across hosts.\n","# Skill: Connect\n\nOne-step, idempotent Dataverse connection. Each step checks if it's already done and skips.\n\n> **Environment-First Rule** — All metadata and plugin registrations are created **in the environment** via API\u002Fscripts, then pulled into the repo. Never hand-write solution XML to create components.\n\n**Execute steps in order; do not skip ahead.** **Exception:** Step 0 can short-circuit the flow if the workspace is already set up.\n\n> **Host entry test (FIRST — before Step 0).** A **local Windows\u002FmacOS host is capable by default, whichever agent drives it** — it can run the CLIs, use persistent credentials, and host local MCP servers; an approval\u002Fsandbox gate isn't a constraint, and a **missing CLI = install it**. **Constrained only when** a runtime **can't start**, auth **can't persist**, or the host is explicitly **ChatGPT Work Mode \u002F Codex cloud \u002F CI \u002F no-keyring Linux** (deterministic table: [headless-hosts.md](references\u002Fheadless-hosts.md)). **Constrained →** install **only** Python + pip deps, `.env`, `scripts\u002Fauth.py`, verify `python scripts\u002Fauth.py --check`, **skip** CLI \u002F PAC \u002F MCP. **Capable →** normal flow below.\n\n---\n\n## Step 0: Detect existing setup (run this first)\n\nBefore touching anything, check whether this workspace is already connected to a Dataverse environment. Repeating setup on an already-configured workspace overwrites `.env`, re-registers MCP, and wastes time.\n\nGemini supports GA only. If Preview is requested, explain and stop before setup shortcuts.\n\nRun these checks in order. If **all four pass**, skip straight to Step 7 (final verification) and stop there.\n\n1. **`.env` is present and complete** — file exists at the workspace root and contains non-empty values for `DATAVERSE_URL`, `TENANT_ID`, and `MCP_CLIENT_ID`\n2. **MCP is registered** — the host MCP list has a `dataverse-*` entry, or Gemini has its bundled `dataverse` entry, pointing at `DATAVERSE_URL`\n3. **Both auth surfaces match `.env`** — `dataverse auth who` shows a profile whose `Environment Url` matches `DATAVERSE_URL`, AND `pac org who` against a PAC profile for the same URL succeeds. (DV CLI auth covers Connect \u002F Data \u002F Query \u002F Metadata \u002F MCP \u002F Python; PAC auth covers `dv-solution` and `dv-admin`. Both are front-loaded at connect time so neither prompts later.)\n4. **Python SDK is importable and current** — `python -c \"from PowerPlatform.Dataverse.client import DataverseClient; import pandas; from importlib.metadata import version; v=version('PowerPlatform-Dataverse-Client'); parts=tuple(int(p) for p in v.split('.')[:2]); assert parts>=(1,1), f'SDK {v} is outdated, need >=1.1.0'\"` exits 0\n\n**If all pass:** First ensure `.env` has valid attribution — set `DATAVERSE_PLUGIN_VERSION` to the loaded manifest `version` and add `DATAVERSE_PLUGIN_AGENT` (detected host, per Step 3) if absent or a stale `unknown`\u002Fplaceholder. Confirm the detected setup (URL, profile, MCP server), and jump to Step 7. Do not otherwise rewrite `.env`, re-register MCP, or re-run `pip install`.\n\n**If any check fails:** Proceed through the normal flow (Steps 1–7), but still use each step's own skip condition. A partially-configured workspace doesn't need a full redo — e.g., if only `.env` and MCP are missing but tools and auth are fine, start at Step 2 or Step 3.\n\n---\n\n## Step 1: Ensure tools are installed\n\nCheck each tool independently -- report all missing tools at once. See [tools-setup.md](references\u002Ftools-setup.md) for install commands.\n\n| Tool | Check |\n|---|---|\n| Python 3 | `python --version` |\n| Git | `git --version` |\n| Node.js | `node --version` |\n| PAC CLI | `pac` (prints version banner; `pac --version` is not valid) (see [tools-setup.md](references\u002Ftools-setup.md) if not in PATH) |\n| Dataverse CLI | `npm list -g @microsoft\u002Fdataverse` |\n| .NET SDK | `dotnet --version` |\n| Azure CLI | `az --version` |\n\n.NET SDK is needed for PAC CLI but NOT for the Dataverse CLI (the npm package bundles its own runtime). Node.js powers the Dataverse CLI npm package (`@microsoft\u002Fdataverse`), which is used as the MCP proxy and for scripted data plane actions. Azure CLI is used as a fallback for environment discovery when PAC CLI isn't available (see [mcp-configuration.md](references\u002Fmcp-configuration.md) Step 3b). GitHub CLI is not needed for connecting — it's used later for ALM\u002FCI\u002FCD scenarios (see `dv-solution`).\n\nIf any tool is missing, install it (see [tools-setup.md](references\u002Ftools-setup.md)), then verify. If `winget` installs a tool but it's not in PATH, ask the user to restart the terminal.\n\nAfter Python is confirmed, check if deps are already present before installing:\n```\npython -c \"from PowerPlatform.Dataverse.client import DataverseClient; import azure.identity, msal, msal_extensions, requests, pandas; print('OK')\"\n```\nIf it prints `OK`, skip pip. Otherwise:\n```\npip install --upgrade azure-identity requests PowerPlatform-Dataverse-Client pandas msal msal-extensions\n```\n\n`msal` + `msal-extensions` let `scripts\u002Fauth.py` reuse the `dataverse auth create` cache -- one sign-in for CLI, MCP, Python.\n\nAfter Node.js is confirmed, install the Dataverse CLI **only if missing** (do not re-run on every connect -- on managed devices each `@latest` fetch can trigger npm-registry security prompts; see [tools-setup.md](references\u002Ftools-setup.md)):\n```\nnpm install -g @microsoft\u002Fdataverse@latest\n```\n\n**Skip condition:** All tools present, Python SDK installed, and `pandas` importable (`python -c \"import pandas\"`).\n\n---\n\n## Step 2: Discover and select the environment\n\nBefore asking the user for a URL, check what's already available.\n\n> **Auth tool choice.** Two tools, two AAD apps, two caches — front-load both at connect:\n>\n> 1. **`dataverse auth create`** (app `0c412cc3-…`) covers DV CLI + MCP + Python.\n> 2. **`pac auth create`** (PAC's own app) covers `dv-solution` + `dv-admin`.\n\nCheck for an existing DV CLI profile first, then fall back to PAC for environment discovery if needed:\n\n```\ndataverse auth list\ndataverse auth who\npac auth list   # PAC profiles are still useful for env discovery \u002F pac org list\n```\n\n**If `dataverse auth who` shows a profile and its environment matches the user's target:**\n- Reuse it. Set `DATAVERSE_URL` and `TENANT_ID` from the profile.\n\n**If no DV CLI profile exists (or it points at the wrong environment):**\n- Ask: \"Do you want to connect to an existing environment or create a new one?\"\n\n**Before selecting, check for tenant\u002Fregion mismatch.** If the target URL uses a different region than the authenticated account's environments, create a new profile for the correct tenant rather than reuse the old one:\n\n```\ndataverse auth create --environment \u003Curl>          # interactive (WAM broker on Windows → no browser tab)\ndataverse auth create --environment \u003Curl> --deviceCode   # headless \u002F remote \u002F SSH\n```\n\nIf the user hits an admin-consent error, the CLI prints the correct scope-scoped consent URL to share with a tenant admin — do not synthesize one.\n\n**To switch between existing DV CLI profiles:**\n```\ndataverse auth select --name \u003Cprofile-name>\n```\n\n**To create a new environment** (requires admin permissions):\n```\npac admin create --name \"\u003Cname>\" --type \"\u003Ctype>\" --region \"\u003Cregion>\"\n```\nIf this fails with permissions error, guide the user to [Power Platform Admin Center](https:\u002F\u002Fadmin.powerplatform.microsoft.com\u002F) to create it, then connect.\n\n**Confirm connection:**\n```\ndataverse auth who\ndataverse org who --context \"app=dataverse-skills\u002F\u003Cver>;skill=dv-connect;agent=\u003Cagent>\"\n```\nParse the output to extract `DATAVERSE_URL`, `TENANT_ID`, and — on ERP-linked envs — `ERP_URL` (see [`erp-detection.md`](references\u002Ferp-detection.md)).\n\nIf neither command shows a tenant ID, fall back to:\n```bash\ncurl -sI https:\u002F\u002F\u003Corg>.crm.dynamics.com\u002Fapi\u002Fdata\u002Fv9.2\u002F \\\n  | grep -i \"WWW-Authenticate\" \\\n  | sed -n 's|.*login\\.microsoftonline\\.com\u002F\\([^\u002F]*\\).*|\\1|p'\n```\n\n### Step 2b: Front-load PAC CLI auth for the same environment\n\nPAC uses its own AAD app, so a separate sign-in is required for `dv-solution` and `dv-admin` — do it now.\n\n```\npac auth list                                       # skip if a profile for $DATAVERSE_URL exists\npac auth create --name \u003Corgid> --environment \u003CDATAVERSE_URL>\n```\n\nUse the same account as Step 2. If PAC CLI is not installed, skip with a note that `dv-solution` \u002F `dv-admin` will need it later.\n\n\n---\n\n## Step 3: Create .env\n\nPresent authentication options:\n\n> How would you like to authenticate with Dataverse?\n> 1. **Interactive login (recommended)** — Sign in via browser. No app registration needed. Token stays cached across sessions.\n> 2. **CI\u002FCD service principal** — Use `CLIENT_SECRET` or `CLIENT_CERTIFICATE_PATH`.\n\nWrite `.env` directly — do not instruct the user to create it:\n\nUse one detected `tool_type` to derive both `MCP_CLIENT_ID` and canonical attribution. Set `PLUGIN_VERSION` from the loaded manifest; Antigravity uses `.claude-plugin\u002Fplugin.json` because native `plugin.json` has none.\n\n```python\ntool_type = \"\u003Ccopilot | claude | cursor | codex | gemini | antigravity | unknown>\"\nplugin_version = \"\u003Cplugin manifest version, e.g. 1.5.0>\"\nmcp_client_id = \"aebc6443-996d-45c2-90f0-388ff96faa56\" if tool_type == \"copilot\" else \"0c412cc3-0dd6-449b-987f-05b053db9457\"\nagent_host = {\n    \"copilot\": \"copilot\", \"claude\": \"claude-code\", \"cursor\": \"cursor\",\n    \"codex\": \"codex\", \"gemini\": \"gemini-cli\",\n    \"antigravity\": \"antigravity-cli\",\n}.get(tool_type, \"unknown\")\nide = \"\u003Cjetbrains if a JetBrains install, else empty; see references\u002Fhelper-scripts.md>\"\nagent_host += f\"\u002F{ide}\" if ide else \"\"\n\nwith open(\".env\", \"w\") as f:\n    f.write(f\"DATAVERSE_URL={dataverse_url}\\n\")\n    f.write(f\"TENANT_ID={tenant_id}\\n\")\n    f.write(f\"MCP_CLIENT_ID={mcp_client_id}\\n\")\n    f.write(f\"DATAVERSE_PLUGIN_VERSION={plugin_version}\\n\")\n    f.write(f\"DATAVERSE_PLUGIN_AGENT={agent_host}\\n\")\n    f.write(f\"SOLUTION_NAME={solution_name}\\n\")\n    f.write(f\"PUBLISHER_PREFIX=\\n\")  # filled in when solution is created\n    f.write(f\"PAC_AUTH_PROFILE=nonprod\\n\")\n    if client_id:\n        f.write(f\"CLIENT_ID={client_id}\\n\")\n    if client_secret:\n        f.write(f\"CLIENT_SECRET={client_secret}\\n\")\n```\n\nEnsure `.env` is in `.gitignore`:\n\n```python\nimport os\n\nGITIGNORE_ENTRIES = [\n    \".env\", \".vscode\u002Fsettings.json\", \".claude\u002Fmcp_settings.json\",\n    \".token_cache.bin\", \".dataverse\u002F\", \"*.snk\", \"__pycache__\u002F\", \"*.pyc\",\n    \"solutions\u002F*.zip\", \"plugins\u002F**\u002Fbin\u002F\", \"plugins\u002F**\u002Fobj\u002F\",\n]\ngitignore = open(\".gitignore\").read() if os.path.exists(\".gitignore\") else \"\"\nmissing = [e for e in GITIGNORE_ENTRIES if e not in gitignore]\nif missing:\n    with open(\".gitignore\", \"a\") as f:\n        f.write(\"\\n\" + \"\\n\".join(missing) + \"\\n\")\n```\n\n**Skip condition:** `.env` already exists with all required values.\n\n---\n\n## Step 4: Set up project structure (new projects only)\n\nIf this is a new project (no `scripts\u002F` directory):\n\n```\nmkdir -p solutions plugins scripts\n```\n\nEnsure `scripts\u002Fauth.py` and `scripts\u002Fenable-mcp-client.py` exist -- see [`references\u002Fhelper-scripts.md`](references\u002Fhelper-scripts.md).\n\nCopy `templates\u002FCLAUDE.md` to the repo root if it doesn't exist. Replace placeholders (`{{DATAVERSE_URL}}`, `{{SOLUTION_NAME}}`, `{{PUBLISHER_PREFIX}}`) with values from `.env`.\n\n---\n\n## Step 5: Verify the connection\n\n```\ndataverse auth who\npac org who\npython scripts\u002Fauth.py --check\n```\n\n`--check` makes a **real data-plane call** (not just a token) — the only proof the org is actually reachable; a token can be minted while the org domain is blocked. All must resolve the same user\u002Fenvironment, proving the DV CLI cache, the PAC profile (Step 2b), and Python's reuse of the shared cache are wired.\n\n**If any fail:**\n- `dataverse auth who` fails → re-run Step 2.\n- `pac org who` fails → re-run Step 2b.\n- `python scripts\u002Fauth.py --check` prints a device-code URL → browser\u002FWAM cache has no Python-reusable token. **Auto-fix:** re-run `dataverse auth create --environment \u003Curl> --deviceCode`, then retry. If it *still* prompts, check `pip show msal msal-extensions`. **Headless hosts** (ChatGPT \u002F Codex cloud \u002F CI): `dataverse auth create` can't persist here — don't loop (see [headless-hosts.md](references\u002Fheadless-hosts.md)).\n- `python scripts\u002Fauth.py --check` prints `NOT REACHABLE` with a connection\u002Ftimeout error → the org domain is blocked by network egress, not auth. Do NOT report success or a count — see [headless-hosts.md](references\u002Fheadless-hosts.md) remediation.\n- Other Python error → check SDK install and `.env`.\n\nBefore metadata work, also confirm the account has the `prvCreateEntity` customization privilege — see [tools-setup.md](references\u002Ftools-setup.md#privilege-preflight).\n\n---\n\n## Step 6: Configure MCP server\n\n**Skip this step** only when the current host points to the selected environment:\n- Gemini: `gemini mcp list` resolves bundled server `dataverse` to the selected URL\n- Antigravity: `agy mcp list` contains the selected environment\n- Other hosts: their MCP list or config contains a Dataverse server for the selected URL\n\nIf MCP is not configured, follow [mcp-configuration.md](references\u002Fmcp-configuration.md):\n\n1. Detect which tool the user is running (Copilot, Claude, Cursor, Codex, Gemini, or Antigravity) from context\n2. Set `MCP_CLIENT_ID` based on tool choice\n3. Get environment URL from `.env`\n4. Default to GA endpoint (`\u002Fapi\u002Fmcp`)\n5. Register the MCP server per host (see the per-host blocks below)\n6. Handle Dataverse admin consent and allowlist — prefer `dataverse mcp allow \u003CMCP_CLIENT_ID>` over the portal (one-time per tenant\u002Fenvironment)\n7. If `ERP_URL` exists, separately allowlist and validate ERP\n\n**Plugin attribution for MCP:** This plugin uses the **stdio proxy** transport (`npx @microsoft\u002Fdataverse mcp \u003Curl>`). When registering it, include `DATAVERSE_OPERATION_CONTEXT` in the env block so the CLI appends it to its User-Agent on requests to `\u002Fapi\u002Fmcp`. Build the value from `.env`:\n\n```\nDATAVERSE_OPERATION_CONTEXT=app=dataverse-skills\u002F{DATAVERSE_PLUGIN_VERSION};skill=mcp-direct;agent={DATAVERSE_PLUGIN_AGENT}\n```\n\nFor Claude Code (`claude mcp add -t stdio`), pass it via `-e DATAVERSE_OPERATION_CONTEXT=...`. For JSON\u002FTOML hosts, add it to the server's environment block.\n\n**Important:** MCP configuration requires an editor\u002FCLI restart.\n\n**For Copilot:** Write the JSON config, then:\n> ✅ Dataverse MCP server configured. **Restart your editor** for changes to take effect.\n\n**For Claude:** Run the `claude mcp add` command, then warn the user about the auth popup that will appear on next launch:\n> ✅ Dataverse MCP server registered. Restart Claude Code to enable MCP tools.\n> Remember to **use `claude --continue` to resume the session** without losing context.\n>\n> On restart, a browser window may open to sign in to your Dataverse environment (the MCP proxy authenticating on your behalf). See [mcp-configuration.md](references\u002Fmcp-configuration.md) for details.\n\n**For Cursor:** Write the JSON config, then:\n> ✅ Dataverse MCP server `dataverse-{orgid}` configured in `~\u002F.cursor\u002Fmcp.json`. **Reload the Cursor window** (Ctrl+Shift+P → \"Developer: Reload Window\") for the new MCP server to appear under Settings → Tools & MCPs.\n>\n> On first use the `npx @microsoft\u002Fdataverse` proxy signs in via browser device code, then reuses the shared cache silently. See [mcp-configuration.md](references\u002Fmcp-configuration.md).\n\n**For Codex:** Write the TOML config to `~\u002F.codex\u002Fconfig.toml`. Codex loads MCP tools only at startup, so don't claim they're callable until the user restarts. Tell the user:\n> ✅ Dataverse MCP server `dataverse-{orgid}` configured in `~\u002F.codex\u002Fconfig.toml`. **Restart Codex** (CLI) or reload the Codex IDE to load the MCP tools.\n\n---\n\n## Step 7: Final verification\n\nAfter the editor\u002FCLI restarts, **both** of these must succeed before declaring the setup complete:\n\n**Check 1: the host's MCP list shows the Dataverse server connected**\n- Claude: `claude mcp list`\n- Gemini: `gemini extensions list`, then `gemini mcp list`\n- Antigravity: `agy mcp list`; after restart, `\u002Fmcp`\nThis proves the MCP server starts, but not that data operations work.\n\n**Check 2: Agent successfully lists tables via `describe`\u002F`search` and returns data**\n> \"List the tables in my Dataverse environment.\"\n\nThis proves end-to-end wiring: auth, tenant consent, environment allowlist, and endpoint reachability are all correct. If the agent falls back to PAC CLI or Web API, see [mcp-configuration.md](references\u002Fmcp-configuration.md) troubleshooting.\n\nOnly when **both** checks pass is the setup verified.\n\n**Interpreting failures:**\n\n- If Check 1 fails (server not ✓ Connected): the MCP server itself cannot start. Re-run Step 6 and check that `npx`\u002FNode.js are installed and the MCP registration succeeded.\n- If Check 1 passes but Check 2 fails (server starts but `describe`\u002F`search` errors): the server can speak MCP but cannot reach or read Dataverse. Run `--validate` below to diagnose.\n\n**Diagnostic — `--validate` (for failure investigation only):**\n```\nnpx @microsoft\u002Fdataverse mcp {DATAVERSE_URL} --validate\n```\nThis exercises two Dataverse MCP endpoints with a fresh authentication handshake and reports detailed errors (auth, allowlist, consent, endpoint reachability):\n\n- **GA \u002F Production endpoint** — `{DATAVERSE_URL}\u002Fapi\u002Fmcp`. This is the one the plugin actually uses at runtime.\n- **Preview endpoint** — `{DATAVERSE_URL}\u002Fapi\u002Fmcp_preview`. Opt-in per environment; not used by the plugin.\n\n**Do not use `--validate` as a success gate on first-time setup.** On a freshly configured workspace, the token cache hasn't warmed up, so `--validate` can fail with `MsalClientException` or `403` while MCP is actually working fine on subsequent real calls. Reserve `--validate` for diagnosing a confirmed failure in Check 1 or Check 2.\n\n**How to read `--validate` output:**\n\n- **Look at the GA \u002F Production endpoint (`\u002Fapi\u002Fmcp`) result first.** If this passes, MCP will work for normal plugin usage regardless of what the Preview endpoint reports.\n- **A `403 Forbidden` on the Preview endpoint (`\u002Fapi\u002Fmcp_preview`) is expected for most environments.** Preview is opt-in per environment; if your environment hasn't enabled it, the Preview check will always fail. This does not indicate a broken setup.\n- **Ignore the overall exit code and the `⚠ Partial success` warning in this case.** The validator returns exit code `1` (failure) unless BOTH `\u002Fapi\u002Fmcp` and `\u002Fapi\u002Fmcp_preview` pass. Because most environments don't enable the Preview endpoint, `--validate` will exit `1` even when MCP is fully functional via the GA endpoint. Focus on per-endpoint results, not the aggregate status.\n- **If the GA endpoint (`\u002Fapi\u002Fmcp`) fails:** that's the real signal to investigate — auth, tenant consent, environment allowlist, or endpoint reachability.\n\n### MCP Server Capabilities\n\nFor what MCP can and can't do (data CRUD + batch up to 25, table\u002Fcolumn creation incl. choice\u002Flookup, `search`\u002F`describe`, file upload\u002Fdownload) versus the SDK \u002F Web API, see the **overview** skill's Tool Capabilities matrix.\n\nAfter verifying MCP works, tell the user:\n\n> ✅ Connected to Dataverse at `{DATAVERSE_URL}`. Tools installed, authenticated, MCP live.\n>\n> You can now:\n> - Create tables, columns, and relationships (`dv-metadata`)\n> - Write and import data (`dv-data`)\n> - Query and analyze data (`dv-query`)\n> - Export and promote solutions (`dv-solution`)\n>\n> To create your first solution, see the `dv-solution` skill.\n> To load sample data (accounts, contacts, opportunities), ask: \"Load demo data into my Dataverse environment.\"\n\n---\n\n## Supported Agents\n\nThis plugin's skills are natively loaded by **GitHub Copilot CLI**, **Claude Code CLI**, **Gemini CLI**, and **Antigravity CLI** when installed as a plugin. No manual context loading is needed.\n\nThe PAC CLI commands, Python scripts, and XML templates work identically across hosts.\n",{"name":5,"description":7},"main","8d0b654c66df1ce91d3c6cf4b4c87dc193de1f06",".github\u002Fplugins\u002Fdataverse\u002Fskills\u002Fdv-connect",65,"https:\u002F\u002Fgithub.com\u002Fmicrosoft\u002FDataverse-skills","https:\u002F\u002Fgithub.com\u002Fmicrosoft","https:\u002F\u002Fopensource.microsoft.com","Open source projects and samples from Microsoft","2026-11-14 08:33:20",{"source":9,"skillName":5,"commands":66,"prompt":76,"zipAvailable":77},[67,70,73],{"tool":68,"command":69},"npx","npx skills add microsoft\u002FDataverse-skills --skill dv-connect",{"tool":71,"command":72},"bunx","bunx skills add microsoft\u002FDataverse-skills --skill dv-connect",{"tool":74,"command":75},"pnpm","pnpm dlx skills add microsoft\u002FDataverse-skills --skill dv-connect","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fmicrosoft\u002FDataverse-skills\u002Fblob\u002Fmain\u002F.github\u002Fplugins\u002Fdataverse\u002Fskills\u002Fdv-connect\u002FSKILL.md",true,[79,85,89,93,97],{"path":80,"resourceType":81,"resourceTypeDesc":82,"sizeBytes":83,"sourceHtmlUrl":84},"references\u002Ferp-detection.md","REFERENCE","参考文档",1581,"https:\u002F\u002Fgithub.com\u002Fmicrosoft\u002FDataverse-skills\u002Fblob\u002Fmain\u002F.github\u002Fplugins\u002Fdataverse\u002Fskills\u002Fdv-connect\u002Freferences\u002Ferp-detection.md",{"path":86,"resourceType":81,"resourceTypeDesc":82,"sizeBytes":87,"sourceHtmlUrl":88},"references\u002Fheadless-hosts.md",17272,"https:\u002F\u002Fgithub.com\u002Fmicrosoft\u002FDataverse-skills\u002Fblob\u002Fmain\u002F.github\u002Fplugins\u002Fdataverse\u002Fskills\u002Fdv-connect\u002Freferences\u002Fheadless-hosts.md",{"path":90,"resourceType":81,"resourceTypeDesc":82,"sizeBytes":91,"sourceHtmlUrl":92},"references\u002Fhelper-scripts.md",1778,"https:\u002F\u002Fgithub.com\u002Fmicrosoft\u002FDataverse-skills\u002Fblob\u002Fmain\u002F.github\u002Fplugins\u002Fdataverse\u002Fskills\u002Fdv-connect\u002Freferences\u002Fhelper-scripts.md",{"path":94,"resourceType":81,"resourceTypeDesc":82,"sizeBytes":95,"sourceHtmlUrl":96},"references\u002Fmcp-configuration.md",35226,"https:\u002F\u002Fgithub.com\u002Fmicrosoft\u002FDataverse-skills\u002Fblob\u002Fmain\u002F.github\u002Fplugins\u002Fdataverse\u002Fskills\u002Fdv-connect\u002Freferences\u002Fmcp-configuration.md",{"path":98,"resourceType":81,"resourceTypeDesc":82,"sizeBytes":99,"sourceHtmlUrl":100},"references\u002Ftools-setup.md",12468,"https:\u002F\u002Fgithub.com\u002Fmicrosoft\u002FDataverse-skills\u002Fblob\u002Fmain\u002F.github\u002Fplugins\u002Fdataverse\u002Fskills\u002Fdv-connect\u002Freferences\u002Ftools-setup.md",[102,124,154,171,188,220],{"skillNo":103,"name":104,"nameZh":17,"description":105,"descriptionZh":17,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":106,"categories":107,"keywords":108,"publishedAt":51},"01M6PJ8NCTZS7PZ5AVHXERS10A","erp-sql","Temporary Finance and Operations SQL access and bounded physical-table reads for unified development environments (UDEs) only, requiring the environment System administrator (sysAdmin) role. Use when the user explicitly requests direct ERP SQL access, a temporary SQL password, a sqlcmd connection, or a table read in an established ERP SQL workflow.","https:\u002F\u002Fgithub.com\u002Fmicrosoft\u002FDataverse-skills\u002Fblob\u002Fmain\u002F.github\u002Fplugins\u002Fdataverse\u002Fskills\u002Ferp-sql\u002FSKILL.md",[],[109,110,41,111,112,37,113,114,115,40,33,116,117,118,119,120,121,122,123,39],"erp sql","sql","system","sqlcmd","password","requests","operations","direct","read","workflow","access","only","table","development","bounded",{"skillNo":125,"name":126,"nameZh":127,"description":128,"descriptionZh":129,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":130,"categories":131,"keywords":136,"publishedAt":51},"01M69AR6XKM814KPH4PEEQE7R7","erp-xpp","X++ 代码开发与部署","X++ code development lifecycle for Finance and Operations — scaffold models, author classes, custom services\u002FAPIs, and data entities, install matching SDKs, compile deployable packages, deploy packages, synchronize databases, and verify deployed artifacts. Use when the user explicitly requests creating, building, compiling, packaging, deploying, DB-syncing, or verifying X++ customizations, or an end-to-end ERP code change.","面向 Finance and Operations 的 X++ 代码开发生命周期——搭建模型、编写类、自定义服务\u002FAPI 和数据实体，安装匹配的 SDK，编译可部署包、部署包、同步数据库，并验证已部署的工件。当用户明确要求创建、构建、编译、打包、部署 X++ 自定义项、同步数据库或进行验证，或进行端到端的 ERP 代码变更时使用。","https:\u002F\u002Fgithub.com\u002Fmicrosoft\u002FDataverse-skills\u002Fblob\u002Fmain\u002F.github\u002Fplugins\u002Fdataverse\u002Fskills\u002Ferp-xpp\u002FSKILL.md",[132,133],{"categoryNo":21,"categoryName":22,"taxonomyType":23,"taxonomyTypeDesc":24},{"categoryNo":134,"categoryName":135,"taxonomyType":28,"taxonomyTypeDesc":29},"01M8BT7QVANT4709358VEJK53E","代码实现",[137,138,41,139,140,141,142,143,144,145,146,147,148,149,150,151,152,40,122,153],"xpp","erp xpp","development lifecycle","install","packages","sdks","code","end","packaging","db","databases","data","change","custom","lifecycle","compile","compiling",{"skillNo":155,"name":156,"nameZh":157,"description":158,"descriptionZh":159,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":160,"categories":161,"keywords":166,"publishedAt":51},"01M69AR3MEKCYBD8FEKK80KJ5B","dv-solution","Dataverse 解决方案部署管理","Dataverse solution lifecycle — create, export, import, promote across environments, and validate deployments. Use when the user wants to package customizations, deploy to another environment, or move work between dev \u002F test \u002F prod.","Dataverse 解决方案生命周期——创建、导出、导入、跨环境提升以及验证部署。当用户想要打包自定义配置、部署到其他环境，或在开发\u002F测试\u002F生产环境之间迁移工作成果时使用。","https:\u002F\u002Fgithub.com\u002Fmicrosoft\u002FDataverse-skills\u002Fblob\u002Fmain\u002F.github\u002Fplugins\u002Fdataverse\u002Fskills\u002Fdv-solution\u002FSKILL.md",[162,163],{"categoryNo":21,"categoryName":22,"taxonomyType":23,"taxonomyTypeDesc":24},{"categoryNo":164,"categoryName":165,"taxonomyType":28,"taxonomyTypeDesc":29},"01M8BQNXPY1AV6BSR5VKHDMWRH","部署与发布管理",[167,168,169,170,49],"dv solution","test","deploy","validate",{"skillNo":172,"name":173,"nameZh":174,"description":175,"descriptionZh":176,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":177,"categories":178,"keywords":185,"publishedAt":51},"01M69AR0SGRQFYSFT071ZAS19V","dv-security","Dataverse 安全权限管理","Security-role assignment, user access, application users, business units, and admin self-elevation in Dataverse environments. Use when the user wants to give someone access, grant a role, become an admin, or add a service principal.","Dataverse 环境中的安全角色分配、用户访问、应用程序用户、业务单元以及管理员自我提权。当用户想要授予某人访问权限、授予角色、成为管理员或添加服务主体时使用。","https:\u002F\u002Fgithub.com\u002Fmicrosoft\u002FDataverse-skills\u002Fblob\u002Fmain\u002F.github\u002Fplugins\u002Fdataverse\u002Fskills\u002Fdv-security\u002FSKILL.md",[179,182],{"categoryNo":180,"categoryName":181,"taxonomyType":23,"taxonomyTypeDesc":24},"01M8BR4MYFKGCC4WCWVJ50KJ2C","安全工程师",{"categoryNo":183,"categoryName":184,"taxonomyType":28,"taxonomyTypeDesc":29},"01M8BTFDX7M21YT75733H52N36","身份与访问管理",[186,187,49],"security","dv security",{"skillNo":189,"name":190,"nameZh":191,"description":192,"descriptionZh":193,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":194,"categories":195,"keywords":202,"publishedAt":51},"01M69AQX9TXX472D6Q59RYSMXY","dv-query","Dataverse 数据查询分析","Bulk reads, multi-page iteration, and analytics over Dataverse data. Use when the user wants to read, list, filter, aggregate, group, join, or analyze records — including pandas DataFrame workflows and notebook exploration. Also covers ERP (Finance and Operations \u002F F&O) business-data reads and runtime entity, schema, or action discovery; load dv-overview first, then this skill.","对 Dataverse 数据进行批量读取、多页迭代和分析。当用户想要读取、列出、筛选、聚合、分组、联接或分析记录时使用——包括 pandas DataFrame 工作流和 notebook 探索。还涵盖 ERP（Finance and Operations \u002F F&O）业务数据读取，以及运行时实体、架构或操作发现；请先加载 dv-overview，再加载本技能。","https:\u002F\u002Fgithub.com\u002Fmicrosoft\u002FDataverse-skills\u002Fblob\u002Fmain\u002F.github\u002Fplugins\u002Fdataverse\u002Fskills\u002Fdv-query\u002FSKILL.md",[196,199],{"categoryNo":197,"categoryName":198,"taxonomyType":28,"taxonomyTypeDesc":29},"01M8BQGD4CMBM6B4PWSM1NXGT9","数据分析与报告",{"categoryNo":200,"categoryName":201,"taxonomyType":23,"taxonomyTypeDesc":24},"01M8BQGD5CX980XNXCJKQF70BY","数据分析师",[203,204,205,206,207,208,209,210,37,211,212,117,213,214,215,216,217,218,219,49],"query","dv query","analytics","workflows","list","pandas","bulk","user","records","discovery","dataframe","analyze","filter","join","notebook","iteration","exploration",{"skillNo":221,"name":222,"nameZh":223,"description":224,"descriptionZh":225,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":226,"categories":227,"keywords":232,"publishedAt":51},"01M69AQSP7EV1XGQAA69Y9MJ8Y","dv-overview","Dataverse\u002FPower Platform 总览","Foundational cross-cutting context for Dataverse \u002F Power Platform work — scope and the skill map, the tool-capability reference, the safety rules, and the safe change lifecycle. Use when the user mentions Dataverse, Dynamics 365, Power Platform, CRM, or ERP; load this first for orientation. Specialist skills self-route via their own frontmatter triggers. Finance and Operations \u002F F&O business-data requests also require this skill first, then dv-query for reads.","Dataverse \u002F Power Platform 工作的基础性跨领域上下文——包括范围与技能图谱、工具能力参考、安全规则以及安全变更生命周期。当用户提及 Dataverse、Dynamics 365、Power Platform、CRM 或 ERP 时使用；应首先加载此技能以进行定位。专家技能通过其自身的 frontmatter 触发器自行路由。财务与运营（Finance and Operations \u002F F&O）业务数据请求也需要先加载此技能，然后再使用 dv-query 进行读取。","https:\u002F\u002Fgithub.com\u002Fmicrosoft\u002FDataverse-skills\u002Fblob\u002Fmain\u002F.github\u002Fplugins\u002Fdataverse\u002Fskills\u002Fdv-overview\u002FSKILL.md",[228,229],{"categoryNo":21,"categoryName":22,"taxonomyType":23,"taxonomyTypeDesc":24},{"categoryNo":230,"categoryName":231,"taxonomyType":28,"taxonomyTypeDesc":29},"01M8BWKS60NTYJHFE9FQSXGDKS","低代码应用开发",[233,234,235,41,236,237,238,148,239,240,241,242,203,243,244,245,246,49,247,149],"dv overview","overview","route","capability","context","frontmatter","Safety","crm","work","self","map","skill map","scope","power","safe"]