Skip to content
This repository was archived by the owner on Apr 8, 2025. It is now read-only.

Commit 5ec0f72

Browse files
authored
Merge branch 'main' into main
2 parents 21ff2e7 + af2c937 commit 5ec0f72

File tree

2 files changed

+11
-16
lines changed

2 files changed

+11
-16
lines changed

examples.mdx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -122,5 +122,6 @@ To use an MCP server with Claude, add it to your configuration:
122122
- [MCP CLI](https://github.com/wong2/mcp-cli) - Command-line inspector for testing MCP servers
123123
- [MCP Get](https://mcp-get.com) - Tool for installing and managing MCP servers
124124
- [Supergateway](https://github.com/supercorp-ai/supergateway) - Run MCP stdio servers over SSE
125+
- [Zapier MCP](https://zapier.com/mcp) - MCP Server with over 7,000+ apps and 30,000+ actions
125126

126127
Visit our [GitHub Discussions](https://github.com/orgs/modelcontextprotocol/discussions) to engage with the MCP community.

quickstart/server.mdx

Lines changed: 10 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1273,16 +1273,12 @@ server.addTool(
12731273
Get weather alerts for a US state. Input is Two-letter US state code (e.g. CA, NY)
12741274
""".trimIndent(),
12751275
inputSchema = Tool.Input(
1276-
properties = JsonObject(
1277-
mapOf(
1278-
"state" to JsonObject(
1279-
mapOf(
1280-
"type" to JsonPrimitive("string"),
1281-
"description" to JsonPrimitive("Two-letter US state code (e.g. CA, NY)")
1282-
)
1283-
),
1284-
)
1285-
),
1276+
properties = buildJsonObject {
1277+
putJsonObject("state") {
1278+
put("type", "string")
1279+
put("description", "Two-letter US state code (e.g. CA, NY)")
1280+
}
1281+
},
12861282
required = listOf("state")
12871283
)
12881284
) { request ->
@@ -1305,12 +1301,10 @@ server.addTool(
13051301
Get weather forecast for a specific latitude/longitude
13061302
""".trimIndent(),
13071303
inputSchema = Tool.Input(
1308-
properties = JsonObject(
1309-
mapOf(
1310-
"latitude" to JsonObject(mapOf("type" to JsonPrimitive("number"))),
1311-
"longitude" to JsonObject(mapOf("type" to JsonPrimitive("number"))),
1312-
)
1313-
),
1304+
properties = buildJsonObject {
1305+
putJsonObject("latitude") { put("type", "number") }
1306+
putJsonObject("longitude") { put("type", "number") }
1307+
},
13141308
required = listOf("latitude", "longitude")
13151309
)
13161310
) { request ->

0 commit comments

Comments
 (0)