Azure / Azure/azure-functions-java-worker

Add MCP (Model Context Protocol) resource samples

Đang mở
#862 0 bình luận 0 reaction 1 người được giao Được @ahmedmuhsin nhận Xem trên GitHub
mcp-extension
Ngôn ngữ chính
Java
Star
103
Fork
74
Merge trung bình
4 ngày 8 giờ
Pull request đã merge (30 ngày)
2

Mô tả

## Request

The .NET Azure Functions library has MCP (Model Context Protocol) **resource** samples demonstrating how to build MCP resource templates and static resources with Azure Functions:
https://github.com/Azure-Samples/remote-mcp-functions-dotnet/tree/main/src/FunctionsMcpResources

### Resources included in the .NET sample

| Resource | URI | Description |
|---|---|---|
| `Snippet` | `snippet://{Name}` | Resource template that reads a code snippet by name from blob storage. Clients discover it via `resources/templates/list` and substitute the `Name` parameter. |
| `ServerInfo` | `info://server` | Static resource that returns server name, version, runtime, and timestamp. |

### Key concepts
- **Resource templates** have URI parameters (e.g., `{Name}`) that clients substitute at runtime — they're like parameterized endpoints.
- **Static resources** have fixed URIs and return the same structure every call.

**Ask:** It would be great to have equivalent MCP resource samples for the Java Azure Functions library, demonstrating how to implement MCP resource templates and static resources using Java annotations and blob storage bindings.

Hướng dẫn đóng góp

Mở hướng dẫn đóng góp

Đánh giá

Issue này chưa được đánh giá.

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.