codal-mcp 0.2.1__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 (35) hide show
  1. codal_mcp-0.2.3/LICENSE +80 -0
  2. {codal_mcp-0.2.1 → codal_mcp-0.2.3}/PKG-INFO +9 -25
  3. {codal_mcp-0.2.1 → codal_mcp-0.2.3}/README.md +7 -23
  4. {codal_mcp-0.2.1 → codal_mcp-0.2.3}/pyproject.toml +2 -2
  5. {codal_mcp-0.2.1 → codal_mcp-0.2.3}/server.json +2 -2
  6. {codal_mcp-0.2.1 → codal_mcp-0.2.3}/uv.lock +1 -1
  7. codal_mcp-0.2.1/LICENSE +0 -21
  8. {codal_mcp-0.2.1 → codal_mcp-0.2.3}/.github/ISSUE_TEMPLATE/bug_report.yml +0 -0
  9. {codal_mcp-0.2.1 → codal_mcp-0.2.3}/.github/ISSUE_TEMPLATE/config.yml +0 -0
  10. {codal_mcp-0.2.1 → codal_mcp-0.2.3}/.github/banner.png +0 -0
  11. {codal_mcp-0.2.1 → codal_mcp-0.2.3}/.github/dependabot.yml +0 -0
  12. {codal_mcp-0.2.1 → codal_mcp-0.2.3}/.github/workflows/ci.yml +0 -0
  13. {codal_mcp-0.2.1 → codal_mcp-0.2.3}/.github/workflows/publish.yml +0 -0
  14. {codal_mcp-0.2.1 → codal_mcp-0.2.3}/.gitignore +0 -0
  15. {codal_mcp-0.2.1 → codal_mcp-0.2.3}/src/codal_mcp/__init__.py +0 -0
  16. {codal_mcp-0.2.1 → codal_mcp-0.2.3}/src/codal_mcp/codal.py +0 -0
  17. {codal_mcp-0.2.1 → codal_mcp-0.2.3}/src/codal_mcp/http.py +0 -0
  18. {codal_mcp-0.2.1 → codal_mcp-0.2.3}/src/codal_mcp/registry.py +0 -0
  19. {codal_mcp-0.2.1 → codal_mcp-0.2.3}/src/codal_mcp/server.py +0 -0
  20. {codal_mcp-0.2.1 → codal_mcp-0.2.3}/tests/conftest.py +0 -0
  21. {codal_mcp-0.2.1 → codal_mcp-0.2.3}/tests/fixtures/attachment_1618277.html +0 -0
  22. {codal_mcp-0.2.1 → codal_mcp-0.2.3}/tests/fixtures/attachment_1618277_curl.html +0 -0
  23. {codal_mcp-0.2.1 → codal_mcp-0.2.3}/tests/fixtures/categories.json +0 -0
  24. {codal_mcp-0.2.1 → codal_mcp-0.2.3}/tests/fixtures/companies_trim.json +0 -0
  25. {codal_mcp-0.2.1 → codal_mcp-0.2.3}/tests/fixtures/decision_1612323.html +0 -0
  26. {codal_mcp-0.2.1 → codal_mcp-0.2.3}/tests/fixtures/decision_1612323_sheet0.html +0 -0
  27. {codal_mcp-0.2.1 → codal_mcp-0.2.3}/tests/fixtures/decision_1618277.html +0 -0
  28. {codal_mcp-0.2.1 → codal_mcp-0.2.3}/tests/fixtures/decision_captcha_wall.html +0 -0
  29. {codal_mcp-0.2.1 → codal_mcp-0.2.3}/tests/fixtures/financial_years_foolad.json +0 -0
  30. {codal_mcp-0.2.1 → codal_mcp-0.2.3}/tests/fixtures/industry_groups.json +0 -0
  31. {codal_mcp-0.2.1 → codal_mcp-0.2.3}/tests/fixtures/search_foolad.json +0 -0
  32. {codal_mcp-0.2.1 → codal_mcp-0.2.3}/tests/fixtures/search_tracing_1612323.json +0 -0
  33. {codal_mcp-0.2.1 → codal_mcp-0.2.3}/tests/fixtures/search_tracing_1618277.json +0 -0
  34. {codal_mcp-0.2.1 → codal_mcp-0.2.3}/tests/test_codal.py +0 -0
  35. {codal_mcp-0.2.1 → codal_mcp-0.2.3}/tests/test_live_codal.py +0 -0
