gmcp 0.5.0
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 +7 -0
- data/CHANGELOG.md +96 -0
- data/LICENSE.txt +21 -0
- data/README.md +248 -0
- data/bin/gmail_survey +167 -0
- data/bin/gmcp +33 -0
- data/bin/gmcp-auth +68 -0
- data/config/capabilities.yml +148 -0
- data/config/scopes.yml +14 -0
- data/lib/gmcp/account_registry.rb +68 -0
- data/lib/gmcp/api_binding.rb +75 -0
- data/lib/gmcp/api_error.rb +33 -0
- data/lib/gmcp/apis.rb +46 -0
- data/lib/gmcp/auth.rb +189 -0
- data/lib/gmcp/bearer_middleware.rb +17 -0
- data/lib/gmcp/calendar/calendar.rb +16 -0
- data/lib/gmcp/calendar/event.rb +95 -0
- data/lib/gmcp/calendar/tools.rb +150 -0
- data/lib/gmcp/capabilities.rb +133 -0
- data/lib/gmcp/drive/file.rb +145 -0
- data/lib/gmcp/drive/tools.rb +64 -0
- data/lib/gmcp/gmail/draft.rb +21 -0
- data/lib/gmcp/gmail/label.rb +16 -0
- data/lib/gmcp/gmail/message.rb +407 -0
- data/lib/gmcp/gmail/mime.rb +108 -0
- data/lib/gmcp/gmail/tools.rb +364 -0
- data/lib/gmcp/gmail/unsubscribe.rb +96 -0
- data/lib/gmcp/server.rb +90 -0
- data/lib/gmcp/tool_helpers.rb +105 -0
- data/lib/gmcp/version.rb +3 -0
- data/lib/gmcp/voice/chrome.rb +111 -0
- data/lib/gmcp/voice/conversation.rb +65 -0
- data/lib/gmcp/voice/folder.rb +67 -0
- data/lib/gmcp/voice/message.rb +81 -0
- data/lib/gmcp/voice/session.rb +126 -0
- data/lib/gmcp/voice/tools.rb +178 -0
- data/lib/gmcp/voice.rb +34 -0
- data/lib/gmcp.rb +43 -0
- metadata +226 -0
data/lib/gmcp.rb
ADDED
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
require 'pathname'
|
|
2
|
+
require 'base64'
|
|
3
|
+
require 'fileutils'
|
|
4
|
+
require 'him'
|
|
5
|
+
|
|
6
|
+
require_relative 'gmcp/version'
|
|
7
|
+
|
|
8
|
+
module GMCP
|
|
9
|
+
def self.root(*args)
|
|
10
|
+
(@root ||= Pathname.new(File.expand_path('../', __dir__))).join(*args)
|
|
11
|
+
end
|
|
12
|
+
|
|
13
|
+
autoload :Auth, 'gmcp/auth'
|
|
14
|
+
autoload :ApiError, 'gmcp/api_error'
|
|
15
|
+
autoload :BearerMiddleware, 'gmcp/bearer_middleware'
|
|
16
|
+
autoload :Apis, 'gmcp/apis'
|
|
17
|
+
autoload :ApiBinding, 'gmcp/api_binding'
|
|
18
|
+
autoload :AccountRegistry, 'gmcp/account_registry'
|
|
19
|
+
autoload :Capabilities, 'gmcp/capabilities'
|
|
20
|
+
autoload :ToolHelpers, 'gmcp/tool_helpers'
|
|
21
|
+
autoload :Server, 'gmcp/server'
|
|
22
|
+
autoload :Voice, 'gmcp/voice'
|
|
23
|
+
|
|
24
|
+
module Gmail
|
|
25
|
+
autoload :Message, 'gmcp/gmail/message'
|
|
26
|
+
autoload :Label, 'gmcp/gmail/label'
|
|
27
|
+
autoload :Mime, 'gmcp/gmail/mime'
|
|
28
|
+
autoload :Draft, 'gmcp/gmail/draft'
|
|
29
|
+
autoload :Unsubscribe, 'gmcp/gmail/unsubscribe'
|
|
30
|
+
autoload :Tools, 'gmcp/gmail/tools'
|
|
31
|
+
end
|
|
32
|
+
|
|
33
|
+
module Calendar
|
|
34
|
+
autoload :Event, 'gmcp/calendar/event'
|
|
35
|
+
autoload :Calendar, 'gmcp/calendar/calendar'
|
|
36
|
+
autoload :Tools, 'gmcp/calendar/tools'
|
|
37
|
+
end
|
|
38
|
+
|
|
39
|
+
module Drive
|
|
40
|
+
autoload :File, 'gmcp/drive/file'
|
|
41
|
+
autoload :Tools, 'gmcp/drive/tools'
|
|
42
|
+
end
|
|
43
|
+
end
|
metadata
ADDED
|
@@ -0,0 +1,226 @@
|
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
|
2
|
+
name: gmcp
|
|
3
|
+
version: !ruby/object:Gem::Version
|
|
4
|
+
version: 0.5.0
|
|
5
|
+
platform: ruby
|
|
6
|
+
authors:
|
|
7
|
+
- TwilightCoders
|
|
8
|
+
bindir: bin
|
|
9
|
+
cert_chain: []
|
|
10
|
+
date: 1980-01-02 00:00:00.000000000 Z
|
|
11
|
+
dependencies:
|
|
12
|
+
- !ruby/object:Gem::Dependency
|
|
13
|
+
name: mcp
|
|
14
|
+
requirement: !ruby/object:Gem::Requirement
|
|
15
|
+
requirements:
|
|
16
|
+
- - "~>"
|
|
17
|
+
- !ruby/object:Gem::Version
|
|
18
|
+
version: '0.13'
|
|
19
|
+
type: :runtime
|
|
20
|
+
prerelease: false
|
|
21
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
22
|
+
requirements:
|
|
23
|
+
- - "~>"
|
|
24
|
+
- !ruby/object:Gem::Version
|
|
25
|
+
version: '0.13'
|
|
26
|
+
- !ruby/object:Gem::Dependency
|
|
27
|
+
name: him
|
|
28
|
+
requirement: !ruby/object:Gem::Requirement
|
|
29
|
+
requirements:
|
|
30
|
+
- - "~>"
|
|
31
|
+
- !ruby/object:Gem::Version
|
|
32
|
+
version: '0.1'
|
|
33
|
+
type: :runtime
|
|
34
|
+
prerelease: false
|
|
35
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
36
|
+
requirements:
|
|
37
|
+
- - "~>"
|
|
38
|
+
- !ruby/object:Gem::Version
|
|
39
|
+
version: '0.1'
|
|
40
|
+
- !ruby/object:Gem::Dependency
|
|
41
|
+
name: googleauth
|
|
42
|
+
requirement: !ruby/object:Gem::Requirement
|
|
43
|
+
requirements:
|
|
44
|
+
- - "~>"
|
|
45
|
+
- !ruby/object:Gem::Version
|
|
46
|
+
version: '1.16'
|
|
47
|
+
type: :runtime
|
|
48
|
+
prerelease: false
|
|
49
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
50
|
+
requirements:
|
|
51
|
+
- - "~>"
|
|
52
|
+
- !ruby/object:Gem::Version
|
|
53
|
+
version: '1.16'
|
|
54
|
+
- !ruby/object:Gem::Dependency
|
|
55
|
+
name: faraday
|
|
56
|
+
requirement: !ruby/object:Gem::Requirement
|
|
57
|
+
requirements:
|
|
58
|
+
- - "~>"
|
|
59
|
+
- !ruby/object:Gem::Version
|
|
60
|
+
version: '2.0'
|
|
61
|
+
type: :runtime
|
|
62
|
+
prerelease: false
|
|
63
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
64
|
+
requirements:
|
|
65
|
+
- - "~>"
|
|
66
|
+
- !ruby/object:Gem::Version
|
|
67
|
+
version: '2.0'
|
|
68
|
+
- !ruby/object:Gem::Dependency
|
|
69
|
+
name: base64
|
|
70
|
+
requirement: !ruby/object:Gem::Requirement
|
|
71
|
+
requirements:
|
|
72
|
+
- - ">="
|
|
73
|
+
- !ruby/object:Gem::Version
|
|
74
|
+
version: '0'
|
|
75
|
+
type: :runtime
|
|
76
|
+
prerelease: false
|
|
77
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
78
|
+
requirements:
|
|
79
|
+
- - ">="
|
|
80
|
+
- !ruby/object:Gem::Version
|
|
81
|
+
version: '0'
|
|
82
|
+
- !ruby/object:Gem::Dependency
|
|
83
|
+
name: webrick
|
|
84
|
+
requirement: !ruby/object:Gem::Requirement
|
|
85
|
+
requirements:
|
|
86
|
+
- - "~>"
|
|
87
|
+
- !ruby/object:Gem::Version
|
|
88
|
+
version: '1.8'
|
|
89
|
+
type: :runtime
|
|
90
|
+
prerelease: false
|
|
91
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
92
|
+
requirements:
|
|
93
|
+
- - "~>"
|
|
94
|
+
- !ruby/object:Gem::Version
|
|
95
|
+
version: '1.8'
|
|
96
|
+
- !ruby/object:Gem::Dependency
|
|
97
|
+
name: bundler
|
|
98
|
+
requirement: !ruby/object:Gem::Requirement
|
|
99
|
+
requirements:
|
|
100
|
+
- - ">="
|
|
101
|
+
- !ruby/object:Gem::Version
|
|
102
|
+
version: '1.3'
|
|
103
|
+
type: :development
|
|
104
|
+
prerelease: false
|
|
105
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
106
|
+
requirements:
|
|
107
|
+
- - ">="
|
|
108
|
+
- !ruby/object:Gem::Version
|
|
109
|
+
version: '1.3'
|
|
110
|
+
- !ruby/object:Gem::Dependency
|
|
111
|
+
name: rake
|
|
112
|
+
requirement: !ruby/object:Gem::Requirement
|
|
113
|
+
requirements:
|
|
114
|
+
- - "~>"
|
|
115
|
+
- !ruby/object:Gem::Version
|
|
116
|
+
version: '13.0'
|
|
117
|
+
type: :development
|
|
118
|
+
prerelease: false
|
|
119
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
120
|
+
requirements:
|
|
121
|
+
- - "~>"
|
|
122
|
+
- !ruby/object:Gem::Version
|
|
123
|
+
version: '13.0'
|
|
124
|
+
- !ruby/object:Gem::Dependency
|
|
125
|
+
name: rspec
|
|
126
|
+
requirement: !ruby/object:Gem::Requirement
|
|
127
|
+
requirements:
|
|
128
|
+
- - "~>"
|
|
129
|
+
- !ruby/object:Gem::Version
|
|
130
|
+
version: '3.0'
|
|
131
|
+
type: :development
|
|
132
|
+
prerelease: false
|
|
133
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
134
|
+
requirements:
|
|
135
|
+
- - "~>"
|
|
136
|
+
- !ruby/object:Gem::Version
|
|
137
|
+
version: '3.0'
|
|
138
|
+
- !ruby/object:Gem::Dependency
|
|
139
|
+
name: pry-byebug
|
|
140
|
+
requirement: !ruby/object:Gem::Requirement
|
|
141
|
+
requirements:
|
|
142
|
+
- - "~>"
|
|
143
|
+
- !ruby/object:Gem::Version
|
|
144
|
+
version: '3'
|
|
145
|
+
type: :development
|
|
146
|
+
prerelease: false
|
|
147
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
148
|
+
requirements:
|
|
149
|
+
- - "~>"
|
|
150
|
+
- !ruby/object:Gem::Version
|
|
151
|
+
version: '3'
|
|
152
|
+
description: A local stdio MCP server that gives AI assistants scoped access to Gmail,
|
|
153
|
+
Google Calendar, Google Drive and Google Voice across several Google accounts, with
|
|
154
|
+
per-capability grants.
|
|
155
|
+
executables:
|
|
156
|
+
- gmail_survey
|
|
157
|
+
- gmcp
|
|
158
|
+
- gmcp-auth
|
|
159
|
+
extensions: []
|
|
160
|
+
extra_rdoc_files: []
|
|
161
|
+
files:
|
|
162
|
+
- CHANGELOG.md
|
|
163
|
+
- LICENSE.txt
|
|
164
|
+
- README.md
|
|
165
|
+
- bin/gmail_survey
|
|
166
|
+
- bin/gmcp
|
|
167
|
+
- bin/gmcp-auth
|
|
168
|
+
- config/capabilities.yml
|
|
169
|
+
- config/scopes.yml
|
|
170
|
+
- lib/gmcp.rb
|
|
171
|
+
- lib/gmcp/account_registry.rb
|
|
172
|
+
- lib/gmcp/api_binding.rb
|
|
173
|
+
- lib/gmcp/api_error.rb
|
|
174
|
+
- lib/gmcp/apis.rb
|
|
175
|
+
- lib/gmcp/auth.rb
|
|
176
|
+
- lib/gmcp/bearer_middleware.rb
|
|
177
|
+
- lib/gmcp/calendar/calendar.rb
|
|
178
|
+
- lib/gmcp/calendar/event.rb
|
|
179
|
+
- lib/gmcp/calendar/tools.rb
|
|
180
|
+
- lib/gmcp/capabilities.rb
|
|
181
|
+
- lib/gmcp/drive/file.rb
|
|
182
|
+
- lib/gmcp/drive/tools.rb
|
|
183
|
+
- lib/gmcp/gmail/draft.rb
|
|
184
|
+
- lib/gmcp/gmail/label.rb
|
|
185
|
+
- lib/gmcp/gmail/message.rb
|
|
186
|
+
- lib/gmcp/gmail/mime.rb
|
|
187
|
+
- lib/gmcp/gmail/tools.rb
|
|
188
|
+
- lib/gmcp/gmail/unsubscribe.rb
|
|
189
|
+
- lib/gmcp/server.rb
|
|
190
|
+
- lib/gmcp/tool_helpers.rb
|
|
191
|
+
- lib/gmcp/version.rb
|
|
192
|
+
- lib/gmcp/voice.rb
|
|
193
|
+
- lib/gmcp/voice/chrome.rb
|
|
194
|
+
- lib/gmcp/voice/conversation.rb
|
|
195
|
+
- lib/gmcp/voice/folder.rb
|
|
196
|
+
- lib/gmcp/voice/message.rb
|
|
197
|
+
- lib/gmcp/voice/session.rb
|
|
198
|
+
- lib/gmcp/voice/tools.rb
|
|
199
|
+
homepage: https://github.com/TwilightCoders/GMCP
|
|
200
|
+
licenses:
|
|
201
|
+
- MIT
|
|
202
|
+
metadata:
|
|
203
|
+
allowed_push_host: https://rubygems.org
|
|
204
|
+
homepage_uri: https://github.com/TwilightCoders/GMCP
|
|
205
|
+
source_code_uri: https://github.com/TwilightCoders/GMCP
|
|
206
|
+
changelog_uri: https://github.com/TwilightCoders/GMCP/blob/main/CHANGELOG.md
|
|
207
|
+
bug_tracker_uri: https://github.com/TwilightCoders/GMCP/issues
|
|
208
|
+
rubygems_mfa_required: 'true'
|
|
209
|
+
rdoc_options: []
|
|
210
|
+
require_paths:
|
|
211
|
+
- lib
|
|
212
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
|
213
|
+
requirements:
|
|
214
|
+
- - ">="
|
|
215
|
+
- !ruby/object:Gem::Version
|
|
216
|
+
version: '3.1'
|
|
217
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
|
218
|
+
requirements:
|
|
219
|
+
- - ">="
|
|
220
|
+
- !ruby/object:Gem::Version
|
|
221
|
+
version: '0'
|
|
222
|
+
requirements: []
|
|
223
|
+
rubygems_version: 3.6.9
|
|
224
|
+
specification_version: 4
|
|
225
|
+
summary: Local MCP server for Gmail, Google Calendar, Drive and Voice
|
|
226
|
+
test_files: []
|