├── .github └── workflows │ └── test.yml ├── .gitignore ├── CHANGELOG.md ├── Gemfile ├── Gemfile.lock ├── LICENSE.txt ├── README.md ├── Rakefile ├── examples ├── client_example.rb ├── cosense_example.rb └── hello_world.rb ├── lib ├── mcp.rb └── mcp │ ├── app.rb │ ├── app │ ├── resource.rb │ ├── resource_template.rb │ └── tool.rb │ ├── client.rb │ ├── constants.rb │ ├── delegator.rb │ ├── message_validator.rb │ ├── server.rb │ ├── server │ ├── client_connection.rb │ └── stdio_client_connection.rb │ └── version.rb ├── mcp-rb.gemspec ├── schemas └── 2024-11-05.json └── test ├── mcp ├── app │ ├── resource_template_test.rb │ ├── resource_test.rb │ └── tool_test.rb ├── client_test.rb ├── delegator_test.rb ├── message_validator_test.rb └── server_test.rb ├── snapshots └── snapshotstest │ └── test_hello_world_server_interaction__1.snap.yaml ├── snapshots_test.rb └── test_helper.rb /.github/workflows/test.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/funwarioisii/mcp-rb/HEAD/.github/workflows/test.yml -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | .idea/ 2 | .vscode/ 3 | .DS_Store 4 | mcp-rb-*.gem 5 | -------------------------------------------------------------------------------- /CHANGELOG.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/funwarioisii/mcp-rb/HEAD/CHANGELOG.md -------------------------------------------------------------------------------- /Gemfile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/funwarioisii/mcp-rb/HEAD/Gemfile -------------------------------------------------------------------------------- /Gemfile.lock: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/funwarioisii/mcp-rb/HEAD/Gemfile.lock -------------------------------------------------------------------------------- /LICENSE.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/funwarioisii/mcp-rb/HEAD/LICENSE.txt -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/funwarioisii/mcp-rb/HEAD/README.md -------------------------------------------------------------------------------- /Rakefile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/funwarioisii/mcp-rb/HEAD/Rakefile -------------------------------------------------------------------------------- /examples/client_example.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/funwarioisii/mcp-rb/HEAD/examples/client_example.rb -------------------------------------------------------------------------------- /examples/cosense_example.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/funwarioisii/mcp-rb/HEAD/examples/cosense_example.rb -------------------------------------------------------------------------------- /examples/hello_world.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/funwarioisii/mcp-rb/HEAD/examples/hello_world.rb -------------------------------------------------------------------------------- /lib/mcp.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/funwarioisii/mcp-rb/HEAD/lib/mcp.rb -------------------------------------------------------------------------------- /lib/mcp/app.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/funwarioisii/mcp-rb/HEAD/lib/mcp/app.rb -------------------------------------------------------------------------------- /lib/mcp/app/resource.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/funwarioisii/mcp-rb/HEAD/lib/mcp/app/resource.rb -------------------------------------------------------------------------------- /lib/mcp/app/resource_template.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/funwarioisii/mcp-rb/HEAD/lib/mcp/app/resource_template.rb -------------------------------------------------------------------------------- /lib/mcp/app/tool.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/funwarioisii/mcp-rb/HEAD/lib/mcp/app/tool.rb -------------------------------------------------------------------------------- /lib/mcp/client.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/funwarioisii/mcp-rb/HEAD/lib/mcp/client.rb -------------------------------------------------------------------------------- /lib/mcp/constants.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/funwarioisii/mcp-rb/HEAD/lib/mcp/constants.rb -------------------------------------------------------------------------------- /lib/mcp/delegator.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/funwarioisii/mcp-rb/HEAD/lib/mcp/delegator.rb -------------------------------------------------------------------------------- /lib/mcp/message_validator.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/funwarioisii/mcp-rb/HEAD/lib/mcp/message_validator.rb -------------------------------------------------------------------------------- /lib/mcp/server.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/funwarioisii/mcp-rb/HEAD/lib/mcp/server.rb -------------------------------------------------------------------------------- /lib/mcp/server/client_connection.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/funwarioisii/mcp-rb/HEAD/lib/mcp/server/client_connection.rb -------------------------------------------------------------------------------- /lib/mcp/server/stdio_client_connection.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/funwarioisii/mcp-rb/HEAD/lib/mcp/server/stdio_client_connection.rb -------------------------------------------------------------------------------- /lib/mcp/version.rb: -------------------------------------------------------------------------------- 1 | # frozen_string_literal: true 2 | 3 | module MCP 4 | VERSION = "0.3.2" 5 | end 6 | -------------------------------------------------------------------------------- /mcp-rb.gemspec: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/funwarioisii/mcp-rb/HEAD/mcp-rb.gemspec -------------------------------------------------------------------------------- /schemas/2024-11-05.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/funwarioisii/mcp-rb/HEAD/schemas/2024-11-05.json -------------------------------------------------------------------------------- /test/mcp/app/resource_template_test.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/funwarioisii/mcp-rb/HEAD/test/mcp/app/resource_template_test.rb -------------------------------------------------------------------------------- /test/mcp/app/resource_test.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/funwarioisii/mcp-rb/HEAD/test/mcp/app/resource_test.rb -------------------------------------------------------------------------------- /test/mcp/app/tool_test.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/funwarioisii/mcp-rb/HEAD/test/mcp/app/tool_test.rb -------------------------------------------------------------------------------- /test/mcp/client_test.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/funwarioisii/mcp-rb/HEAD/test/mcp/client_test.rb -------------------------------------------------------------------------------- /test/mcp/delegator_test.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/funwarioisii/mcp-rb/HEAD/test/mcp/delegator_test.rb -------------------------------------------------------------------------------- /test/mcp/message_validator_test.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/funwarioisii/mcp-rb/HEAD/test/mcp/message_validator_test.rb -------------------------------------------------------------------------------- /test/mcp/server_test.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/funwarioisii/mcp-rb/HEAD/test/mcp/server_test.rb -------------------------------------------------------------------------------- /test/snapshots/snapshotstest/test_hello_world_server_interaction__1.snap.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/funwarioisii/mcp-rb/HEAD/test/snapshots/snapshotstest/test_hello_world_server_interaction__1.snap.yaml -------------------------------------------------------------------------------- /test/snapshots_test.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/funwarioisii/mcp-rb/HEAD/test/snapshots_test.rb -------------------------------------------------------------------------------- /test/test_helper.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/funwarioisii/mcp-rb/HEAD/test/test_helper.rb --------------------------------------------------------------------------------