From c52f1282fb813eacad08843c55eed7cc1e2c3526 Mon Sep 17 00:00:00 2001 From: Laurent AJDNIK <83899250+LaurentAjdnik@users.noreply.github.com> Date: Tue, 10 Dec 2024 08:26:18 +0100 Subject: [PATCH] Update architecture.mdx --- docs/concepts/architecture.mdx | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/docs/concepts/architecture.mdx b/docs/concepts/architecture.mdx index 5d85240..164628a 100644 --- a/docs/concepts/architecture.mdx +++ b/docs/concepts/architecture.mdx @@ -123,22 +123,14 @@ MCP has these main types of messages: } ``` -2. **Notifications** are one-way messages that don't expect a response: - ```typescript - interface Notification { - method: string; - params?: { ... }; - } - ``` - -3. **Results** are successful responses to requests: +2. **Results** are successful responses to requests: ```typescript interface Result { [key: string]: unknown; } ``` -4. **Errors** indicate that a request failed: +3. **Errors** indicate that a request failed: ```typescript interface Error { code: number; @@ -147,6 +139,14 @@ MCP has these main types of messages: } ``` +4. **Notifications** are one-way messages that don't expect a response: + ```typescript + interface Notification { + method: string; + params?: { ... }; + } + ``` + ## Connection lifecycle ### 1. Initialization