Skip to content

Commit 0365610

Browse files
authored
chore: update readme with standard markdown (#3)
* chore: update cargo.toml * chore: update documents * chore: add pull request * remove unrelated change * update template
1 parent 3cede32 commit 0365610

File tree

3 files changed

+37
-15
lines changed

3 files changed

+37
-15
lines changed

.github/pull_request_template.md

+21
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
### 📌 Summary
2+
<!-- Provide a concise description of your changes. What problem does this PR solve? -->
3+
4+
### 🔍 Related Issues
5+
<!-- Link related issues using keywords like "Fixes #123" or "Closes #456" -->
6+
7+
- Fixes #
8+
9+
10+
### ✨ Changes Made
11+
<!-- List the key changes introduced in this PR -->
12+
13+
- Change 1
14+
- Change 2
15+
- Change 3
16+
17+
### 🛠️ Testing Steps
18+
<!-- Explain how reviewers can test your changes, if applicable -->
19+
20+
### 💡 Additional Notes
21+
<!-- Any other information or context about the PR -->

CONTRIBUTING.md

+3-4
Original file line numberDiff line numberDiff line change
@@ -36,11 +36,10 @@ When reporting a bug, use the provided issue template and fill in as many detail
3636

3737
Most issues are resolved through a Pull Request. PRs go through a review process to ensure quality and correctness.
3838

39-
> [!CAUTION]
40-
> The [mcp_schema.rs](src/generated_schema/2024_11_05/mcp_schema.rs) file(s) and certain parts of [schema_utils](src/generated_schema/2024_11_05/schema_utils.rs#L514-L1149) are **automatically generated**.
41-
> The code responsible for generating these files is **not part of this repository** at this time. As a result, we **do not accept pull requests** for these sections.
39+
### ❗Caution
4240

43-
If you find a bug or have suggestions that require modifying the autogenerated code, please **open an issue** and share your proposed changes. We will update the schema generator accordingly, and your changes will be included in a future release.
41+
The [mcp_schema.rs](src/generated_schema/2024_11_05/mcp_schema.rs) file(s) and certain parts of [schema_utils](src/generated_schema/2024_11_05/schema_utils.rs#L514-L1149) are **automatically generated**. The code responsible for generating these files is **not part of this repository** at this time. As a result, we **do not accept pull requests** for these sections.
42+
If you discover a bug or have suggestions that involve changing the autogenerated code, please **open an issue** and share your proposed modifications. We'll update the schema generator as needed, and your changes will be included in a future release.
4443

4544
:fist_right: **Pull requests are welcome** for non-autogenerated parts of `schema_utils`.
4645

README.md

+13-11
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@
99
[<img alt="build status" src="https://img.shields.io/github/actions/workflow/status/rust-mcp-stack/rust-mcp-schema/ci.yml?style=for-the-badge" height="22">
1010
](https://github.com/rust-mcp-stack/rust-mcp-schema/actions/workflows/ci.yml)
1111

12-
1312
A type-safe implementation of the official Model Context Protocol (MCP) schema in Rust.
1413

1514
The MCP schemas in this repository are [automatically generated](#how-are-schemas-generated) from the official Model Context Protocol, ensuring they are always up-to-date and aligned with the latest official specifications.
@@ -18,13 +17,13 @@ The MCP schemas in this repository are [automatically generated](#how-are-schema
1817

1918
- [Features](#features)
2019
- [How can this crate be used?](#how-can-this-crate-be-used)
21-
- [What this crate doesn't include?](#warning-what-this-crate-doesnt-include)
20+
- [What is not included in this crate?](#warning-what-is-not-included-in-this-crate)
2221
- [Schema Versions](#schema-versions)
2322
- [Currently available versions](#currently-available-versions)
2423
- [How to switch between different schema versions?](#how-to-switch-between-different-schema-versions)
2524
- [How are Schemas generated?](#how-are-schemas-generated)
2625
- [What is `schema_utils`?](#what-is-schema_utils)
27-
- [What SchemaUtils does?](#what-schemautils-does)
26+
- [What does the schema_utils do?](#what-does-the-schema_utils-do)
2827
- [Usage Examples](#usage-examples)
2928
- [Detecting an InitializeRequest Message on an MCP Server](#detecting-an-initializerequest-message-on-an-mcp-server)
3029
- [Creating an InitializeResult Response on an MCP Server](#creating-an-initializeresult-response-on-an-mcp-server)
@@ -37,10 +36,10 @@ The MCP schemas in this repository are [automatically generated](#how-are-schema
3736

3837
## Features
3938

40-
- :jigsaw: Type-safe implementation of the MCP protocol specification.
41-
- :gem: Auto-generated schemas are always synchronized with the official schema specifications.
42-
- :scroll: Includes all schema versions, including draft versions for early adoption.
43-
- :hammer_and_pick: Complimentary schema utility module (schema_utils) to boost productivity and ensure development integrity.
39+
- 🧩 Type-safe implementation of the MCP protocol specification.
40+
- 💎 Auto-generated schemas are always synchronized with the official schema specifications.
41+
- 📜 Includes all schema versions, including draft versions for early adoption.
42+
- 🛠 Complimentary schema utility module (schema_utils) to boost productivity and ensure development integrity.
4443

4544
## How can this crate be used?
4645

@@ -53,7 +52,7 @@ This crate includes the schema with `serialization` / `deserialization` support
5352
This crate could be used for developing an **MCP Server**, **MCP Client**, or even an **MCP Host** in Rust.
5453
For more information on the MCP architecture, refer to the [official documentation](https://spec.modelcontextprotocol.io/specification).
5554

56-
## :warning: What this crate doesn't include?
55+
## ⚠️ What is not included in this crate?
5756

5857
This crate **only** provides an implementation of the MCP schema.
5958
This crate is not intended to provide an MCP Transport implementation for sending and receiving MCP messages.
@@ -101,7 +100,8 @@ Schemas are generated from the official `schema.ts` and `schema.json` files avai
101100

102101
Using a customized version of [typify](https://github.com/oxidecomputer/typify), along with additional pre-processing and post-processing steps, the schema specifications are transformed into Rust code.
103102

104-
> [!NOTE]
103+
### 📌 Note
104+
105105
> The code used to generate schemas from `schema.ts` and `schema.json` is not included in this repository. However, I am considering making it available as a CLI tool in the future, allowing developers to generate MCP schemas as Rust code that can be directly integrated into their projects.
106106
107107
## What is `schema_utils`?
@@ -114,13 +114,15 @@ To streamline development, improve compile-time type checking, and reduce the po
114114

115115
Please refer to [schema_utils.rs](src/generated_schema/2024_11_05/schema_utils.rs) for more details.
116116

117-
> [!NOTE]
117+
### 📌 Note
118+
118119
> Using schema_utils is optional. It is enabled by default through the schema_utils Cargo feature and can be used from `rust_mcp_schema::schema_utils`.
120+
119121
> If you prefer not to use schema_utils, you can directly work with the enums and structs provided in schema.rs, adapting them to your needs and creating your own utility types and functions around them.
120122
121123
Visit [Usage Examples (Without `Using schema_utils`)](#usage-examples-without-utilizing-schema_utils) to see an alternative approach.
122124

123-
### What SchemaUtils Does?
125+
### What does the schema_utils do?
124126

125127
The official schema defines a unified `JsonrpcMessage` type that encompasses all messages and notifications within the MCP protocol.
126128

0 commit comments

Comments
 (0)