Skip to content

Commit ca9f633

Browse files
authored
Update README.md
1 parent 9ff7fbf commit ca9f633

File tree

1 file changed

+27
-0
lines changed

1 file changed

+27
-0
lines changed

README.md

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,33 @@ The iOS client as mentioned includes shared Compose Multiplatform UI code. It a
5050

5151
<img width="694" alt="Screenshot 2023-12-14 at 20 33 45" src="https://github.com/joreilly/ClimateTraceKMP/assets/6302/82ed364a-0284-4e5c-b81e-40fdfc58f312">
5252

53+
**MCP**
54+
55+
The `mcp-server` module uses the [Kotlin MCP SDK](https://github.com/modelcontextprotocol/kotlin-sdk) to expose an MCP tools endpoint (returning list of people in space) that
56+
can for example be plugged in to Claude Desktop as shown below. That module uses same KMP shared code.
57+
58+
<img width="1608" alt="Screenshot 2025-07-06 at 17 24 20" src="https://github.com/user-attachments/assets/7e4fd599-3ade-47b7-bbe3-a4f36148c170" />
59+
60+
61+
To integrate the MCP server with Claude Desktop for example you need to firstly run gradle `shadowJar` task and then select "Edit Config" under Developer Settings and add something
62+
like the following (update with your path)
63+
64+
```
65+
{
66+
"mcpServers": {
67+
"kotlin-peopleinspace": {
68+
"command": "java",
69+
"args": [
70+
"-jar",
71+
"/Users/john.oreilly/github/ClimateTraceKMP/mcp-server/build/libs/serverAll.jar",
72+
"--stdio"
73+
]
74+
}
75+
}
76+
}
77+
```
78+
79+
5380
## Full set of Kotlin Multiplatform/Compose/SwiftUI samples
5481

5582
* PeopleInSpace (https://github.com/joreilly/PeopleInSpace)

0 commit comments

Comments
 (0)