Skip to content

Comments

Add McpWeatherApp sample, restructure repo with samples/ directory#10

Open
ahmedmuhsin wants to merge 5 commits intoAzure-Samples:mainfrom
ahmedmuhsin:feature/mcp-resource-and-metadata
Open

Add McpWeatherApp sample, restructure repo with samples/ directory#10
ahmedmuhsin wants to merge 5 commits intoAzure-Samples:mainfrom
ahmedmuhsin:feature/mcp-resource-and-metadata

Conversation

@ahmedmuhsin
Copy link
Contributor

@ahmedmuhsin ahmedmuhsin commented Feb 18, 2026

Summary

Restructures the repo and adds a McpWeatherApp sample demonstrating MCP Apps (resource triggers + metadata).

Repo Structure

  • samples/FunctionsMcpTool/ - Original MCP tools sample (say hello, save/get snippets), restored to main branch content (released library 3.2.2 + plugin 1.40.0)
  • samples/McpWeatherApp/ - New MCP Apps sample with weather tool + interactive UI resource (beta library 3.2.4 + plugin 1.41.0)
  • .vscode/mcp.json - Pre-configured local and remote MCP server entries
  • azure.yaml - Two AZD services: api (FunctionsMcpTool) and weather (McpWeatherApp)

McpWeatherApp Details

  • GetWeather tool with @McpMetadata declaring ui.resourceUri - makes it an MCP App
  • GetWeatherWidget resource via @McpResourceTrigger + @McpMetadata serving bundled HTML UI
  • Uses Open-Meteo APIs (no API key required) for geocoding + weather data
  • Vite + TypeScript frontend using @modelcontextprotocol/ext-apps SDK
  • Jackson for JSON serialization

READMEs

  • Root README updated: samples table, streamlined run/deploy instructions, troubleshooting
  • Per-sample READMEs added for FunctionsMcpTool and McpWeatherApp

Verified end-to-end

  • tools/list returns GetWeather with _meta.ui.resourceUri
  • resources/list returns Weather Widget with _meta.ui.prefersBorder
  • tools/call returns real weather data
  • resources/read serves bundled HTML widget
  • VS Code Copilot integration tested

Related PRs

- Move FunctionsMcpTool into samples/ directory, restore to main branch content
- Add McpWeatherApp sample (MCP Apps with weather tool + interactive UI resource)
- Add .vscode/mcp.json for local/remote MCP server configuration
- Update root README with samples table, streamlined run/deploy instructions
- Add per-sample READMEs (FunctionsMcpTool, McpWeatherApp)
- Update azure.yaml with both services (api, weather)
- Update .gitignore for Vite build output and JVM crash logs
@ahmedmuhsin ahmedmuhsin changed the title Add MCP resource trigger and metadata test functions Add McpWeatherApp sample, restructure repo with samples/ directory Feb 19, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant