Add isolated MCP auth-binding demo for Foundry-style tool calls#28
Draft
Copilot wants to merge 3 commits into
Draft
Add isolated MCP auth-binding demo for Foundry-style tool calls#28Copilot wants to merge 3 commits into
Copilot wants to merge 3 commits into
Conversation
Agent-Logs-Url: https://github.com/judacas/LLM-Automated-Inventory-Management/sessions/f5b70018-bc9f-4f79-a936-4abdc339cb4a Co-authored-by: judacas <67698498+judacas@users.noreply.github.com>
Agent-Logs-Url: https://github.com/judacas/LLM-Automated-Inventory-Management/sessions/f5b70018-bc9f-4f79-a936-4abdc339cb4a Co-authored-by: judacas <67698498+judacas@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Add isolated mock MCP server for demo application
Add isolated MCP auth-binding demo for Foundry-style tool calls
Apr 2, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
Adds a minimal, isolated demo proving the app can bind a trusted user identity to MCP client calls and have MCP enforce authorization server-side regardless of model behavior. This follows existing repo patterns for MCP transport and Foundry-style tool orchestration while avoiding production-path changes.
Type of Change
Related Issues
N/A
Changes Made
Isolated mock MCP server
src/mock_mcp_auth_demo/server.pyandsrc/mock_mcp_auth_demo/app.pyUSERS+PERMISSIONSget_my_data,get_sensitive_datax-demo-user) and denies unauthorized calls with clear errorsFoundry-style identity-bound demo flow
scripts/mock_mcp_foundry_identity_demo.pyalice@example.com/bob@example.com)Docs + tests for the demo
src/mock_mcp_auth_demo/README.mdwith run instructions, trust-boundary explanation, and dev tunnel public endpoint stepssrc/a2a_servers/tests/test_mock_mcp_auth_demo.pysrc/README.mdTesting
Checklist
Screenshots (if applicable)
N/A (no UI changes)
Additional Context
This change is intentionally isolated under
src/mock_mcp_auth_demoand does not alter existing production MCP/A2A flows.Warning
Firewall rules blocked me from connecting to one or more addresses (expand for details)
I tried to connect to the following addresses, but was blocked by firewall rules:
learn.microsoft.com/home/REDACTED/work/_temp/ghcca-node/node/bin/node /home/REDACTED/work/_temp/ghcca-node/node/bin/node --enable-source-maps /home/REDACTED/work/_temp/copilot-developer-action-main/dist/index.js(dns block)If you need me to access, download, or install something from one of these locations, you can either:
Original prompt