ruby-sdk/lib/mcp
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Koichi ITO f6f064ab71 Add instructions support to MCP::Server
The response of the `init` method can include `instructions`.
https://modelcontextprotocol.io/specification/2025-06-18/basic/lifecycle

`instructions` appear to be supported starting from the 2025-03-26 specification.

- https://modelcontextprotocol.io/specification/2025-03-26/basic/lifecycle (supports `instructions`)
- https://modelcontextprotocol.io/specification/2024-11-05/basic/lifecycle (does not support `instructions`)

If `instructions` is used with an unsupported protocol version, an `ArgumentError` will be raised.

As additional context, the TypeScript SDK also treats `instructions` as optional.
https://github.com/modelcontextprotocol/typescript-sdk/blob/1.16.0/src/types.ts#L356-L361
2025-08-07 12:17:57 +09:00
..
prompt stop using shared dir 2025-05-30 14:33:22 -04:00
resource stop using shared dir 2025-05-30 14:33:22 -04:00
server Fix JSON-RPC notification format in Streamable HTTP transport 2025-07-26 17:58:31 +09:00
tool fixes input schema validation for schemas without required fields 2025-07-11 11:27:59 +02:00
transports Add a migration path for Server::Transports::StdioTransport 2025-06-10 16:27:22 +09:00
configuration.rb Set default protocol version to the latest specification 2025-07-20 16:36:18 +09:00
content.rb stop using shared dir 2025-05-30 14:33:22 -04:00
instrumentation.rb stop using shared dir 2025-05-30 14:33:22 -04:00
methods.rb Add missing checks 2025-06-15 17:35:18 +09:00
prompt.rb Refactor MCP tool and server to handle optional server_context parameter 2025-06-10 15:40:28 -04:00
resource.rb Merge pull request #34 from koic/make_some_optional_kwargs_in_resource 2025-05-31 13:34:25 -04:00
resource_template.rb stop using shared dir 2025-05-30 14:33:22 -04:00
server.rb Add instructions support to MCP::Server 2025-08-07 12:17:57 +09:00
string_utils.rb stop using shared dir 2025-05-30 14:33:22 -04:00
tool.rb Refactor MCP tool and server to handle optional server_context parameter 2025-06-10 15:40:28 -04:00
transport.rb Addressing feedback 2025-06-11 13:44:54 -07:00
version.rb Bump version 2025-07-15 15:40:15 -04:00