Skip to content

Commit 30a53cf

Browse files
committed
fix instructions
1 parent 7caa87f commit 30a53cf

File tree

2 files changed

+4
-7
lines changed
  • exercises

2 files changed

+4
-7
lines changed

exercises/02.tools/01.problem.simple/src/index.ts

+3-6
Original file line numberDiff line numberDiff line change
@@ -13,12 +13,9 @@ const server = new McpServer(
1313
)
1414

1515
// 🐨 add a tool to the server with the server.tool API
16-
// - it should be named 'add'
17-
// - it should have a description explaining what it can be used to do
18-
// - provide an input schema object with two properties which are validated with zod (give them descriptions as well):
19-
// - firstNumber: a number
20-
// - secondNumber: a number
21-
// - it should return a standard text response with the sum of the two numbers
16+
// - the name should be 'add'
17+
// - the description should explain what it can be used to do (add one and two)
18+
// - the callback should return a standard text response that says "one and two equals three"
2219

2320
async function main() {
2421
const transport = new StdioServerTransport()

exercises/03.advanced-tools/03.problem.class/README.mdx

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# Class
22

33
👨‍💼 Time to level up our architecture! Most real-world MCP servers are deployed
4-
remotely I recommend using Cloudflare's [agent](https://npm.im/agent) module
4+
remotely I recommend using Cloudflare's [agents](https://npm.im/agents) module
55
which exposes a `McpAgent` class that makes it easy to build a remote MCP
66
server.
77

0 commit comments

Comments
 (0)