webmcp 0.0.1

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 ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA256:
3
+ metadata.gz: ce68cc934f356e7176b4172ac6df65d9726da7b2075916134c57b529437d7709
4
+ data.tar.gz: 4128861c35d56f483c70839a6bb57451bd446c59ade477bbeac7ebb9f6bd6169
5
+ SHA512:
6
+ metadata.gz: 77996d3ef9cbdfc781afc380d747966d7b5747162d46107db6d43b9475c76e2e70f613dd4c99764d44886fd4065130537a57f1086761654e8359898c709e9ca2
7
+ data.tar.gz: d869d16246a0d204467252184c8a38c433b497e3116ac172ee45cc8d06fca7481f7b02b92aa88490912f15463beeba1407d55755f9203ca70cfa7b48e266213a
data/LICENSE.txt ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 seunghan Kim
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
data/README.md ADDED
@@ -0,0 +1,22 @@
1
+ # webmcp
2
+
3
+ Ruby/Rails toolkit for [WebMCP](https://github.com/webmachinelearning/webmcp) —
4
+ the W3C proposal that lets web pages declare structured tools for AI agents
5
+ (`document.modelContext`).
6
+
7
+ **Status: early development.** The WebMCP spec is in Chrome origin trial
8
+ (Chrome 149–156) and its API surface has already changed twice. This gem is
9
+ being extracted from a production integration and will ship its first usable
10
+ release once the spec surface stabilizes.
11
+
12
+ Planned:
13
+
14
+ - Define tools once in Ruby; emit both server-side MCP schemas and WebMCP
15
+ registration payloads
16
+ - Declarative helpers: `form_with ..., webmcp:` → `toolname` /
17
+ `tooldescription` / `toolparamdescription` attributes
18
+ - Rack middleware for the `Origin-Trial` token header
19
+
20
+ ## License
21
+
22
+ MIT
@@ -0,0 +1,5 @@
1
+ # frozen_string_literal: true
2
+
3
+ module WebMCP
4
+ VERSION = "0.0.1"
5
+ end
data/lib/webmcp.rb ADDED
@@ -0,0 +1,16 @@
1
+ # frozen_string_literal: true
2
+
3
+ require_relative "webmcp/version"
4
+
5
+ # WebMCP — Ruby/Rails toolkit for the W3C Web Model Context Protocol.
6
+ #
7
+ # Status: early development. The WebMCP spec is in Chrome origin trial
8
+ # (Chrome 149-156) and its surface is still moving; this gem tracks the
9
+ # spec and will ship its first usable release once the API stabilizes.
10
+ #
11
+ # Planned surface:
12
+ # - Tool definitions in Ruby, shared between server-side MCP and WebMCP
13
+ # - Declarative form attribute helpers (toolname/tooldescription/...)
14
+ # - Rack middleware for serving the Origin-Trial token header
15
+ module WebMCP
16
+ end
metadata ADDED
@@ -0,0 +1,49 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: webmcp
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.0.1
5
+ platform: ruby
6
+ authors:
7
+ - seunghan Kim
8
+ bindir: bin
9
+ cert_chain: []
10
+ date: 2026-08-09 00:00:00.000000000 Z
11
+ dependencies: []
12
+ description: 'Define agent-callable tools once in Ruby and expose them to browsers
13
+ via the WebMCP standard (document.modelContext): declarative form attributes, imperative
14
+ registration payloads, and Origin-Trial header middleware. Currently in early development
15
+ while the W3C spec stabilizes (Chrome origin trial).'
16
+ email:
17
+ - theqwe2000@gmail.com
18
+ executables: []
19
+ extensions: []
20
+ extra_rdoc_files: []
21
+ files:
22
+ - LICENSE.txt
23
+ - README.md
24
+ - lib/webmcp.rb
25
+ - lib/webmcp/version.rb
26
+ homepage: https://github.com/seunghan91/webmcp
27
+ licenses:
28
+ - MIT
29
+ metadata:
30
+ source_code_uri: https://github.com/seunghan91/webmcp
31
+ rubygems_mfa_required: 'true'
32
+ rdoc_options: []
33
+ require_paths:
34
+ - lib
35
+ required_ruby_version: !ruby/object:Gem::Requirement
36
+ requirements:
37
+ - - ">="
38
+ - !ruby/object:Gem::Version
39
+ version: '3.1'
40
+ required_rubygems_version: !ruby/object:Gem::Requirement
41
+ requirements:
42
+ - - ">="
43
+ - !ruby/object:Gem::Version
44
+ version: '0'
45
+ requirements: []
46
+ rubygems_version: 3.6.2
47
+ specification_version: 4
48
+ summary: Ruby/Rails toolkit for WebMCP (W3C Web Model Context Protocol) — early development.
49
+ test_files: []