Skip to content

(docs): Link lifecycle page to architecture guide#2467

Merged
cliffhall merged 2 commits into
mainfrom
den/fix-106-lifecycle-guide-link
Mar 26, 2026
Merged

(docs): Link lifecycle page to architecture guide#2467
cliffhall merged 2 commits into
mainfrom
den/fix-106-lifecycle-guide-link

Conversation

@localden

Copy link
Copy Markdown
Contributor

Fixes #106.

Problem

The lifecycle spec page shows the sequence diagram and JSON-RPC wire format but offers no pointer to SDK-level examples. Readers starting from the spec have to find the code mapping on their own.

Changes

Added an <Info> callout immediately after the lifecycle sequence diagram, linking to the Architecture guide's example section. That section already walks through the initialization handshake with JSON-RPC messages alongside pseudo-code showing session.initialize() and capability checking.

The guide already links to the spec (/specification/latest/basic/lifecycle); this adds the reverse link.

Context

This issue was filed in December 2024, before the docs redesign (#1044) added architecture.mdx. That redesign largely addressed the underlying complaint by providing the lifecycle-to-code mapping. The remaining gap was discoverability from the spec side, which this closes.

Applied to draft only.

The lifecycle spec page shows the sequence diagram and JSON-RPC wire
format but does not point readers to SDK-level examples. Added an Info
callout after the diagram linking to the Architecture guide, which
already walks through the initialization sequence with pseudo-code.

The guide already links to the spec; this adds the reverse link so
readers starting from the spec can find the code-level view.

Applied to draft only.

Fixes #106

🏠 Remote-Dev: homespace
@localden localden requested a review from a team as a code owner March 25, 2026 20:31
@mintlify

mintlify Bot commented Mar 25, 2026

Copy link
Copy Markdown

Preview deployment for your docs. Learn more about Mintlify Previews.

Project Status Preview Updated (UTC)
mcp-staging 🟢 Ready View Preview Mar 25, 2026, 8:32 PM

@localden localden changed the title spec: link lifecycle page to architecture guide (docs): Link lifecycle page to architecture guide Mar 25, 2026
@localden localden added documentation Improvements or additions to documentation enhancement New feature or request labels Mar 25, 2026

@jonathanhefner jonathanhefner left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The lifecycle being discussed on this page is:

  1. Initialization: Capability negotiation and protocol version agreement
  2. Operation: Normal protocol communication
  3. Shutdown: Graceful termination of the connection

with most of the focus on Initialization and Shutdown. In comparison, the linked example is:

  1. Initialization (Lifecycle Management)
  2. Tool Discovery (Primitives)
  3. Tool Execution (Primitives)
  4. Real-time Updates (Notifications)

So, some overlap but a bit different. Also, there is a little bit pseudo-code, but I wouldn't say that "map[s]" to SDK code".

I thinking mapping to SDK code is challenging because: (1) which SDK?, and (2) ideally, the SDK abstracts most lifecycle operations away from the user.

To be honest, I'm not clear on the goal of #106, so it's hard to make recommendation beyond what the documentation already provides (which has significantly changed since December 2024).

@dsp-ant

dsp-ant commented Mar 26, 2026

Copy link
Copy Markdown
Member

/lgtm

@github-actions github-actions Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Approved on behalf of @dsp-ant via /lgtm.

@cliffhall cliffhall merged commit c06d488 into main Mar 26, 2026
11 checks passed
@cliffhall cliffhall deleted the den/fix-106-lifecycle-guide-link branch March 26, 2026 18:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

approved documentation Improvements or additions to documentation enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Unclear Mapping Between Lifecycle Diagram and API

4 participants