mathpix 0.1.0 → 0.1.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 +4 -4
- data/CHANGELOG.md +19 -0
- data/README.md +1 -1
- data/SECURITY.md +1 -1
- data/bin/mathpix-mcp +55 -0
- data/lib/mathpix/version.rb +1 -1
- metadata +16 -11
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 505743d5f7053fd9d144cfeae3b393939cf017bc2b688bcf387bb38f99638f63
|
4
|
+
data.tar.gz: b4da654108c53835f9c930a88c17d3e7ff05f9549bb6af187f27f1ef643cb63b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e7dffca4483cc4fc058f45ea1d16426a82acf2323e77507739452b4435e566c61501370a60a64a1e414ff950bcfec50bbb78a886c53e7336ff77cd86e5595ff5
|
7
|
+
data.tar.gz: 3c620adca1e9a1a51d9651706119c5869575cbe961979a6618b1e69d3e5db0b27129d3f31d0c75abadd95243cef9927e2745f7182618788e2c01c99d99b088fd
|
data/CHANGELOG.md
CHANGED
@@ -5,6 +5,25 @@ All notable changes to this project will be documented in this file.
|
|
5
5
|
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
|
6
6
|
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
7
7
|
|
8
|
+
## [0.1.1] - 2025-10-13
|
9
|
+
|
10
|
+
### Added
|
11
|
+
- MCP server executable (`bin/mathpix-mcp`) for Claude Code integration
|
12
|
+
- Comprehensive MCP setup documentation (`MCP_SETUP.md`)
|
13
|
+
- Recovery codes backup documentation with MATHPIX prefix naming convention
|
14
|
+
- GitHub issues created from code TODOs for future enhancements
|
15
|
+
|
16
|
+
### Changed
|
17
|
+
- Recovery code backup files now use MATHPIX prefix for clarity
|
18
|
+
- Updated `.gitignore` to allow MCP_SETUP.md in repository
|
19
|
+
|
20
|
+
### Documentation
|
21
|
+
- Added detailed MCP server installation guide
|
22
|
+
- Documented 9 available MCP tools
|
23
|
+
- Documented 4 available MCP resources
|
24
|
+
- Added troubleshooting section for common MCP issues
|
25
|
+
- Documented secure backup locations for recovery codes
|
26
|
+
|
8
27
|
## [0.1.0] - 2025-10-13
|
9
28
|
|
10
29
|
### Added
|
data/README.md
CHANGED
@@ -163,7 +163,7 @@ MIT License - see [LICENSE](LICENSE) for details.
|
|
163
163
|
|
164
164
|
## Support
|
165
165
|
|
166
|
-
- GitHub Issues: https://github.com/
|
166
|
+
- GitHub Issues: https://github.com/TeglonLabs/mathpix-gem/issues
|
167
167
|
- Email: ies@prototypesf.org
|
168
168
|
|
169
169
|
---
|
data/SECURITY.md
CHANGED
@@ -130,7 +130,7 @@ spec.metadata['rubygems_mfa_required'] = 'true'
|
|
130
130
|
|
131
131
|
For security-related questions or concerns:
|
132
132
|
- Email: ies@prototypesf.org
|
133
|
-
- GitHub Issues: https://github.com/
|
133
|
+
- GitHub Issues: https://github.com/TeglonLabs/mathpix-gem/issues (for non-sensitive issues)
|
134
134
|
|
135
135
|
## Acknowledgments
|
136
136
|
|
data/bin/mathpix-mcp
ADDED
@@ -0,0 +1,55 @@
|
|
1
|
+
#!/usr/bin/env ruby
|
2
|
+
# frozen_string_literal: true
|
3
|
+
|
4
|
+
require 'bundler/setup'
|
5
|
+
require 'mathpix'
|
6
|
+
require 'mathpix/mcp/server'
|
7
|
+
|
8
|
+
# Load environment variables from .env file if present
|
9
|
+
require 'dotenv/load' if defined?(Dotenv)
|
10
|
+
|
11
|
+
# Configure Mathpix from environment
|
12
|
+
Mathpix.configure do |config|
|
13
|
+
config.app_id = ENV['MATHPIX_APP_ID']
|
14
|
+
config.app_key = ENV['MATHPIX_APP_KEY']
|
15
|
+
|
16
|
+
# Optional configuration
|
17
|
+
config.max_file_size_mb = ENV['MATHPIX_MAX_FILE_SIZE_MB']&.to_i || 10
|
18
|
+
config.https_only = ENV['MATHPIX_HTTPS_ONLY'] != 'false'
|
19
|
+
|
20
|
+
# Logging
|
21
|
+
if ENV['MATHPIX_LOG_LEVEL']
|
22
|
+
require 'logger'
|
23
|
+
config.logger = Logger.new($stderr)
|
24
|
+
config.logger.level = Logger.const_get(ENV['MATHPIX_LOG_LEVEL'].upcase)
|
25
|
+
end
|
26
|
+
end
|
27
|
+
|
28
|
+
# Start MCP server
|
29
|
+
begin
|
30
|
+
server = Mathpix::MCP::Server.new
|
31
|
+
|
32
|
+
# Register all tools
|
33
|
+
server.register_tool(Mathpix::MCP::Tools::ConvertImageTool.new)
|
34
|
+
server.register_tool(Mathpix::MCP::Tools::ConvertDocumentTool.new)
|
35
|
+
server.register_tool(Mathpix::MCP::Tools::CheckDocumentStatusTool.new)
|
36
|
+
server.register_tool(Mathpix::MCP::Tools::BatchConvertTool.new)
|
37
|
+
server.register_tool(Mathpix::MCP::Tools::GetAccountInfoTool.new)
|
38
|
+
server.register_tool(Mathpix::MCP::Tools::GetUsageTool.new)
|
39
|
+
server.register_tool(Mathpix::MCP::Tools::ListFormatsTool.new)
|
40
|
+
server.register_tool(Mathpix::MCP::Tools::ConvertStrokesTool.new)
|
41
|
+
server.register_tool(Mathpix::MCP::Tools::SearchResultsTool.new)
|
42
|
+
|
43
|
+
# Register resources
|
44
|
+
server.register_resource(Mathpix::MCP::Resources::FormatsListResource.new)
|
45
|
+
server.register_resource(Mathpix::MCP::Resources::LatestSnipResource.new)
|
46
|
+
server.register_resource(Mathpix::MCP::Resources::RecentSnipsResource.new)
|
47
|
+
server.register_resource(Mathpix::MCP::Resources::SnipStatsResource.new)
|
48
|
+
|
49
|
+
# Start server on stdio
|
50
|
+
server.start
|
51
|
+
rescue StandardError => e
|
52
|
+
warn "Error starting Mathpix MCP server: #{e.message}"
|
53
|
+
warn e.backtrace.join("\n")
|
54
|
+
exit 1
|
55
|
+
end
|
data/lib/mathpix/version.rb
CHANGED
metadata
CHANGED
@@ -1,13 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: mathpix
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Barton Rhodes
|
8
|
+
autorequire:
|
8
9
|
bindir: bin
|
9
10
|
cert_chain: []
|
10
|
-
date:
|
11
|
+
date: 2025-10-14 00:00:00.000000000 Z
|
11
12
|
dependencies:
|
12
13
|
- !ruby/object:Gem::Dependency
|
13
14
|
name: mcp
|
@@ -198,7 +199,8 @@ description: |
|
|
198
199
|
The geodesic path to mathematical OCR in Ruby.
|
199
200
|
email:
|
200
201
|
- ies@prototypesf.org
|
201
|
-
executables:
|
202
|
+
executables:
|
203
|
+
- mathpix-mcp
|
202
204
|
extensions: []
|
203
205
|
extra_rdoc_files: []
|
204
206
|
files:
|
@@ -206,6 +208,7 @@ files:
|
|
206
208
|
- LICENSE
|
207
209
|
- README.md
|
208
210
|
- SECURITY.md
|
211
|
+
- bin/mathpix-mcp
|
209
212
|
- lib/mathpix.rb
|
210
213
|
- lib/mathpix/balanced_ternary.rb
|
211
214
|
- lib/mathpix/batch.rb
|
@@ -251,18 +254,19 @@ files:
|
|
251
254
|
- lib/mathpix/mcp/transports/sse_stream_handler.rb
|
252
255
|
- lib/mathpix/result.rb
|
253
256
|
- lib/mathpix/version.rb
|
254
|
-
homepage: https://github.com/
|
257
|
+
homepage: https://github.com/TeglonLabs/mathpix-gem
|
255
258
|
licenses:
|
256
259
|
- MIT
|
257
260
|
metadata:
|
258
|
-
homepage_uri: https://github.com/
|
259
|
-
source_code_uri: https://github.com/
|
260
|
-
changelog_uri: https://github.com/
|
261
|
+
homepage_uri: https://github.com/TeglonLabs/mathpix-gem
|
262
|
+
source_code_uri: https://github.com/TeglonLabs/mathpix-gem
|
263
|
+
changelog_uri: https://github.com/TeglonLabs/mathpix-gem/blob/master/CHANGELOG.md
|
261
264
|
documentation_uri: https://docs.mathpix.com
|
262
|
-
bug_tracker_uri: https://github.com/
|
263
|
-
wiki_uri: https://github.com/
|
265
|
+
bug_tracker_uri: https://github.com/TeglonLabs/mathpix-gem/issues
|
266
|
+
wiki_uri: https://github.com/TeglonLabs/mathpix-gem/wiki
|
264
267
|
rubygems_mfa_required: 'true'
|
265
|
-
security_policy_uri: https://github.com/
|
268
|
+
security_policy_uri: https://github.com/TeglonLabs/mathpix-gem/blob/master/SECURITY.md
|
269
|
+
post_install_message:
|
266
270
|
rdoc_options: []
|
267
271
|
require_paths:
|
268
272
|
- lib
|
@@ -277,7 +281,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
277
281
|
- !ruby/object:Gem::Version
|
278
282
|
version: '0'
|
279
283
|
requirements: []
|
280
|
-
rubygems_version: 3.
|
284
|
+
rubygems_version: 3.0.3.1
|
285
|
+
signing_key:
|
281
286
|
specification_version: 4
|
282
287
|
summary: Secure Ruby client for Mathpix OCR API with MCP integration
|
283
288
|
test_files: []
|