Skip to content

Commit 1dc8718

Browse files
Merge pull request modelcontextprotocol#82 from modelcontextprotocol/justin/fix-bugs
Fix minor docs bugs
2 parents 10a2dd0 + 959e73d commit 1dc8718

File tree

2 files changed

+8
-3
lines changed

2 files changed

+8
-3
lines changed

docs/concepts/tools.mdx

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,12 @@ Here's an example of implementing a basic tool in an MCP server:
7373
if (request.params.name === "calculate_sum") {
7474
const { a, b } = request.params.arguments;
7575
return {
76-
toolResult: a + b
76+
content: [
77+
{
78+
type: "text",
79+
text: String(a + b)
80+
}
81+
]
7782
};
7883
}
7984
throw new Error("Tool not found");

quickstart.mdx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -453,7 +453,7 @@ In this case, we'll add our single weather server like so:
453453
"command": "uv",
454454
"args": [
455455
"--directory",
456-
"C:\\ABSOLUTE\PATH\TO\PARENT\FOLDER\weather",
456+
"C:\\ABSOLUTE\\PATH\\TO\\PARENT\\FOLDER\\weather",
457457
"run",
458458
"weather"
459459
]
@@ -974,7 +974,7 @@ In this case, we'll add our single weather server like so:
974974
"weather": {
975975
"command": "node",
976976
"args": [
977-
"C:\\PATH\TO\PARENT\FOLDER\weather\build\index.js"
977+
"C:\\PATH\\TO\\PARENT\\FOLDER\\weather\\build\\index.js"
978978
]
979979
}
980980
}

0 commit comments

Comments
 (0)