Skip to content

Commit a1f9195

Browse files
committed
disable logging capability
1 parent 2513617 commit a1f9195

File tree

4 files changed

+29
-4
lines changed

4 files changed

+29
-4
lines changed

README.md

Lines changed: 22 additions & 1 deletion
Original file line numberDiff line numberDiff 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+
2628
Amap 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
```

build.gradle.kts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ application {
1414

1515

1616
group = "com.javaaidev"
17-
version = "0.6.0"
17+
version = "0.7.0"
1818

1919
val mcpVersion = "0.7.2"
2020
val slf4jVersion = "2.0.17"

src/main/kotlin/com/javaaidev/mcp/amap/Server.kt

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff 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

src/test/kotlin/com/javaaidev/mcp/amap/McpClientTest.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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(

0 commit comments

Comments
 (0)