azure-functions-connector-mcp
Skill22 starsChanged 13 days agoMITView on GitHub
Generate, register, and wire a Connector Namespace MCP server for an Azure Functions Hosted Skill using authoritative connector metadata. Use when selecting connector operations, preserving operation schemas and dynamic parameters, creating mcpserverconfigs, retrieving the generated MCP endpoint, or configuring mcp.json. Requires an existing authorized connector connection.
In this repository67 other files it gives its agents.
- AGENTS.mdAGENTS.md
- evals/azure-functions-update/fixtures/AGENTS.mdAGENTS.md
- starter/hosted-skills/agent-files/AGENTS.mdAGENTS.md
- templates/agents/AGENTS.mdAGENTS.md
- templates/starter/agent-files/hosted-skills/AGENTS.mdAGENTS.md
- tests/fixtures/starter/agent-files/AGENTS.mdAGENTS.md
- tests/fixtures/starter/agent-files-unknown/AGENTS.mdAGENTS.md
- starter/hosted-skills/agent-files/CLAUDE.mdCLAUDE.md
- templates/starter/agent-files/hosted-skills/CLAUDE.mdCLAUDE.md
- tests/fixtures/starter/agent-files/CLAUDE.mdCLAUDE.md
- tests/fixtures/starter/agent-files-unknown/CLAUDE.mdCLAUDE.md
- .github/copilot-instructions.mdCopilot instructions
- starter/hosted-skills/agent-files/copilot-instructions.mdCopilot instructions
- templates/starter/agent-files/hosted-skills/copilot-instructions.mdCopilot instructions
- tests/fixtures/starter/agent-files/copilot-instructions.mdCopilot instructions
- tests/fixtures/starter/agent-files-unknown/copilot-instructions.mdCopilot instructions
- azure-functions-best-practicesSkill
- azure-functions-commonSkill
- azure-functions-connector-createSkill
- azure-functions-connector-mcpSkill
- azure-functions-connector-validateSkill
- azure-functions-createSkill
- azure-functions-deploySkill
- azure-functions-diagnosticsSkill
- azure-functions-doctorSkill
- azure-functions-feedbackSkill
- azure-functions-health-statusSkill
- azure-functions-helpSkill
- azure-functions-hosted-skills-migrateSkill
- azure-functions-hosted-skillsSkill
- azure-functions-inventorySkill
- azure-functions-setupSkill
- azure-functions-updateSkill
- frdSkill
- azure-functions-best-practicesSkill
- azure-functions-commonSkill
- azure-functions-createSkill
- azure-functions-deploySkill
- azure-functions-diagnosticsSkill
- azure-functions-doctorSkill
- azure-functions-feedbackSkill
- azure-functions-health-statusSkill
- azure-functions-helpSkill
- azure-functions-inventorySkill
- azure-functions-setupSkill
- azure-functions-updateSkill
- azure-functions-connector-createSkill
- azure-functions-connector-validateSkill
- azure-functions-hosted-skills-migrateSkill
- azure-functions-hosted-skillsSkill
- azure-functions-best-practicesSkill
- azure-functions-commonSkill
- azure-functions-connector-createSkill
- azure-functions-connector-mcpSkill
- azure-functions-connector-validateSkill
- azure-functions-createSkill
- azure-functions-deploySkill
- azure-functions-diagnosticsSkill
- azure-functions-doctorSkill
- azure-functions-feedbackSkill
- The first 60 shown.
The file
Show its rules and text
We split this skill into the rules it gives an agent
16 rules. About 0 are common, 8 are distinctive, and 8 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈8
Distinctive · estimate
This author's own choices. Worth a look.
8
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 40
If these are missing, stop and hand off to azure-functions-connector-create.
- Very specific: line 44
Inspect current state: Read the application's infra/, app settings, src/mcp.json, agent definitions, and deployed MCP server configs.
- Very specific: line 50
Retrieve authoritative contracts: Start with apiOperations, then use an operation's inputsDefinition only when the supported …
- Very specific: line 57
Separate fixed and agent-provided inputs: Put environment- or deployment-owned values in userParameters.
- Distinctive: line 63
Register the complete configuration: Use a repository-owned bootstrap/post-provision step and the supported Connector Namespace API.
- Very specific: line 67
Retrieve the generated endpoint: Read mcpEndpointUrl from the registered configuration, persist it as an environment-scoped deployment …
- Very specific: line 70
Wire the Hosted Skill: Add a remote HTTP entry to src/mcp.json using https://apihub.azure.com/.default and the intended managed identity.
- Distinctive: line 84
Never expose a whole connector when the Hosted Skill needs only a few operations.
- Distinctive: line 85
Never rely on agent instructions to hide an operation that should not be callable.
- Very specific: line 86
Do not copy direct connection-runtime URLs or troubleshooting token audiences into mcp.json.
- Distinctive: line 87
Do not commit endpoint values tied to an environment when an app setting can hold them.
- Distinctive: line 88
Do not register a schema assembled from operation names alone.
- Distinctive: line 89
Do not enable a configuration until the validation skill confirms its deployed contract.
- Very specific: line 90
Do not run a deployment collector from this connector skill.
- Distinctive: line 98
every operation ID exists in current connector metadata,
- Distinctive: line 99
every operation schema was derived from authoritative metadata,
≈ “Common” is an estimate: at least 1 in 5 of the 408,460 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Publish Connector MCP Tools for Azure Functions Hosted Skills
Publish a least-privilege MCP tool contract from an existing Connector Namespace connection. Generate operation definitions from authoritative connector metadata rather than manually copying or simplifying request schemas.
Ownership
This skill owns:
- operation discovery and selection,
- authoritative input-schema retrieval,
- dynamic value and dynamic-schema resolution,
- generation and registration of the complete MCP server configuration,
- generated endpoint retrieval,
- Hosted Skill app-setting and
mcp.jsonwiring, - a handoff contract for release-gate validation.
It does not own connection creation or delegated consent; use
azure-functions-connector-create. It does not approve the connector for production use; use
azure-functions-connector-validate. Hosted Skill instructions and business behavior remain with
azure-functions-hosted-skills.
Preconditions
Require:
- an existing Connector Namespace connection,
- connection status
Connected, - an explicit access policy for the Function App identity,
- exact intended connector operation IDs or an approved capability description,
- approval for any write or irreversible operation under consideration.
If these are missing, stop and hand off to azure-functions-connector-create.
Workflow
- Inspect current state. Read the application's
infra/, app settings,src/mcp.json, agent definitions, and deployed MCP server configs. Identify all consumers before replacing a shared configuration. - Select the minimum operations. Query the connector operation catalog. Exclude triggers, notifications, unrelated writes, deprecated variants, and operations outside the approved capability.
- Retrieve authoritative contracts. Start with
apiOperations, then use an operation'sinputsDefinitiononly when the supported operation-details response returns it. Use exported connector Swagger/OpenAPI anddynamicInvokefor references, dynamic values, or context-dependent schemas. - Generate parameter schemas. Preserve nested objects, arrays, required fields, formats, enums, descriptions, defaults, and dynamic constraints. Do not flatten nested bodies or invent version suffixes.
- Separate fixed and agent-provided inputs. Put environment- or deployment-owned values in
userParameters; expose only values the Hosted Skill should decide inagentParameters. Opaque values belong inazdenvironment values or app settings, not source control. - Review the safety surface. Show the selected operations and which inputs remain under model control. Require user approval for unexpected writes, broad search/export operations, or permission expansion.
- Register the complete configuration. Use a repository-owned bootstrap/post-provision step and the supported Connector Namespace API. Replace the full operations configuration when it changes; do not rely on partial patches of nested operation schemas. Keep Bicep responsible for stable infrastructure and outputs, not generated connector operation schemas.
- Retrieve the generated endpoint. Read
mcpEndpointUrlfrom the registered configuration, persist it as an environment-scoped deployment value, and reconcile the Function App setting through the deployment source of truth. Redact the value from logs and reports. - Wire the Hosted Skill. Add a remote HTTP entry to
src/mcp.jsonusinghttps://apihub.azure.com/.defaultand the intended managed identity. Use a stable, descriptive server name. Restrict individual Hosted Skills through agent frontmatter when needed. - Produce a validation handoff. Record expected operation IDs, the exact deployed tool names
observed from
tools/list, full expected schemas or stable schema assertions, allowed side effects, and safe test inputs forazure-functions-connector-validate.
Load metadata-to-mcp.md for source precedence, schema-preservation rules, intent manifests, and the publication handoff.
Safety rules
- The MCP server config is the primary operation-level safety boundary.
- Never expose a whole connector when the Hosted Skill needs only a few operations.
- Never rely on agent instructions to hide an operation that should not be callable.
- Do not copy direct connection-runtime URLs or troubleshooting token audiences into
mcp.json. - Do not commit endpoint values tied to an environment when an app setting can hold them.
- Do not register a schema assembled from operation names alone.
- Do not enable a configuration until the validation skill confirms its deployed contract.
- Do not run a deployment collector from this connector skill. The
azure-functions-hosted-skillsskill owns the internalazure_deployment_observedevent after its supported deployment command succeeds. Do not duplicate that event.
Definition of done
MCP publication is complete only when:
- every operation ID exists in current connector metadata,
- every operation schema was derived from authoritative metadata,
- nested and dynamic input contracts are preserved,
- fixed and agent-controlled parameters are deliberately separated,
- the complete MCP configuration is registered,
- the generated endpoint is wired through app settings into
mcp.json, - the validation handoff defines the exact expected tool surface and safe smoke tests.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

