This is an automated email from the ASF dual-hosted git repository.
sxnan pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/flink-agents.git
The following commit(s) were added to refs/heads/main by this push:
new 157c1ea2 [hotfix] Fix errors in mcp docs (#498)
157c1ea2 is described below
commit 157c1ea2d995c0378fa8edc0dc5fa7ae77c5d0af
Author: Xuannan <[email protected]>
AuthorDate: Wed Jan 28 12:11:09 2026 +0800
[hotfix] Fix errors in mcp docs (#498)
---
docs/content/docs/development/mcp.md | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/docs/content/docs/development/mcp.md
b/docs/content/docs/development/mcp.md
index 59dcd9a8..0d5cf9ad 100644
--- a/docs/content/docs/development/mcp.md
+++ b/docs/content/docs/development/mcp.md
@@ -78,7 +78,7 @@ MCP servers can be configured with authentication:
```python
@mcp_server
@staticmethod
-def authenticated_mcp_server() -> MCPServer:
+def authenticated_mcp_server() -> ResourceDescriptor:
"""Connect to MCP server with authentication."""
return ResourceDescriptor(clazz=ResourceName.MCP_SERVER,
endpoint="http://api.example.com/mcp",
@@ -95,7 +95,7 @@ def authenticated_mcp_server() -> MCPServer:
{{< tab "Java" >}}
```java
@MCPServer
-public static org.apache.flink.agents.integrations.mcp.MCPServer
authenticatedMcpServer() {
+public static ResourceDescriptor authenticatedMcpServer() {
// Using Bearer Token Authentication
return ResourceDescriptor.Builder.newBuilder(ResourceName.MCP_SERVER)
.addInitialArgument("endpoint",
"http://api.example.com/mcp")