Skip to content

[Client] docs: introduce client SDK documentation and improve README structure#259

Open
CodeWithKyrian wants to merge 1 commit intomodelcontextprotocol:mainfrom
CodeWithKyrian:docs/client-sdk-documentation
Open

[Client] docs: introduce client SDK documentation and improve README structure#259
CodeWithKyrian wants to merge 1 commit intomodelcontextprotocol:mainfrom
CodeWithKyrian:docs/client-sdk-documentation

Conversation

@CodeWithKyrian
Copy link
Contributor

This PR introduces comprehensive documentation for the Client SDK, including detailed guides and examples. It also restructures the README to provide better clarity and flow for both server and client SDK usage.

Context and Motivation

The Client SDK was recently implemented in #192 without any documentation. This PR addresses that gap by creating extensive documentation that covers all client features. Additionally, the README structure needed to change a bit to accommodate the Client SDK and for better flow.

What's Changed

  • Added comprehensive docs/client.md with full client SDK documentation
  • Updated docs/index.md to include client documentation link
  • Updated docs/examples.md with client example walkthroughs
  • Restructured README.md with clear Server SDK and Client SDK sections
  • Updated roadmap to mark "Implement Client component" as complete

- Create new client documentation with examples and API reference
- Restructure README for better clarity and flow
- Add client examples to documentation index
- Update roadmap to mark client component as complete
@chr-hertel chr-hertel added the Client Issues & PRs related to the Client component label Mar 10, 2026
Copy link
Member

@chr-hertel chr-hertel left a comment

Choose a reason for hiding this comment

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

Thanks @CodeWithKyrian - only minor questions/proposals for README.md, up to you - i like the new version 👍

- **Resources**: Data sources that can be read (files, configs, databases)
- **Resource Templates**: Dynamic resources with URI parameters
- **Prompts**: Pre-defined templates for AI interactions
- **Server-Initiated Communication**: Sampling, logging, progress notifications
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
- **Server-Initiated Communication**: Sampling, logging, progress notifications
- **Server-Initiated Communication**: Elicitations, sampling, logging, progress notifications

Build MCP servers to expose your PHP application's capabilities to AI agents like Claude, Codex, and others.

namespace App;
### Quick Example
Copy link
Member

Choose a reason for hiding this comment

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

i feel like "Quick Start" is also quite common

Suggested change
### Quick Example
### Quick Start


### 1. Define Your MCP Elements
- **Build MCP Servers**: Expose your PHP application's functionality (tools, resources, prompts) to AI agents
- **Create MCP Clients**: Connect to and interact with MCP servers from your PHP applications
Copy link
Member

Choose a reason for hiding this comment

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

for consistency also "Build" like the line above? or just drop the verbs?

Suggested change
- **Create MCP Clients**: Connect to and interact with MCP servers from your PHP applications
- **Build MCP Clients**: Connect to and interact with MCP servers from your PHP applications

'mcp_sessions'
);

**Redis** (suitable for distributed/multi-server deployments):
Copy link
Member

Choose a reason for hiding this comment

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

WDYT?

Suggested change
**Redis** (suitable for distributed/multi-server deployments):
**PSR-16 Cache** (for example with Redis for scaled deployments):

Use any PSR-16 cache implementation to cache discovery results and avoid running discovery on every server start:
Connect to MCP servers from your PHP applications to access their tools, resources, and prompts.

### Quick Example
Copy link
Member

Choose a reason for hiding this comment

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

also maybe start?

Suggested change
### Quick Example
### Quick Start

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Client Issues & PRs related to the Client component

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants