Skip to content

Commit 19348a6

Browse files
committed
docs: update mcp docs
1 parent 837f65b commit 19348a6

File tree

1 file changed

+35
-0
lines changed

1 file changed

+35
-0
lines changed

docs/mcp/develop-mcp.md

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
---
2+
layout: default
3+
title: Develop MCP Server
4+
nav_order: 3
5+
parent: MCP
6+
---
7+
8+
Resources
9+
10+
- [MCP For Server Developers](https://modelcontextprotocol.io/quickstart/server)
11+
12+
Since MVP Specification has different version, we recommend you keep same with AutoDev
13+
14+
- Kotlin SDK: io.modelcontextprotocol:kotlin-sdk:0.4.0
15+
- Java SDK: io.modelcontextprotocol.sdk:mcp:0.8.1
16+
17+
## Test
18+
19+
Start the server, and paste follow message:
20+
21+
```json
22+
{"id":4,"method":"initialize","params":{"protocolVersion":"2024-11-05","capabilities":{"experimental":{},"sampling":{}},"clientInfo":{"name":"weather","version":"1.0.0"},"_meta":{},"method":"initialize"},"jsonrpc":"2.0"}
23+
```
24+
25+
Success response example:
26+
27+
```json
28+
{"jsonrpc":"2.0","id":4,"result":{"protocolVersion":"2024-11-05","capabilities":{"logging":{},"tools":{"listChanged":true}},"serverInfo":{"name":"my-weather-server","version":"0.0.1"}}}
29+
```
30+
31+
Error response example:
32+
33+
```json
34+
{"jsonrpc":"2.0","id":4,"error":{"code":-32603,"message":"Unrecognized field \"_meta\" (class io.modelcontextprotocol.spec.McpSchema$InitializeRequest), not marked as ignorable (3 known properties: \"protocolVersion\", \"clientInfo\", \"capabilities\"])\n at [Source: UNKNOWN; byte offset: #UNKNOWN] (through reference chain: io.modelcontextprotocol.spec.McpSchema$InitializeRequest[\"_meta\"])"}}
35+
```

0 commit comments

Comments
 (0)