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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 11a43b1643362801778dbc02b4ec45c3e4cc5bda4dc3b20c191a699c22a67c9d
4
- data.tar.gz: 80b902ab983d1a3c1d3a8483646c861edfb77d5ad8b573a66b60d7a0b82cea33
3
+ metadata.gz: 505743d5f7053fd9d144cfeae3b393939cf017bc2b688bcf387bb38f99638f63
4
+ data.tar.gz: b4da654108c53835f9c930a88c17d3e7ff05f9549bb6af187f27f1ef643cb63b
5
5
  SHA512:
6
- metadata.gz: 5b7aa48fd8fd1c983412221f9cf4c06df4a4bb52bd2c217da9125c39f8ebec27755b830457ce6469ee80bba102935987bd686d53a9bfab92ccae30e9264b67d9
7
- data.tar.gz: 74aa5937731cb5661d7fecd8354617e6548ddb7d09dd951b2d5559ac9eb9005f620cd12f76c7fe883c77d7f06351f4146c9b5a3128474d715e67c4e3c4a12346
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/teglonlabs/mathpix-mcp-server/issues
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/teglonlabs/mathpix-mcp-server/issues (for non-sensitive issues)
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
@@ -2,7 +2,7 @@
2
2
 
3
3
  module Mathpix
4
4
  # Gem version following semantic versioning
5
- VERSION = '0.1.0'
5
+ VERSION = '0.1.1'
6
6
 
7
7
  # Seed for deterministic behavior
8
8
  SEED = 1069
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.0
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: 1980-01-02 00:00:00.000000000 Z
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/teglonlabs/mathpix-mcp-server
257
+ homepage: https://github.com/TeglonLabs/mathpix-gem
255
258
  licenses:
256
259
  - MIT
257
260
  metadata:
258
- homepage_uri: https://github.com/teglonlabs/mathpix-mcp-server
259
- source_code_uri: https://github.com/teglonlabs/mathpix-mcp-server
260
- changelog_uri: https://github.com/teglonlabs/mathpix-mcp-server/blob/main/CHANGELOG.md
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/teglonlabs/mathpix-mcp-server/issues
263
- wiki_uri: https://github.com/teglonlabs/mathpix-mcp-server/wiki
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/teglonlabs/mathpix-mcp-server/blob/main/SECURITY.md
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.7.1
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: []