codal-mcp 0.2.2__tar.gz → 0.2.3__tar.gz

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.
Files changed (34) hide show
  1. {codal_mcp-0.2.2 → codal_mcp-0.2.3}/PKG-INFO +1 -21
  2. {codal_mcp-0.2.2 → codal_mcp-0.2.3}/README.md +0 -20
  3. {codal_mcp-0.2.2 → codal_mcp-0.2.3}/pyproject.toml +1 -1
  4. {codal_mcp-0.2.2 → codal_mcp-0.2.3}/server.json +2 -2
  5. {codal_mcp-0.2.2 → codal_mcp-0.2.3}/uv.lock +1 -1
  6. {codal_mcp-0.2.2 → codal_mcp-0.2.3}/.github/ISSUE_TEMPLATE/bug_report.yml +0 -0
  7. {codal_mcp-0.2.2 → codal_mcp-0.2.3}/.github/ISSUE_TEMPLATE/config.yml +0 -0
  8. {codal_mcp-0.2.2 → codal_mcp-0.2.3}/.github/banner.png +0 -0
  9. {codal_mcp-0.2.2 → codal_mcp-0.2.3}/.github/dependabot.yml +0 -0
  10. {codal_mcp-0.2.2 → codal_mcp-0.2.3}/.github/workflows/ci.yml +0 -0
  11. {codal_mcp-0.2.2 → codal_mcp-0.2.3}/.github/workflows/publish.yml +0 -0
  12. {codal_mcp-0.2.2 → codal_mcp-0.2.3}/.gitignore +0 -0
  13. {codal_mcp-0.2.2 → codal_mcp-0.2.3}/LICENSE +0 -0
  14. {codal_mcp-0.2.2 → codal_mcp-0.2.3}/src/codal_mcp/__init__.py +0 -0
  15. {codal_mcp-0.2.2 → codal_mcp-0.2.3}/src/codal_mcp/codal.py +0 -0
  16. {codal_mcp-0.2.2 → codal_mcp-0.2.3}/src/codal_mcp/http.py +0 -0
  17. {codal_mcp-0.2.2 → codal_mcp-0.2.3}/src/codal_mcp/registry.py +0 -0
  18. {codal_mcp-0.2.2 → codal_mcp-0.2.3}/src/codal_mcp/server.py +0 -0
  19. {codal_mcp-0.2.2 → codal_mcp-0.2.3}/tests/conftest.py +0 -0
  20. {codal_mcp-0.2.2 → codal_mcp-0.2.3}/tests/fixtures/attachment_1618277.html +0 -0
  21. {codal_mcp-0.2.2 → codal_mcp-0.2.3}/tests/fixtures/attachment_1618277_curl.html +0 -0
  22. {codal_mcp-0.2.2 → codal_mcp-0.2.3}/tests/fixtures/categories.json +0 -0
  23. {codal_mcp-0.2.2 → codal_mcp-0.2.3}/tests/fixtures/companies_trim.json +0 -0
  24. {codal_mcp-0.2.2 → codal_mcp-0.2.3}/tests/fixtures/decision_1612323.html +0 -0
  25. {codal_mcp-0.2.2 → codal_mcp-0.2.3}/tests/fixtures/decision_1612323_sheet0.html +0 -0
  26. {codal_mcp-0.2.2 → codal_mcp-0.2.3}/tests/fixtures/decision_1618277.html +0 -0
  27. {codal_mcp-0.2.2 → codal_mcp-0.2.3}/tests/fixtures/decision_captcha_wall.html +0 -0
  28. {codal_mcp-0.2.2 → codal_mcp-0.2.3}/tests/fixtures/financial_years_foolad.json +0 -0
  29. {codal_mcp-0.2.2 → codal_mcp-0.2.3}/tests/fixtures/industry_groups.json +0 -0
  30. {codal_mcp-0.2.2 → codal_mcp-0.2.3}/tests/fixtures/search_foolad.json +0 -0
  31. {codal_mcp-0.2.2 → codal_mcp-0.2.3}/tests/fixtures/search_tracing_1612323.json +0 -0
  32. {codal_mcp-0.2.2 → codal_mcp-0.2.3}/tests/fixtures/search_tracing_1618277.json +0 -0
  33. {codal_mcp-0.2.2 → codal_mcp-0.2.3}/tests/test_codal.py +0 -0
  34. {codal_mcp-0.2.2 → codal_mcp-0.2.3}/tests/test_live_codal.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.5
2
2
  Name: codal-mcp
3
- Version: 0.2.2
3
+ Version: 0.2.3
4
4
  Summary: Unofficial read-only MCP server for codal.ir (کدال): disclosures, letters and financial statements of Iranian listed companies.
5
5
  Project-URL: Homepage, https://github.com/sepehr071/codal-mcp
