portage-ucp-etsy 0.1.4 → 0.1.5
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/CHANGELOG.md +13 -0
- data/README.md +22 -0
- data/exe/portage-ucp-etsy +29 -0
- data/lib/portage/ucp/etsy/version.rb +1 -1
- metadata +10 -4
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 56c96a81457126fc2a253e14b5125c26f5e6b7cee7b635427536bbdfd782b376
|
|
4
|
+
data.tar.gz: d9d0dde6213ae52188c34c4ebd373a7476045d5e4cb2c2f7c683c5441eb25b23
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 86af5bedd865f25adb77b0868208c508a5c661d9f9f8fc56a5810fc5354b66bb0e7740d58fd872a51c428f839390a7e05e9cdeb67b6e8bc823250b3bd645ddb0
|
|
7
|
+
data.tar.gz: 1b7f7806169a600ce7e71e25a12f46ebdedff7aaf7f8bae041e185116b442c6351edc68e49121a616cefe2f3e70c300958bf4592429a853e05de773b9d43f2c3
|
data/CHANGELOG.md
CHANGED
|
@@ -4,6 +4,19 @@ All notable changes to this project are documented here. Format loosely follows
|
|
|
4
4
|
[Keep a Changelog](https://keepachangelog.com/en/1.0.0/); this project is
|
|
5
5
|
pre-1.0, so APIs may still shift between minor versions.
|
|
6
6
|
|
|
7
|
+
## [Unreleased]
|
|
8
|
+
|
|
9
|
+
## [0.1.5] - 2026-09-29
|
|
10
|
+
|
|
11
|
+
- This gem had no `exe/` or `examples/`, unlike every other adapter in this
|
|
12
|
+
project (`portage-ucp-shopify`/`-wix`/`-woocommerce`/`-bigcommerce`/
|
|
13
|
+
`-magento`) — there was no way to point an MCP client at a `command` for
|
|
14
|
+
Etsy without hand-writing the `Client`/`Adapter`/`Server.build` wiring
|
|
15
|
+
yourself. Adds `exe/portage-ucp-etsy` (reads `ETSY_ACCESS_TOKEN`/
|
|
16
|
+
`ETSY_API_KEY`/`ETSY_SHOP_ID`, honors `PORTAGE_UCP_CONFIG` the same
|
|
17
|
+
`-r`-a-file way the other exes do) and `examples/portage_ucp.rb` (a
|
|
18
|
+
copy-paste `PORTAGE_UCP_CONFIG` starting point).
|
|
19
|
+
|
|
7
20
|
## [0.1.4] - 2026-09-17
|
|
8
21
|
|
|
9
22
|
- No behavior change — widens the `portage-ucp` dependency pin to `~> 0.8`
|
data/README.md
CHANGED
|
@@ -78,6 +78,28 @@ checkout.links.first.url # => hand this to the shopper/agent to complete the pur
|
|
|
78
78
|
order = adapter.get_order(order_id: some_receipt_id)
|
|
79
79
|
```
|
|
80
80
|
|
|
81
|
+
### Standalone MCP server
|
|
82
|
+
|
|
83
|
+
This gem also ships `exe/portage-ucp-etsy`, which does the `Client`/`Adapter`/`Server.build` wiring above for
|
|
84
|
+
you, so you don't need a throwaway Ruby file just to point an MCP client (Claude Desktop, etc.) at a `command`:
|
|
85
|
+
|
|
86
|
+
```bash
|
|
87
|
+
ETSY_ACCESS_TOKEN=... ETSY_API_KEY=... ETSY_SHOP_ID=... bundle exec portage-ucp-etsy
|
|
88
|
+
```
|
|
89
|
+
|
|
90
|
+
Wiring a real `authenticator`/`rate_limiter`/`business` still has to come from you — the exe won't guess
|
|
91
|
+
those — so point `PORTAGE_UCP_CONFIG` at a Ruby file that calls `Portage::Ucp.configure`, the same `-r`-a-file
|
|
92
|
+
pattern `rackup`/Sidekiq use. [`examples/portage_ucp.rb`](https://github.com/tomtom87/Portage/blob/main/portage-ucp-etsy/examples/portage_ucp.rb) is a copy-paste starting
|
|
93
|
+
point (bearer-token authenticator, in-process rate limiter):
|
|
94
|
+
|
|
95
|
+
```bash
|
|
96
|
+
PORTAGE_UCP_CONFIG=./config/portage_ucp.rb \
|
|
97
|
+
ETSY_ACCESS_TOKEN=... ETSY_API_KEY=... ETSY_SHOP_ID=... bundle exec portage-ucp-etsy
|
|
98
|
+
```
|
|
99
|
+
|
|
100
|
+
Without it, the server still starts but rejects every mutating call — the `UnconfiguredAuthenticator`
|
|
101
|
+
default.
|
|
102
|
+
|
|
81
103
|
## Wiring into portage-ucp
|
|
82
104
|
|
|
83
105
|
Drop the adapter into a `Dispatcher` (or the MCP server) the same as any other backend:
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
#!/usr/bin/env ruby
|
|
2
|
+
# frozen_string_literal: true
|
|
3
|
+
|
|
4
|
+
# Standalone MCP server over stdio. Configure the shop connection via env
|
|
5
|
+
# vars, and — since this gem ships with permissive-nothing defaults (see
|
|
6
|
+
# README's "Security hooks") — wire a real Authenticator/RateLimiter/etc. via
|
|
7
|
+
# a config file loaded with PORTAGE_UCP_CONFIG, the same way `rackup -r` or
|
|
8
|
+
# Sidekiq's `-r` work — see ../examples/portage_ucp.rb for a starting point.
|
|
9
|
+
# Without one, the server still starts but rejects every mutating call.
|
|
10
|
+
#
|
|
11
|
+
# Only ETSY_ACCESS_TOKEN and ETSY_API_KEY are read here, not ETSY_CLIENT_ID/
|
|
12
|
+
# ETSY_REFRESH_TOKEN: this exe expects a shop-scoped access_token you've
|
|
13
|
+
# already fetched (e.g. via `bundle exec rake etsy_access_token`) and refresh
|
|
14
|
+
# out-of-band, same as any other long-lived process holding a token with an
|
|
15
|
+
# expiry.
|
|
16
|
+
|
|
17
|
+
require "portage/ucp"
|
|
18
|
+
require "portage/ucp/etsy"
|
|
19
|
+
|
|
20
|
+
require ENV["PORTAGE_UCP_CONFIG"] if ENV["PORTAGE_UCP_CONFIG"]
|
|
21
|
+
|
|
22
|
+
client = Portage::Ucp::Etsy::Client.new(
|
|
23
|
+
access_token: ENV.fetch("ETSY_ACCESS_TOKEN"),
|
|
24
|
+
api_key: ENV.fetch("ETSY_API_KEY")
|
|
25
|
+
)
|
|
26
|
+
adapter = Portage::Ucp::Etsy::Adapter.new(client: client, shop_id: ENV.fetch("ETSY_SHOP_ID"))
|
|
27
|
+
|
|
28
|
+
server = Portage::Ucp::Mcp::Server.build(adapter: adapter)
|
|
29
|
+
MCP::Server::Transports::StdioTransport.new(server).open
|
metadata
CHANGED
|
@@ -1,13 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: portage-ucp-etsy
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.1.
|
|
4
|
+
version: 0.1.5
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Tom Whitbread
|
|
8
|
+
autorequire:
|
|
8
9
|
bindir: exe
|
|
9
10
|
cert_chain: []
|
|
10
|
-
date:
|
|
11
|
+
date: 2026-09-29 00:00:00.000000000 Z
|
|
11
12
|
dependencies:
|
|
12
13
|
- !ruby/object:Gem::Dependency
|
|
13
14
|
name: portage-ucp
|
|
@@ -83,13 +84,16 @@ description: Implements Portage::Ucp::Adapter against Etsy's Open API v3. Catalo
|
|
|
83
84
|
and order are real; checkout is redirect-link only (links to etsy.com) since Etsy's
|
|
84
85
|
public API has no cart/checkout endpoint. Generic only — no merchant-specific business
|
|
85
86
|
logic. Plain Net::HTTP, no Etsy SDK runtime dependency.
|
|
86
|
-
|
|
87
|
+
email:
|
|
88
|
+
executables:
|
|
89
|
+
- portage-ucp-etsy
|
|
87
90
|
extensions: []
|
|
88
91
|
extra_rdoc_files: []
|
|
89
92
|
files:
|
|
90
93
|
- CHANGELOG.md
|
|
91
94
|
- LICENSE
|
|
92
95
|
- README.md
|
|
96
|
+
- exe/portage-ucp-etsy
|
|
93
97
|
- lib/portage/ucp/etsy.rb
|
|
94
98
|
- lib/portage/ucp/etsy/access_token_fetcher.rb
|
|
95
99
|
- lib/portage/ucp/etsy/adapter.rb
|
|
@@ -104,6 +108,7 @@ metadata:
|
|
|
104
108
|
source_code_uri: https://github.com/tomtom87/Portage/tree/main/portage-ucp-etsy
|
|
105
109
|
changelog_uri: https://github.com/tomtom87/Portage/blob/main/portage-ucp-etsy/CHANGELOG.md
|
|
106
110
|
rubygems_mfa_required: 'true'
|
|
111
|
+
post_install_message:
|
|
107
112
|
rdoc_options: []
|
|
108
113
|
require_paths:
|
|
109
114
|
- lib
|
|
@@ -118,7 +123,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
118
123
|
- !ruby/object:Gem::Version
|
|
119
124
|
version: '0'
|
|
120
125
|
requirements: []
|
|
121
|
-
rubygems_version:
|
|
126
|
+
rubygems_version: 3.5.22
|
|
127
|
+
signing_key:
|
|
122
128
|
specification_version: 4
|
|
123
129
|
summary: Etsy adapter for portage-ucp — catalog/order over MCP and UCP, redirect-link
|
|
124
130
|
checkout
|