swagger_mcp_tool 0.1.3 → 0.1.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/README.md +34 -5
- data/lib/swagger_mcp_tool/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 9a7c9a8135edeb2cc144723ca07ee9723179d99b542e47ad2319793434dd8ed8
|
4
|
+
data.tar.gz: e651d04bc9a2211aeeb93f6dd5e19b505097173d793feb56f63d8cf14fce245c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1f941db14c926b9f36c6e3dda7ecff8e925ca70bf1886ed0e5e09babe1642afb98fa578da306fa29a2ae57cea906834f6edc6fd8516a1c9ba89fdcd1cc220517
|
7
|
+
data.tar.gz: ac9c8534744bd32efbd5f62e5ba4d9ee23ae60f40f81339a3bf48492129cab789eaac626bbc78551f89b6f2929da18f8f35fe5a14fff063e1e2e0cafa2012f00
|
data/README.md
CHANGED
@@ -21,10 +21,10 @@ A Ruby gem that automatically generates MCP (Model Context Protocol) tools from
|
|
21
21
|
- Gems:
|
22
22
|
- sinatra
|
23
23
|
- sinatra-contrib
|
24
|
-
- mcp
|
24
|
+
- mcp
|
25
25
|
- json
|
26
26
|
- puma
|
27
|
-
- rackup
|
27
|
+
- rackup
|
28
28
|
- pry (development)
|
29
29
|
- rake (development)
|
30
30
|
|
@@ -89,6 +89,34 @@ Use the provided example for direct integration with MCP clients like Kiro IDE:
|
|
89
89
|
|
90
90
|
**File: `examples/mcp_stdio_server.rb`**
|
91
91
|
|
92
|
+
|
93
|
+
```ruby
|
94
|
+
|
95
|
+
require 'swagger_mcp_tool'
|
96
|
+
|
97
|
+
SwaggerMCPTool.configure do |config|
|
98
|
+
# Swagger settings
|
99
|
+
config.swagger_url = 'https://petstore.swagger.io/v2/swagger.json'
|
100
|
+
|
101
|
+
# MCP settings
|
102
|
+
config.mcp_name = 'my_company_api'
|
103
|
+
config.mcp_name_for_human = 'My Company API'
|
104
|
+
config.mcp_description_for_human = "Tools for interacting with My Company's API"
|
105
|
+
config.auth_header_name = :'Token'
|
106
|
+
config.protocol_version = "2025-03-26"
|
107
|
+
|
108
|
+
# Force stdio mode
|
109
|
+
config.stdio_mode = true if config.respond_to?(:stdio_mode=)
|
110
|
+
end
|
111
|
+
|
112
|
+
# Start the MCP server in stdio mode
|
113
|
+
SwaggerMCPTool.start_stdio_server
|
114
|
+
|
115
|
+
```
|
116
|
+
|
117
|
+
### OR
|
118
|
+
|
119
|
+
|
92
120
|
```ruby
|
93
121
|
#!/usr/bin/env ruby
|
94
122
|
|
@@ -298,6 +326,7 @@ end
|
|
298
326
|
| `mcp_name` | 'swagger_api_tools' | MCP server name |
|
299
327
|
| `auth_type` | 'none' | Authentication type |
|
300
328
|
| `auth_header_name` | 'Token' | Auth header name |
|
329
|
+
| `protocol_version` | '2025-03-26' | Protocol Version Supported by Client |
|
301
330
|
|
302
331
|
## Working with Prompts
|
303
332
|
|
@@ -333,13 +362,13 @@ To use with Kiro IDE, add the server to your MCP configuration file (`.kiro/sett
|
|
333
362
|
{
|
334
363
|
"mcpServers": {
|
335
364
|
"swagger-mcp-tool": {
|
336
|
-
"command": "/Users
|
365
|
+
"command": "/Users/<user>/.rbenv/versions/3.2.2/bin/ruby",
|
337
366
|
"args": [
|
338
|
-
"/Users
|
367
|
+
"/Users/<user>/projects/dummy/swagger_mcp_tool/examples/mcp_stdio_server.rb"
|
339
368
|
],
|
340
369
|
"env": {
|
341
370
|
"RBENV_VERSION": "3.2.2",
|
342
|
-
"PATH": "/Users
|
371
|
+
"PATH": "/Users/<user>/.rbenv/versions/3.2.2/bin:/Users/<user>/.rbenv/shims:/usr/local/bin:/usr/bin:/bin"
|
343
372
|
},
|
344
373
|
"disabled": false,
|
345
374
|
"autoApprove": []
|