Skip to content

Commit 6f5f579

Browse files
authored
fix(sampling): 3.1 remove state comment in index.ts (#13)
1 parent b42ad4f commit 6f5f579

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

exercises/03.sampling/01.problem.simple/src/index.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@ import { initializeTools } from './tools.ts'
77

88
export class EpicMeMCP {
99
db: DB
10-
// 🐨 add a state object with a loggingLevel property set to 'info'
1110
server = new McpServer(
1211
{
1312
name: 'epicme',

exercises/03.sampling/01.problem.simple/src/sampling.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,6 @@ export async function suggestTagsSampling(agent: EpicMeMCP, entryId: number) {
1212
//
1313
// 🐨 logging message to send the model response to the client
1414
// 📜 https://modelcontextprotocol.io/specification/2025-06-18/server/utilities/logging#log-message-notifications
15-
// 💰 agent.server.server.sendLoggingMessage (with level of 'info', logger of 'sampling', and data with the model response)
15+
// 💰 agent.server.server.sendLoggingMessage (with level of 'info', logger of 'tag-generator', and data with the model response)
1616
// 🦉 The SDK will make sure to only send messages if the logging level is 'debug' or 'info'
1717
}

0 commit comments

Comments
 (0)