You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit b1e1eb1
Browse filesBrowse the repository at this point in the historyBrowse files
Copy file name to clipboardExpand all lines: src/everything/docs/structure.md
+13-4Lines changed: 13 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -48,11 +48,14 @@ src/everything
48
48
│ ├── get-sum.ts
49
49
│ ├── get-tiny-image.ts
50
50
│ ├── gzip-file-as-resource.ts
51
+
│ ├── simulate-research-query.ts
51
52
│ ├── toggle-simulated-logging.ts
52
53
│ ├── toggle-subscriber-updates.ts
53
54
│ ├── trigger-elicitation-request.ts
55
+
│ ├── trigger-elicitation-request-async.ts
54
56
│ ├── trigger-long-running-operation.ts
55
-
│ └── trigger-sampling-request.ts
57
+
│ ├── trigger-sampling-request.ts
58
+
│ └── trigger-sampling-request-async.ts
56
59
└── transports
57
60
├── sse.ts
58
61
├── stdio.ts
@@ -129,7 +132,7 @@ src/everything
129
132
-`echo.ts`
130
133
- Registers an `echo` tool that takes a message and returns `Echo: {message}`.
131
134
-`get-annotated-message.ts`
132
-
- Registers an `annotated-message` tool which demonstrates annotated content items by emitting a primary `text` message with `annotations` that vary by `messageType` (`"error" | "success" | "debug"`), and optionally includes an annotated `image` (tiny PNG) when `includeImage` is true.
135
+
- Registers a `get-annotated-message` tool which demonstrates content-level annotations. Emits a primary `text` message with content `annotations`(`priority`, `audience`) that vary by `messageType` (`"error" | "success" | "debug"`), and optionally includes an annotated `image` (tiny PNG) when `includeImage` is true. All tools in this server include tool-level annotations (`readOnlyHint`, `destructiveHint`, `idempotentHint`, `openWorldHint`).
133
136
-`get-env.ts`
134
137
- Registers a `get-env` tool that returns the current process environment variables as formatted JSON text; useful for debugging configuration.
135
138
-`get-resource-links.ts`
@@ -147,18 +150,24 @@ src/everything
147
150
-`GZIP_MAX_FETCH_SIZE` (bytes, default 10 MiB)
148
151
-`GZIP_MAX_FETCH_TIME_MILLIS` (ms, default 30000)
149
152
-`GZIP_ALLOWED_DOMAINS` (comma-separated allowlist; empty means all domains allowed)
153
+
-`simulate-research-query.ts`
154
+
- Registers a `simulate-research-query` task-based tool that demonstrates the MCP Tasks feature (SEP-1686). Simulates a multi-stage research operation with progress updates. If the query is marked as ambiguous and the client supports elicitation, it pauses mid-execution to request clarification via `elicitation/create`. Uses `server.experimental.tasks.registerToolTask()` with `execution: { taskSupport: "required" }`.
150
155
-`trigger-elicitation-request.ts`
151
156
- Registers a `trigger-elicitation-request` tool that sends an `elicitation/create` request to the client/LLM and returns the elicitation result.
157
+
-`trigger-elicitation-request-async.ts`
158
+
- Registers a `trigger-elicitation-request-async` tool that demonstrates bidirectional MCP tasks for elicitation. Sends an elicitation request with task metadata, then polls the client's `tasks/get` endpoint for completion status before fetching the final result.
152
159
-`trigger-sampling-request.ts`
153
160
- Registers a `trigger-sampling-request` tool that sends a `sampling/createMessage` request to the client/LLM and returns the sampling result.
161
+
-`trigger-sampling-request-async.ts`
162
+
- Registers a `trigger-sampling-request-async` tool that demonstrates bidirectional MCP tasks for sampling. Sends a sampling request with task metadata, then polls the client's `tasks/get` endpoint for completion status before fetching the final result.
154
163
-`get-structured-content.ts`
155
164
- Registers a `get-structured-content` tool that demonstrates structuredContent block responses.
156
165
-`get-sum.ts`
157
-
- Registers an`get-sum` tool with a Zod input schema that sums two numbers `a` and `b` and returns the result.
166
+
- Registers a`get-sum` tool with a Zod input schema that sums two numbers `a` and `b` and returns the result.
158
167
-`get-tiny-image.ts`
159
168
- Registers a `get-tiny-image` tool, which returns a tiny PNG MCP logo as an `image` content item, along with surrounding descriptive `text` items.
160
169
-`trigger-long-running-operation.ts`
161
-
- Registers a `long-running-operation` tool that simulates a long-running task over a specified `duration` (seconds) and number of `steps`; emits `notifications/progress` updates when the client supplies a `progressToken`.
170
+
- Registers a `trigger-long-running-operation` tool that simulates a long-running task over a specified `duration` (seconds) and number of `steps`; emits `notifications/progress` updates when the client supplies a `progressToken`.
162
171
-`toggle-simulated-logging.ts`
163
172
- Registers a `toggle-simulated-logging` tool, which starts or stops simulated logging for the invoking session.
0 commit comments