Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions docs/specification/draft/basic/lifecycle.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,7 @@ The client **MUST** initiate this phase by sending an `initialize` request conta
},
"clientInfo": {
"name": "ExampleClient",
"title": "Example Client Display Name",
"version": "1.0.0"
}
}
Expand Down Expand Up @@ -97,6 +98,7 @@ The server **MUST** respond with its own capabilities and information:
},
"serverInfo": {
"name": "ExampleServer",
"title": "Example Server Display Name",
"version": "1.0.0"
},
"instructions": "Optional instructions for the client"
Expand Down
4 changes: 4 additions & 0 deletions docs/specification/draft/server/prompts.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,7 @@ supports [pagination](/specification/draft/server/utilities/pagination).
"prompts": [
{
"name": "code_review",
"title": "Request Code Review",
"description": "Asks the LLM to analyze code quality and suggest improvements",
"arguments": [
{
Expand Down Expand Up @@ -174,6 +175,7 @@ sequenceDiagram
A prompt definition includes:

- `name`: Unique identifier for the prompt
- `title`: Optional human-readable name of the prompt for display purposes.
- `description`: Optional human-readable description
- `arguments`: Optional list of arguments for customization

Expand Down Expand Up @@ -236,6 +238,8 @@ Embedded resources allow referencing server-side resources directly in messages:
"type": "resource",
"resource": {
"uri": "resource://example",
"name": "example",
"title": "My Example Resource",
"mimeType": "text/plain",
"text": "Resource content"
}
Expand Down
14 changes: 12 additions & 2 deletions docs/specification/draft/server/resources.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,7 @@ supports [pagination](/specification/draft/server/utilities/pagination).
{
"uri": "file:///project/src/main.rs",
"name": "main.rs",
"title": "Rust Software Application Main File",
"description": "Primary application entry point",
"mimeType": "text/x-rust"
}
Expand Down Expand Up @@ -149,6 +150,8 @@ To retrieve resource contents, clients send a `resources/read` request:
"contents": [
{
"uri": "file:///project/src/main.rs",
"name": "main.rs",
"title": "Rust Software Application Main File",
"mimeType": "text/x-rust",
"text": "fn main() {\n println!(\"Hello world!\");\n}"
}
Expand Down Expand Up @@ -184,6 +187,7 @@ auto-completed through [the completion API](/specification/draft/server/utilitie
{
"uriTemplate": "file:///{path}",
"name": "Project Files",
"title": "📁 Project Files",
"description": "Access files in the project directory",
"mimeType": "application/octet-stream"
}
Expand Down Expand Up @@ -229,7 +233,8 @@ to specific resources and receive notifications when they change:
"jsonrpc": "2.0",
"method": "notifications/resources/updated",
"params": {
"uri": "file:///project/src/main.rs"
"uri": "file:///project/src/main.rs",
"title": "Rust Software Application Main File"
}
}
```
Expand Down Expand Up @@ -266,7 +271,8 @@ sequenceDiagram
A resource definition includes:

- `uri`: Unique identifier for the resource
- `name`: Human-readable name
- `name`: The name of the resource.
- `title`: Optional human-readable name of the resource for display purposes.
- `description`: Optional description
- `mimeType`: Optional MIME type
- `size`: Optional size in bytes
Expand All @@ -280,6 +286,8 @@ Resources can contain either text or binary data:
```json
{
"uri": "file:///example.txt",
"name": "example.txt",
"title": "Example Text File",
"mimeType": "text/plain",
"text": "Resource content"
}
Expand All @@ -290,6 +298,8 @@ Resources can contain either text or binary data:
```json
{
"uri": "file:///example.png",
"name": "example.png",
"title": "Example Image",
"mimeType": "image/png",
"blob": "base64-encoded-data"
}
Expand Down
4 changes: 4 additions & 0 deletions docs/specification/draft/server/tools.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,7 @@ To discover available tools, clients send a `tools/list` request. This operation
"tools": [
{
"name": "get_weather",
"title": "Weather Information Provider",
"description": "Get current weather information for a location",
"inputSchema": {
"type": "object",
Expand Down Expand Up @@ -183,6 +184,7 @@ sequenceDiagram
A tool definition includes:

- `name`: Unique identifier for the tool
- `title`: Optional human-readable name of the tool for display purposes.
- `description`: Human-readable description of functionality
- `inputSchema`: JSON Schema defining expected parameters
- `outputSchema`: Optional JSON Schema defining expected output structure
Expand Down Expand Up @@ -260,6 +262,7 @@ or data using a suitable [URI scheme](./resources#common-uri-schemes). Servers t
"type": "resource",
"resource": {
"uri": "file:///project/src/main.rs",
"title": "Project Rust Main File",
"mimeType": "text/x-rust",
"text": "fn main() {\n println!(\"Hello world!\");\n}"
}
Expand All @@ -286,6 +289,7 @@ Example tool with output schema:
```json
{
"name": "get_weather_data",
"title": "Weather Data Retriever",
"description": "Get current weather data for a location",
"inputSchema": {
"type": "object",
Expand Down
68 changes: 59 additions & 9 deletions schema/draft/schema.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading