From a3e9f3f7fa3c25a6bb93dc706f8c436a579dea0e Mon Sep 17 00:00:00 2001 From: Oskar Stark Date: Thu, 4 Sep 2025 21:29:37 +0200 Subject: [PATCH] Fix typos in documentation and configuration files MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Fix grammar in doc/index.rst: "There two types" → "There are two types" - Fix grammar in doc/index.rst: "if non of" → "if none of" - Fix grammar in phpstan.dist.neon: "This errors" → "These errors" - Fix grammar in examples/09-standalone-cli/README.md: "test add" → "test by adding" - Fix sentence structure in examples/README.md for better readability Signed-off-by: Oskar Stark --- doc/index.rst | 4 ++-- examples/09-standalone-cli/README.md | 2 +- examples/README.md | 2 +- phpstan.dist.neon | 2 +- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/doc/index.rst b/doc/index.rst index e9500b8f..dfe9dbe1 100644 --- a/doc/index.rst +++ b/doc/index.rst @@ -15,7 +15,7 @@ Install the SDK using Composer: Usage ----- -The `Model Context Protocol`_ is built on top of JSON-RPC. There two types of +The `Model Context Protocol`_ is built on top of JSON-RPC. There are two types of messages. A Notification and Request. The Notification is just a status update that something has happened. There is never a response to a Notification. A Request is a message that expects a response. There are 3 concepts/capabilities that you @@ -152,6 +152,6 @@ and value objects to work with. They will assure that you follow the `Model Cont specification. You also have the Transport abstraction that allows you to create your own transport -if non of the standard ones fit your needs. +if none of the standard ones fit your needs. .. _`Model Context Protocol`: https://modelcontextprotocol.io/ diff --git a/examples/09-standalone-cli/README.md b/examples/09-standalone-cli/README.md index ff9b93cb..b64295b2 100644 --- a/examples/09-standalone-cli/README.md +++ b/examples/09-standalone-cli/README.md @@ -18,7 +18,7 @@ DEBUG=1 php index.php You will see debug outputs to help you understand what is happening. -In this terminal you can now test add some json strings. See `example-requests.json`. +In this terminal you can now test by adding some JSON strings. See `example-requests.json`. Run with Inspector: diff --git a/examples/README.md b/examples/README.md index aef7d119..eb7a63fb 100644 --- a/examples/README.md +++ b/examples/README.md @@ -2,7 +2,7 @@ This directory contains various examples of how to use the PHP MCP SDK. -You can run examples 01-08 already with the dependencies installed in the root directory of the SDK, for example 09 see +You can run examples 01-08 with the dependencies already installed in the root directory of the SDK. For example 09, see the README in the `examples/09-standalone-cli` directory. For running an example, you execute the `server.php` like this: diff --git a/phpstan.dist.neon b/phpstan.dist.neon index 62e43112..108b384b 100644 --- a/phpstan.dist.neon +++ b/phpstan.dist.neon @@ -15,7 +15,7 @@ parameters: ignoreErrors: - message: "#^Method .*::test.*\\(\\) has no return type specified\\.$#" - # This errors should actually be fixed, but are ignored for now + # These errors should actually be fixed, but are ignored for now - identifier: missingType.iterableValue path: src/Capability/Discovery/SchemaGenerator.php