6
6
  Project-URL: Issues, https://github.com/sepehr071/codal-mcp/issues
@@ -212,26 +212,6 @@ Pass the trading symbol in Persian (`فولاد`, `خودرو`). Dates are Jalal
212
212
 
213
213
  All 5 tools are annotated `readOnlyHint: true`.
214
214
 
215
- ## How it works
216
-
217
- ```text
218
- AI agent (Claude, Cursor, Copilot, ...)
219
- │
220
- │ MCP over stdio
221
- ▼
222
- codal-mcp (runs on your machine)
223
- │
224
- │ HTTPS, one request at a time, at least 2 s apart
225
- ├──────▶ search.codal.ir search API, company list, letter types, fiscal years
226
- └──────▶ www.codal.ir letter pages, sheets, attachment lists
227
- ```
228
-
229
- `codal-mcp` runs locally and calls the same search API and letter pages the codal.ir website uses. It has no hosted
230
- server in between and no API key. Structured reports carry their tables as data inside the letter page; the server
231
- reads that data and returns each row as one line, in the site's column order. Other letters come back as their
232
- visible text. Requests go out through a Chrome-impersonating client, only to `search.codal.ir` and `www.codal.ir`.
233
- It only reads.
234
-
235
215
  ## Good to know
236
216
 
237
217
  - **Rate limit.** codal.ir answers HTTP 429 and shows a captcha after a burst of requests, then blocks the IP for up to an hour. The server sends one request at a time, at least 2 seconds apart, keeps the company list and letter types for 12 hours, letters for an hour and searches for 2 minutes, and never retries a 429. After a 429 it stops calling codal.ir for 60 seconds and tells the agent to wait. It never solves captchas.
@@ -183,26 +183,6 @@ Pass the trading symbol in Persian (`فولاد`, `خودرو`). Dates are Jalal
183
183
 
184
184
  All 5 tools are annotated `readOnlyHint: true`.
185
185
 
186
- ## How it works
187
-
188
- ```text
189
- AI agent (Claude, Cursor, Copilot, ...)
190
- │
191
- │ MCP over stdio
192
- ▼
193
- codal-mcp (runs on your machine)
194
- │
195
- │ HTTPS, one request at a time, at least 2 s apart
196
- ├──────▶ search.codal.ir search API, company list, letter types, fiscal years
197
- └──────▶ www.codal.ir letter pages, sheets, attachment lists
198
- ```
199
-
200
- `codal-mcp` runs locally and calls the same search API and letter pages the codal.ir website uses. It has no hosted
201
- server in between and no API key. Structured reports carry their tables as data inside the letter page; the server
202
- reads that data and returns each row as one line, in the site's column order. Other letters come back as their
203
- visible text. Requests go out through a Chrome-impersonating client, only to `search.codal.ir` and `www.codal.ir`.
204
- It only reads.
205
-
206
186
  ## Good to know
207
187
 
208
188
  - **Rate limit.** codal.ir answers HTTP 429 and shows a captcha after a burst of requests, then blocks the IP for up to an hour. The server sends one request at a time, at least 2 seconds apart, keeps the company list and letter types for 12 hours, letters for an hour and searches for 2 minutes, and never retries a 429. After a 429 it stops calling codal.ir for 60 seconds and tells the agent to wait. It never solves captchas.
@@ -1,6 +1,6 @@
1
1
  [project]
2
2
  name = "codal-mcp"
3
- version = "0.2.2"
3
+ version = "0.2.3"
4
4
  description = "Unofficial read-only MCP server for codal.ir (کدال): disclosures, letters and financial statements of Iranian listed companies."
5
5
  readme = "README.md"
6
6
  license = "PolyForm-Noncommercial-1.0.0"
@@ -8,13 +8,13 @@
8
8
  "source": "github"
9
9
  },
10
10
  "websiteUrl": "https://github.com/sepehr071/codal-mcp",
11
- "version": "0.2.2",
11
+ "version": "0.2.3",
12
12
  "packages": [
13
13
  {
14
14
  "registryType": "pypi",
15
15
  "registryBaseUrl": "https://pypi.org",
16
16
  "identifier": "codal-mcp",
17
- "version": "0.2.2",
17
+ "version": "0.2.3",
18
18
  "runtimeHint": "uvx",
19
19
  "transport": {
20
20
  "type": "stdio"
@@ -171,7 +171,7 @@ wheels = [
171
171
 
172
172
  [[package]]
173
173
  name = "codal-mcp"
174
- version = "0.2.2"
174
+ version = "0.2.3"
175
175
  source = { editable = "." }
176
176
  dependencies = [
177
177
  { name = "curl-cffi" },
File without changes
File without changes
File without changes
File without changes
File without changes