@@ -0,0 +1,80 @@
1
+ Required Notice: Copyright (c) 2026 Sepehr Radmard (https://github.com/sepehr071)
2
+
3
+ Free for personal and non-commercial use under the terms below. Commercial use needs a
4
+ separate license: contact Sepehr Radmard at https://www.linkedin.com/in/sepehr-radmard or https://github.com/sepehr071.
5
+
6
+ Versions released before this license change were published under the MIT license and stay under it.
7
+
8
+ # PolyForm Noncommercial License 1.0.0
9
+
10
+ <https://polyformproject.org/licenses/noncommercial/1.0.0>
11
+
12
+ ## Acceptance
13
+
14
+ In order to get any license under these terms, you must agree to them as both strict obligations and conditions to all your licenses.
15
+
16
+ ## Copyright License
17
+
18
+ The licensor grants you a copyright license for the software to do everything you might do with the software that would otherwise infringe the licensor's copyright in it for any permitted purpose. However, you may only distribute the software according to [Distribution License](#distribution-license) and make changes or new works based on the software according to [Changes and New Works License](#changes-and-new-works-license).
19
+
20
+ ## Distribution License
21
+
22
+ The licensor grants you an additional copyright license to distribute copies of the software. Your license to distribute covers distributing the software with changes and new works permitted by [Changes and New Works License](#changes-and-new-works-license).
23
+
24
+ ## Notices
25
+
26
+ You must ensure that anyone who gets a copy of any part of the software from you also gets a copy of these terms or the URL for them above, as well as copies of any plain-text lines beginning with `Required Notice:` that the licensor provided with the software. For example:
27
+
28
+ > Required Notice: Copyright Yoyodyne, Inc. (http://example.com)
29
+
30
+ ## Changes and New Works License
31
+
32
+ The licensor grants you an additional copyright license to make changes and new works based on the software for any permitted purpose.
33
+
34
+ ## Patent License
35
+
36
+ The licensor grants you a patent license for the software that covers patent claims the licensor can license, or becomes able to license, that you would infringe by using the software.
37
+
38
+ ## Noncommercial Purposes
39
+
40
+ Any noncommercial purpose is a permitted purpose.
41
+
42
+ ## Personal Uses
43
+
44
+ Personal use for research, experiment, and testing for the benefit of public knowledge, personal study, private entertainment, hobby projects, amateur pursuits, or religious observance, without any anticipated commercial application, is use for a permitted purpose.
45
+
46
+ ## Noncommercial Organizations
47
+
48
+ Use by any charitable organization, educational institution, public research organization, public safety or health organization, environmental protection organization, or government institution is use for a permitted purpose regardless of the source of funding or obligations resulting from the funding.
49
+
50
+ ## Fair Use
51
+
52
+ You may have "fair use" rights for the software under the law. These terms do not limit them.
53
+
54
+ ## No Other Rights
55
+
56
+ These terms do not allow you to sublicense or transfer any of your licenses to anyone else, or prevent the licensor from granting licenses to anyone else. These terms do not imply any other licenses.
57
+
58
+ ## Patent Defense
59
+
60
+ If you make any written claim that the software infringes or contributes to infringement of any patent, your patent license for the software granted under these terms ends immediately. If your company makes such a claim, your patent license ends immediately for work on behalf of your company.
61
+
62
+ ## Violations
63
+
64
+ The first time you are notified in writing that you have violated any of these terms, or done anything with the software not covered by your licenses, your licenses can nonetheless continue if you come into full compliance with these terms, and take practical steps to correct past violations, within 32 days of receiving notice. Otherwise, all your licenses end immediately.
65
+
66
+ ## No Liability
67
+
68
+ ***As far as the law allows, the software comes as is, without any warranty or condition, and the licensor will not be liable to you for any damages arising out of these terms or the use or nature of the software, under any kind of legal claim.***
69
+
70
+ ## Definitions
71
+
72
+ The **licensor** is the individual or entity offering these terms, and the **software** is the software the licensor makes available under these terms.
73
+
74
+ **You** refers to the individual or entity agreeing to these terms.
75
+
76
+ **Your company** is any legal entity, sole proprietorship, or other kind of organization that you work for, plus all organizations that have control over, are under the control of, or are under common control with that organization. **Control** means ownership of substantially all the assets of an entity, or the power to direct its management and policies by vote, contract, or otherwise. Control can be direct or indirect.
77
+
78
+ **Your licenses** are all the licenses granted to you for the software under these terms.
79
+
80
+ **Use** means anything you do with the software requiring one of your licenses.
@@ -1,12 +1,12 @@
1
1
  Metadata-Version: 2.5
2
2
  Name: codal-mcp
3
- Version: 0.2.1
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
7
7
  Project-URL: Website, https://mcpfarsi.ir/
8
8
  Author-email: Sepehr Radmard <sepehrr80@gmail.com>
9
- License-Expression: MIT
9
+ License-Expression: PolyForm-Noncommercial-1.0.0
10
10
  License-File: LICENSE
11
11
  Keywords: annual-report,bourse,codal,codal-ir,disclosures,eps,financial-statements,iran,listed-companies,mcp,model-context-protocol,persian,tehran-stock-exchange,tse
12
12
  Classifier: Development Status :: 4 - Beta
@@ -44,7 +44,7 @@ codal-mcp is an unofficial, read-only MCP server with 5 tools that turns those l
44
44
  [![Python](https://img.shields.io/pypi/pyversions/codal-mcp)](https://pypi.org/project/codal-mcp/)
45
45
  [![CI](https://github.com/sepehr071/codal-mcp/actions/workflows/ci.yml/badge.svg)](https://github.com/sepehr071/codal-mcp/actions/workflows/ci.yml)
46
46
  [![MCP Registry](https://img.shields.io/badge/MCP_Registry-io.github.sepehr071%2Fcodal--mcp-7c3aed)](https://registry.modelcontextprotocol.io/?q=codal-mcp)
47
- [![License: MIT](https://img.shields.io/badge/license-MIT-16a34a)](https://github.com/sepehr071/codal-mcp/blob/main/LICENSE)
47
+ [![License: PolyForm Noncommercial](https://img.shields.io/badge/license-PolyForm%20Noncommercial-c2410c)](https://github.com/sepehr071/codal-mcp/blob/main/LICENSE)
48
48
 
49
49
  [![Install in VS Code](https://img.shields.io/badge/VS_Code-Install_codal--mcp-0098FF?style=flat-square&logo=visualstudiocode&logoColor=white)](https://vscode.dev/redirect/mcp/install?name=codal&config=%7B%22command%22%3A%22uvx%22%2C%22args%22%3A%5B%22codal-mcp%22%5D%7D)
50
50
 
@@ -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.
@@ -400,6 +380,10 @@ notice. Data is informational. Nothing here is financial advice.
400
380
 
401
381
  Built and maintained by **Sepehr Radmard** (سپهر رادمرد). Connect on [LinkedIn](https://www.linkedin.com/in/sepehr-radmard) or follow [@sepehr071 on GitHub](https://github.com/sepehr071) for more MCP servers for Iranian websites, all listed in [iran-mcp](https://github.com/sepehr071/iran-mcp). If this saves you time, a star on the repo helps other people find it.
402
382
 
403
- ## License
383
+ ## مجوز استفاده (License)
384
+
385
+ <a href="https://www.linkedin.com/in/sepehr-radmard"><img src="https://raw.githubusercontent.com/sepehr071/iran-mcp/main/assets/license-banner.png" alt="استفادهٔ شخصی و غیرتجاری رایگان است؛ برای استفادهٔ تجاری با سپهر رادمرد تماس بگیرید. Free for personal and non-commercial use; commercial use needs a license." width="100%"></a>
386
+
387
+ **استفادهٔ شخصی و غیرتجاری رایگان است.** استفاده در شرکت، محصول پولی یا پروژهٔ مشتری به مجوز تجاری نیاز دارد؛ از راه [لینکدین](https://www.linkedin.com/in/sepehr-radmard) یا [گیت&zwnj;هاب](https://github.com/sepehr071) با سپهر رادمرد تماس بگیرید. متن کامل: [PolyForm Noncommercial 1.0.0](https://github.com/sepehr071/codal-mcp/blob/main/LICENSE). نسخه&zwnj;های پیش از 0.2.2 با مجوز MIT منتشر شده&zwnj;اند و همان مجوز را دارند.
404
388
 
405
- [MIT](https://github.com/sepehr071/codal-mcp/blob/main/LICENSE)
389
+ Free for personal and non-commercial use under the [PolyForm Noncommercial License 1.0.0](https://github.com/sepehr071/codal-mcp/blob/main/LICENSE). Using it in a company, a paid product or a client project needs a commercial license: contact Sepehr Radmard on [LinkedIn](https://www.linkedin.com/in/sepehr-radmard) or [GitHub](https://github.com/sepehr071). Versions before 0.2.2 were released under MIT and stay under it.
@@ -15,7 +15,7 @@ codal-mcp is an unofficial, read-only MCP server with 5 tools that turns those l
15
15
  [![Python](https://img.shields.io/pypi/pyversions/codal-mcp)](https://pypi.org/project/codal-mcp/)
16
16
  [![CI](https://github.com/sepehr071/codal-mcp/actions/workflows/ci.yml/badge.svg)](https://github.com/sepehr071/codal-mcp/actions/workflows/ci.yml)
17
17
  [![MCP Registry](https://img.shields.io/badge/MCP_Registry-io.github.sepehr071%2Fcodal--mcp-7c3aed)](https://registry.modelcontextprotocol.io/?q=codal-mcp)
18
- [![License: MIT](https://img.shields.io/badge/license-MIT-16a34a)](https://github.com/sepehr071/codal-mcp/blob/main/LICENSE)
18
+ [![License: PolyForm Noncommercial](https://img.shields.io/badge/license-PolyForm%20Noncommercial-c2410c)](https://github.com/sepehr071/codal-mcp/blob/main/LICENSE)
19
19
 
20
20
  [![Install in VS Code](https://img.shields.io/badge/VS_Code-Install_codal--mcp-0098FF?style=flat-square&logo=visualstudiocode&logoColor=white)](https://vscode.dev/redirect/mcp/install?name=codal&config=%7B%22command%22%3A%22uvx%22%2C%22args%22%3A%5B%22codal-mcp%22%5D%7D)
21
21
 
@@ -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.
@@ -371,6 +351,10 @@ notice. Data is informational. Nothing here is financial advice.
371
351
 
372
352
  Built and maintained by **Sepehr Radmard** (سپهر رادمرد). Connect on [LinkedIn](https://www.linkedin.com/in/sepehr-radmard) or follow [@sepehr071 on GitHub](https://github.com/sepehr071) for more MCP servers for Iranian websites, all listed in [iran-mcp](https://github.com/sepehr071/iran-mcp). If this saves you time, a star on the repo helps other people find it.
373
353
 
374
- ## License
354
+ ## مجوز استفاده (License)
355
+
356
+ <a href="https://www.linkedin.com/in/sepehr-radmard"><img src="https://raw.githubusercontent.com/sepehr071/iran-mcp/main/assets/license-banner.png" alt="استفادهٔ شخصی و غیرتجاری رایگان است؛ برای استفادهٔ تجاری با سپهر رادمرد تماس بگیرید. Free for personal and non-commercial use; commercial use needs a license." width="100%"></a>
357
+
358
+ **استفادهٔ شخصی و غیرتجاری رایگان است.** استفاده در شرکت، محصول پولی یا پروژهٔ مشتری به مجوز تجاری نیاز دارد؛ از راه [لینکدین](https://www.linkedin.com/in/sepehr-radmard) یا [گیت&zwnj;هاب](https://github.com/sepehr071) با سپهر رادمرد تماس بگیرید. متن کامل: [PolyForm Noncommercial 1.0.0](https://github.com/sepehr071/codal-mcp/blob/main/LICENSE). نسخه&zwnj;های پیش از 0.2.2 با مجوز MIT منتشر شده&zwnj;اند و همان مجوز را دارند.
375
359
 
376
- [MIT](https://github.com/sepehr071/codal-mcp/blob/main/LICENSE)
360
+ Free for personal and non-commercial use under the [PolyForm Noncommercial License 1.0.0](https://github.com/sepehr071/codal-mcp/blob/main/LICENSE). Using it in a company, a paid product or a client project needs a commercial license: contact Sepehr Radmard on [LinkedIn](https://www.linkedin.com/in/sepehr-radmard) or [GitHub](https://github.com/sepehr071). Versions before 0.2.2 were released under MIT and stay under it.
@@ -1,9 +1,9 @@
1
1
  [project]
2
2
  name = "codal-mcp"
3
- version = "0.2.1"
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
- license = "MIT"
6
+ license = "PolyForm-Noncommercial-1.0.0"
7
7
  license-files = ["LICENSE"]
8
8
  authors = [{ name = "Sepehr Radmard", email = "sepehrr80@gmail.com" }]
9
9
  requires-python = ">=3.10"
@@ -8,13 +8,13 @@
8
8
  "source": "github"
9
9
  },
10
10
  "websiteUrl": "https://github.com/sepehr071/codal-mcp",
11
- "version": "0.2.1",
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.1",
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.1"
174
+ version = "0.2.3"
175
175
  source = { editable = "." }
176
176
  dependencies = [
177
177
  { name = "curl-cffi" },
codal_mcp-0.2.1/LICENSE DELETED
@@ -1,21 +0,0 @@
1
- MIT License
2
-
3
- Copyright (c) 2026 Sepehr Radmard
4
-
5
- Permission is hereby granted, free of charge, to any person obtaining a copy
6
- of this software and associated documentation files (the "Software"), to deal
7
- in the Software without restriction, including without limitation the rights
8
- to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
- copies of the Software, and to permit persons to whom the Software is
10
- furnished to do so, subject to the following conditions:
11
-
12
- The above copyright notice and this permission notice shall be included in all
13
- copies or substantial portions of the Software.
14
-
15
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
- AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
- LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
- OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
- SOFTWARE.
File without changes
File without changes
File without changes
File without changes