File tree Expand file tree Collapse file tree 4 files changed +29
-4
lines changed
main/kotlin/com/javaaidev/mcp/amap
test/kotlin/com/javaaidev/mcp/amap Expand file tree Collapse file tree 4 files changed +29
-4
lines changed Original file line number Diff line number Diff line change @@ -23,9 +23,11 @@ Go to [releases](https://github.com/JavaAIDev/amap-mcp-server/releases) page and
2323- JAR file, requires Java 11 to run
2424- Native executable files on Windows, macOS and Linux.
2525
26+ Or use the [ container image] ( https://github.com/JavaAIDev/amap-mcp-server/pkgs/container/amap-mcp-server ) .
27+
2628Amap API key is required. This key must be set as the environment variable ` AMAP_API_KEY ` .
2729
28- Below is the config to start the server.
30+ Below is the config to start the server using ` java ` .
2931
3032``` json
3133{
@@ -42,4 +44,23 @@ Below is the config to start the server.
4244 }
4345 }
4446}
47+ ```
48+
49+ The config below starts the server using a container image.
50+
51+ ``` json
52+ {
53+ "mcpServers" : {
54+ "amap" : {
55+ "command" : " docker" ,
56+ "args" : [
57+ " run" ,
58+ " -i" ,
59+ " -e" ,
60+ " AMAP_API_KEY=YOUR_AMAP_API_KEY" ,
61+ " ghcr.io/javaaidev/amap-mcp-server:0.7.0"
62+ ]
63+ }
64+ }
65+ }
4566```
Original file line number Diff line number Diff line change @@ -14,7 +14,7 @@ application {
1414
1515
1616group = " com.javaaidev"
17- version = " 0.6 .0"
17+ version = " 0.7 .0"
1818
1919val mcpVersion = " 0.7.2"
2020val slf4jVersion = " 2.0.17"
Original file line number Diff line number Diff line change @@ -27,7 +27,11 @@ object McpServer {
2727 version = " 1.0.0"
2828 ),
2929 ServerOptions (
30- capabilities = ServerCapabilities (tools = ServerCapabilities .Tools (listChanged = true ))
30+ capabilities = ServerCapabilities (
31+ tools = ServerCapabilities .Tools (listChanged = true ),
32+ experimental = null ,
33+ logging = null ,
34+ )
3135 )
3236 )
3337
Original file line number Diff line number Diff line change @@ -24,7 +24,7 @@ class McpClientTest {
2424 try {
2525 withTimeout(1 .minutes) {
2626 val process =
27- ProcessBuilder (" java" , " -jar" , " build/libs/amap-mcp-server-0.6 .0-all.jar" )
27+ ProcessBuilder (" java" , " -jar" , " build/libs/amap-mcp-server-0.7 .0-all.jar" )
2828 .start()
2929
3030 val transport = StdioClientTransport (
You can’t perform that action at this time.
0 commit comments