@ansvar/india-law-mcp 1.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.
- package/LICENSE +190 -0
- package/README.md +404 -0
- package/data/database.db +0 -0
- package/dist/capabilities.d.ts +16 -0
- package/dist/capabilities.d.ts.map +1 -0
- package/dist/capabilities.js +45 -0
- package/dist/capabilities.js.map +1 -0
- package/dist/citation/formatter.d.ts +11 -0
- package/dist/citation/formatter.d.ts.map +1 -0
- package/dist/citation/formatter.js +35 -0
- package/dist/citation/formatter.js.map +1 -0
- package/dist/citation/parser.d.ts +12 -0
- package/dist/citation/parser.d.ts.map +1 -0
- package/dist/citation/parser.js +69 -0
- package/dist/citation/parser.js.map +1 -0
- package/dist/citation/validator.d.ts +10 -0
- package/dist/citation/validator.d.ts.map +1 -0
- package/dist/citation/validator.js +74 -0
- package/dist/citation/validator.js.map +1 -0
- package/dist/index.d.ts +8 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +83 -0
- package/dist/index.js.map +1 -0
- package/dist/tools/about.d.ts +35 -0
- package/dist/tools/about.d.ts.map +1 -0
- package/dist/tools/about.js +51 -0
- package/dist/tools/about.js.map +1 -0
- package/dist/tools/build-legal-stance.d.ts +29 -0
- package/dist/tools/build-legal-stance.d.ts.map +1 -0
- package/dist/tools/build-legal-stance.js +54 -0
- package/dist/tools/build-legal-stance.js.map +1 -0
- package/dist/tools/check-currency.d.ts +23 -0
- package/dist/tools/check-currency.d.ts.map +1 -0
- package/dist/tools/check-currency.js +49 -0
- package/dist/tools/check-currency.js.map +1 -0
- package/dist/tools/format-citation.d.ts +18 -0
- package/dist/tools/format-citation.d.ts.map +1 -0
- package/dist/tools/format-citation.js +38 -0
- package/dist/tools/format-citation.js.map +1 -0
- package/dist/tools/get-eu-basis.d.ts +26 -0
- package/dist/tools/get-eu-basis.d.ts.map +1 -0
- package/dist/tools/get-eu-basis.js +69 -0
- package/dist/tools/get-eu-basis.js.map +1 -0
- package/dist/tools/get-indian-implementations.d.ts +25 -0
- package/dist/tools/get-indian-implementations.d.ts.map +1 -0
- package/dist/tools/get-indian-implementations.js +48 -0
- package/dist/tools/get-indian-implementations.js.map +1 -0
- package/dist/tools/get-provision-eu-basis.d.ts +18 -0
- package/dist/tools/get-provision-eu-basis.d.ts.map +1 -0
- package/dist/tools/get-provision-eu-basis.js +55 -0
- package/dist/tools/get-provision-eu-basis.js.map +1 -0
- package/dist/tools/get-provision.d.ts +28 -0
- package/dist/tools/get-provision.d.ts.map +1 -0
- package/dist/tools/get-provision.js +74 -0
- package/dist/tools/get-provision.js.map +1 -0
- package/dist/tools/list-sources.d.ts +29 -0
- package/dist/tools/list-sources.d.ts.map +1 -0
- package/dist/tools/list-sources.js +78 -0
- package/dist/tools/list-sources.js.map +1 -0
- package/dist/tools/registry.d.ts +13 -0
- package/dist/tools/registry.d.ts.map +1 -0
- package/dist/tools/registry.js +398 -0
- package/dist/tools/registry.js.map +1 -0
- package/dist/tools/search-eu-implementations.d.ts +32 -0
- package/dist/tools/search-eu-implementations.d.ts.map +1 -0
- package/dist/tools/search-eu-implementations.js +63 -0
- package/dist/tools/search-eu-implementations.js.map +1 -0
- package/dist/tools/search-legislation.d.ts +24 -0
- package/dist/tools/search-legislation.d.ts.map +1 -0
- package/dist/tools/search-legislation.js +60 -0
- package/dist/tools/search-legislation.js.map +1 -0
- package/dist/tools/validate-citation.d.ts +20 -0
- package/dist/tools/validate-citation.d.ts.map +1 -0
- package/dist/tools/validate-citation.js +37 -0
- package/dist/tools/validate-citation.js.map +1 -0
- package/dist/tools/validate-eu-compliance.d.ts +20 -0
- package/dist/tools/validate-eu-compliance.d.ts.map +1 -0
- package/dist/tools/validate-eu-compliance.js +63 -0
- package/dist/tools/validate-eu-compliance.js.map +1 -0
- package/dist/types/citations.d.ts +21 -0
- package/dist/types/citations.d.ts.map +1 -0
- package/dist/types/citations.js +2 -0
- package/dist/types/citations.js.map +1 -0
- package/dist/types/documents.d.ts +16 -0
- package/dist/types/documents.d.ts.map +1 -0
- package/dist/types/documents.js +2 -0
- package/dist/types/documents.js.map +1 -0
- package/dist/types/eu-references.d.ts +54 -0
- package/dist/types/eu-references.d.ts.map +1 -0
- package/dist/types/eu-references.js +2 -0
- package/dist/types/eu-references.js.map +1 -0
- package/dist/types/index.d.ts +5 -0
- package/dist/types/index.d.ts.map +1 -0
- package/dist/types/index.js +2 -0
- package/dist/types/index.js.map +1 -0
- package/dist/types/provisions.d.ts +18 -0
- package/dist/types/provisions.d.ts.map +1 -0
- package/dist/types/provisions.js +2 -0
- package/dist/types/provisions.js.map +1 -0
- package/dist/utils/as-of-date.d.ts +2 -0
- package/dist/utils/as-of-date.d.ts.map +1 -0
- package/dist/utils/as-of-date.js +23 -0
- package/dist/utils/as-of-date.js.map +1 -0
- package/dist/utils/fts-query.d.ts +13 -0
- package/dist/utils/fts-query.d.ts.map +1 -0
- package/dist/utils/fts-query.js +56 -0
- package/dist/utils/fts-query.js.map +1 -0
- package/dist/utils/metadata.d.ts +15 -0
- package/dist/utils/metadata.d.ts.map +1 -0
- package/dist/utils/metadata.js +29 -0
- package/dist/utils/metadata.js.map +1 -0
- package/dist/utils/statute-id.d.ts +13 -0
- package/dist/utils/statute-id.d.ts.map +1 -0
- package/dist/utils/statute-id.js +69 -0
- package/dist/utils/statute-id.js.map +1 -0
- package/package.json +82 -0
package/LICENSE
ADDED
|
@@ -0,0 +1,190 @@
|
|
|
1
|
+
Apache License
|
|
2
|
+
Version 2.0, January 2004
|
|
3
|
+
http://www.apache.org/licenses/
|
|
4
|
+
|
|
5
|
+
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
|
6
|
+
|
|
7
|
+
1. Definitions.
|
|
8
|
+
|
|
9
|
+
"License" shall mean the terms and conditions for use, reproduction,
|
|
10
|
+
and distribution as defined by Sections 1 through 9 of this document.
|
|
11
|
+
|
|
12
|
+
"Licensor" shall mean the copyright owner or entity authorized by
|
|
13
|
+
the copyright owner that is granting the License.
|
|
14
|
+
|
|
15
|
+
"Legal Entity" shall mean the union of the acting entity and all
|
|
16
|
+
other entities that control, are controlled by, or are under common
|
|
17
|
+
control with that entity. For the purposes of this definition,
|
|
18
|
+
"control" means (i) the power, direct or indirect, to cause the
|
|
19
|
+
direction or management of such entity, whether by contract or
|
|
20
|
+
otherwise, or (ii) ownership of fifty percent (50%) or more of the
|
|
21
|
+
outstanding shares, or (iii) beneficial ownership of such entity.
|
|
22
|
+
|
|
23
|
+
"You" (or "Your") shall mean an individual or Legal Entity
|
|
24
|
+
exercising permissions granted by this License.
|
|
25
|
+
|
|
26
|
+
"Source" form shall mean the preferred form for making modifications,
|
|
27
|
+
including but not limited to software source code, documentation
|
|
28
|
+
source, and configuration files.
|
|
29
|
+
|
|
30
|
+
"Object" form shall mean any form resulting from mechanical
|
|
31
|
+
transformation or translation of a Source form, including but
|
|
32
|
+
not limited to compiled object code, generated documentation,
|
|
33
|
+
and conversions to other media types.
|
|
34
|
+
|
|
35
|
+
"Work" shall mean the work of authorship, whether in Source or
|
|
36
|
+
Object form, made available under the License, as indicated by a
|
|
37
|
+
copyright notice that is included in or attached to the work
|
|
38
|
+
(an example is provided in the Appendix below).
|
|
39
|
+
|
|
40
|
+
"Derivative Works" shall mean any work, whether in Source or Object
|
|
41
|
+
form, that is based on (or derived from) the Work and for which the
|
|
42
|
+
editorial revisions, annotations, elaborations, or other modifications
|
|
43
|
+
represent, as a whole, an original work of authorship. For the purposes
|
|
44
|
+
of this License, Derivative Works shall not include works that remain
|
|
45
|
+
separable from, or merely link (or bind by name) to the interfaces of,
|
|
46
|
+
the Work and Derivative Works thereof.
|
|
47
|
+
|
|
48
|
+
"Contribution" shall mean any work of authorship, including
|
|
49
|
+
the original version of the Work and any modifications or additions
|
|
50
|
+
to that Work or Derivative Works thereof, that is intentionally
|
|
51
|
+
submitted to the Licensor for inclusion in the Work by the copyright owner
|
|
52
|
+
or by an individual or Legal Entity authorized to submit on behalf of
|
|
53
|
+
the copyright owner. For the purposes of this definition, "submitted"
|
|
54
|
+
means any form of electronic, verbal, or written communication sent
|
|
55
|
+
to the Licensor or its representatives, including but not limited to
|
|
56
|
+
communication on electronic mailing lists, source code control systems,
|
|
57
|
+
and issue tracking systems that are managed by, or on behalf of, the
|
|
58
|
+
Licensor for the purpose of discussing and improving the Work, but
|
|
59
|
+
excluding communication that is conspicuously marked or otherwise
|
|
60
|
+
designated in writing by the copyright owner as "Not a Contribution."
|
|
61
|
+
|
|
62
|
+
"Contributor" shall mean Licensor and any individual or Legal Entity
|
|
63
|
+
on behalf of whom a Contribution has been received by Licensor and
|
|
64
|
+
subsequently incorporated within the Work.
|
|
65
|
+
|
|
66
|
+
2. Grant of Copyright License. Subject to the terms and conditions of
|
|
67
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
68
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
69
|
+
copyright license to reproduce, prepare Derivative Works of,
|
|
70
|
+
publicly display, publicly perform, sublicense, and distribute the
|
|
71
|
+
Work and such Derivative Works in Source or Object form.
|
|
72
|
+
|
|
73
|
+
3. Grant of Patent License. Subject to the terms and conditions of
|
|
74
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
75
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
76
|
+
(except as stated in this section) patent license to make, have made,
|
|
77
|
+
use, offer to sell, sell, import, and otherwise transfer the Work,
|
|
78
|
+
where such license applies only to those patent claims licensable
|
|
79
|
+
by such Contributor that are necessarily infringed by their
|
|
80
|
+
Contribution(s) alone or by combination of their Contribution(s)
|
|
81
|
+
with the Work to which such Contribution(s) was submitted. If You
|
|
82
|
+
institute patent litigation against any entity (including a
|
|
83
|
+
cross-claim or counterclaim in a lawsuit) alleging that the Work
|
|
84
|
+
or a Contribution incorporated within the Work constitutes direct
|
|
85
|
+
or contributory patent infringement, then any patent licenses
|
|
86
|
+
granted to You under this License for that Work shall terminate
|
|
87
|
+
as of the date such litigation is filed.
|
|
88
|
+
|
|
89
|
+
4. Redistribution. You may reproduce and distribute copies of the
|
|
90
|
+
Work or Derivative Works thereof in any medium, with or without
|
|
91
|
+
modifications, and in Source or Object form, provided that You
|
|
92
|
+
meet the following conditions:
|
|
93
|
+
|
|
94
|
+
(a) You must give any other recipients of the Work or
|
|
95
|
+
Derivative Works a copy of this License; and
|
|
96
|
+
|
|
97
|
+
(b) You must cause any modified files to carry prominent notices
|
|
98
|
+
stating that You changed the files; and
|
|
99
|
+
|
|
100
|
+
(c) You must retain, in the Source form of any Derivative Works
|
|
101
|
+
that You distribute, all copyright, patent, trademark, and
|
|
102
|
+
attribution notices from the Source form of the Work,
|
|
103
|
+
excluding those notices that do not pertain to any part of
|
|
104
|
+
the Derivative Works; and
|
|
105
|
+
|
|
106
|
+
(d) If the Work includes a "NOTICE" text file as part of its
|
|
107
|
+
distribution, then any Derivative Works that You distribute must
|
|
108
|
+
include a readable copy of the attribution notices contained
|
|
109
|
+
within such NOTICE file, excluding those notices that do not
|
|
110
|
+
pertain to any part of the Derivative Works, in at least one
|
|
111
|
+
of the following places: within a NOTICE text file distributed
|
|
112
|
+
as part of the Derivative Works; within the Source form or
|
|
113
|
+
documentation, if provided along with the Derivative Works; or,
|
|
114
|
+
within a display generated by the Derivative Works, if and
|
|
115
|
+
wherever such third-party notices normally appear. The contents
|
|
116
|
+
of the NOTICE file are for informational purposes only and
|
|
117
|
+
do not modify the License. You may add Your own attribution
|
|
118
|
+
notices within Derivative Works that You distribute, alongside
|
|
119
|
+
or as an addendum to the NOTICE text from the Work, provided
|
|
120
|
+
that such additional attribution notices cannot be construed
|
|
121
|
+
as modifying the License.
|
|
122
|
+
|
|
123
|
+
You may add Your own copyright statement to Your modifications and
|
|
124
|
+
may provide additional or different license terms and conditions
|
|
125
|
+
for use, reproduction, or distribution of Your modifications, or
|
|
126
|
+
for any such Derivative Works as a whole, provided Your use,
|
|
127
|
+
reproduction, and distribution of the Work otherwise complies with
|
|
128
|
+
the conditions stated in this License.
|
|
129
|
+
|
|
130
|
+
5. Submission of Contributions. Unless You explicitly state otherwise,
|
|
131
|
+
any Contribution intentionally submitted for inclusion in the Work
|
|
132
|
+
by You to the Licensor shall be under the terms and conditions of
|
|
133
|
+
this License, without any additional terms or conditions.
|
|
134
|
+
Notwithstanding the above, nothing herein shall supersede or modify
|
|
135
|
+
the terms of any separate license agreement you may have executed
|
|
136
|
+
with Licensor regarding such Contributions.
|
|
137
|
+
|
|
138
|
+
6. Trademarks. This License does not grant permission to use the trade
|
|
139
|
+
names, trademarks, service marks, or product names of the Licensor,
|
|
140
|
+
except as required for reasonable and customary use in describing the
|
|
141
|
+
origin of the Work and reproducing the content of the NOTICE file.
|
|
142
|
+
|
|
143
|
+
7. Disclaimer of Warranty. Unless required by applicable law or
|
|
144
|
+
agreed to in writing, Licensor provides the Work (and each
|
|
145
|
+
Contributor provides its Contributions) on an "AS IS" BASIS,
|
|
146
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
|
147
|
+
implied, including, without limitation, any warranties or conditions
|
|
148
|
+
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
|
|
149
|
+
PARTICULAR PURPOSE. You are solely responsible for determining the
|
|
150
|
+
appropriateness of using or redistributing the Work and assume any
|
|
151
|
+
risks associated with Your exercise of permissions under this License.
|
|
152
|
+
|
|
153
|
+
8. Limitation of Liability. In no event and under no legal theory,
|
|
154
|
+
whether in tort (including negligence), contract, or otherwise,
|
|
155
|
+
unless required by applicable law (such as deliberate and grossly
|
|
156
|
+
negligent acts) or agreed to in writing, shall any Contributor be
|
|
157
|
+
liable to You for damages, including any direct, indirect, special,
|
|
158
|
+
incidental, or consequential damages of any character arising as a
|
|
159
|
+
result of this License or out of the use or inability to use the
|
|
160
|
+
Work (including but not limited to damages for loss of goodwill,
|
|
161
|
+
work stoppage, computer failure or malfunction, or any and all
|
|
162
|
+
other commercial damages or losses), even if such Contributor
|
|
163
|
+
has been advised of the possibility of such damages.
|
|
164
|
+
|
|
165
|
+
9. Accepting Warranty or Additional Liability. While redistributing
|
|
166
|
+
the Work or Derivative Works thereof, You may choose to offer,
|
|
167
|
+
and charge a fee for, acceptance of support, warranty, indemnity,
|
|
168
|
+
or other liability obligations and/or rights consistent with this
|
|
169
|
+
License. However, in accepting such obligations, You may act only
|
|
170
|
+
on Your own behalf and on Your sole responsibility, not on behalf
|
|
171
|
+
of any other Contributor, and only if You agree to indemnify,
|
|
172
|
+
defend, and hold each Contributor harmless for any liability
|
|
173
|
+
incurred by, or claims asserted against, such Contributor by reason
|
|
174
|
+
of your accepting any such warranty or additional liability.
|
|
175
|
+
|
|
176
|
+
END OF TERMS AND CONDITIONS
|
|
177
|
+
|
|
178
|
+
Copyright 2026 Ansvar Systems AB
|
|
179
|
+
|
|
180
|
+
Licensed under the Apache License, Version 2.0 (the "License");
|
|
181
|
+
you may not use this file except in compliance with the License.
|
|
182
|
+
You may obtain a copy of the License at
|
|
183
|
+
|
|
184
|
+
http://www.apache.org/licenses/LICENSE-2.0
|
|
185
|
+
|
|
186
|
+
Unless required by applicable law or agreed to in writing, software
|
|
187
|
+
distributed under the License is distributed on an "AS IS" BASIS,
|
|
188
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
189
|
+
See the License for the specific language governing permissions and
|
|
190
|
+
limitations under the License.
|
package/README.md
ADDED
|
@@ -0,0 +1,404 @@
|
|
|
1
|
+
# Indian Law MCP Server
|
|
2
|
+
|
|
3
|
+
**The India Code alternative for the AI age.**
|
|
4
|
+
|
|
5
|
+
[](https://www.npmjs.com/package/@ansvar/india-law-mcp)
|
|
6
|
+
[](https://registry.modelcontextprotocol.io)
|
|
7
|
+
[](https://opensource.org/licenses/Apache-2.0)
|
|
8
|
+
[](https://github.com/Ansvar-Systems/India-law-mcp)
|
|
9
|
+
[](https://github.com/Ansvar-Systems/India-law-mcp/actions/workflows/ci.yml)
|
|
10
|
+
|
|
11
|
+
Query **Indian legislation** -- covering data protection, cybersecurity, corporate law, and more -- directly from Claude, Cursor, or any MCP-compatible client.
|
|
12
|
+
|
|
13
|
+
If you're building legal tech, compliance tools, or doing Indian legal research, this is your verified reference database.
|
|
14
|
+
|
|
15
|
+
Built by [Ansvar Systems](https://ansvar.eu) -- Stockholm, Sweden
|
|
16
|
+
|
|
17
|
+
---
|
|
18
|
+
|
|
19
|
+
## Why This Exists
|
|
20
|
+
|
|
21
|
+
Indian legal research is scattered across official government databases, commercial legal platforms, and institutional archives. Whether you're:
|
|
22
|
+
- A **lawyer** validating citations in a brief or contract
|
|
23
|
+
- A **compliance officer** checking if a statute is still in force
|
|
24
|
+
- A **legal tech developer** building tools on Indian law
|
|
25
|
+
- A **researcher** tracing legislative history
|
|
26
|
+
|
|
27
|
+
...you shouldn't need dozens of browser tabs and manual PDF cross-referencing. Ask Claude. Get the exact provision. With context.
|
|
28
|
+
|
|
29
|
+
This MCP server makes Indian law **searchable, cross-referenceable, and AI-readable**.
|
|
30
|
+
|
|
31
|
+
---
|
|
32
|
+
|
|
33
|
+
## Quick Start
|
|
34
|
+
|
|
35
|
+
### Use Remotely (No Install Needed)
|
|
36
|
+
|
|
37
|
+
> Connect directly to the hosted version -- zero dependencies, nothing to install.
|
|
38
|
+
|
|
39
|
+
**Endpoint:** `https://india-law-mcp.vercel.app/mcp`
|
|
40
|
+
|
|
41
|
+
| Client | How to Connect |
|
|
42
|
+
|--------|---------------|
|
|
43
|
+
| **Claude.ai** | Settings > Connectors > Add Integration > paste URL |
|
|
44
|
+
| **Claude Code** | `claude mcp add india-law --transport http https://india-law-mcp.vercel.app/mcp` |
|
|
45
|
+
| **Claude Desktop** | Add to config (see below) |
|
|
46
|
+
| **GitHub Copilot** | Add to VS Code settings (see below) |
|
|
47
|
+
|
|
48
|
+
**Claude Desktop** -- add to `claude_desktop_config.json`:
|
|
49
|
+
|
|
50
|
+
```json
|
|
51
|
+
{
|
|
52
|
+
"mcpServers": {
|
|
53
|
+
"india-law": {
|
|
54
|
+
"type": "url",
|
|
55
|
+
"url": "https://india-law-mcp.vercel.app/mcp"
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
```
|
|
60
|
+
|
|
61
|
+
**GitHub Copilot** -- add to VS Code `settings.json`:
|
|
62
|
+
|
|
63
|
+
```json
|
|
64
|
+
{
|
|
65
|
+
"github.copilot.chat.mcp.servers": {
|
|
66
|
+
"india-law": {
|
|
67
|
+
"type": "http",
|
|
68
|
+
"url": "https://india-law-mcp.vercel.app/mcp"
|
|
69
|
+
}
|
|
70
|
+
}
|
|
71
|
+
}
|
|
72
|
+
```
|
|
73
|
+
|
|
74
|
+
### Use Locally (npm)
|
|
75
|
+
|
|
76
|
+
```bash
|
|
77
|
+
npx @ansvar/india-law-mcp
|
|
78
|
+
```
|
|
79
|
+
|
|
80
|
+
**Claude Desktop** -- add to `claude_desktop_config.json`:
|
|
81
|
+
|
|
82
|
+
**macOS:** `~/Library/Application Support/Claude/claude_desktop_config.json`
|
|
83
|
+
**Windows:** `%APPDATA%\Claude\claude_desktop_config.json`
|
|
84
|
+
|
|
85
|
+
```json
|
|
86
|
+
{
|
|
87
|
+
"mcpServers": {
|
|
88
|
+
"india-law": {
|
|
89
|
+
"command": "npx",
|
|
90
|
+
"args": ["-y", "@ansvar/india-law-mcp"]
|
|
91
|
+
}
|
|
92
|
+
}
|
|
93
|
+
}
|
|
94
|
+
```
|
|
95
|
+
|
|
96
|
+
**Cursor / VS Code:**
|
|
97
|
+
|
|
98
|
+
```json
|
|
99
|
+
{
|
|
100
|
+
"mcp.servers": {
|
|
101
|
+
"india-law": {
|
|
102
|
+
"command": "npx",
|
|
103
|
+
"args": ["-y", "@ansvar/india-law-mcp"]
|
|
104
|
+
}
|
|
105
|
+
}
|
|
106
|
+
}
|
|
107
|
+
```
|
|
108
|
+
|
|
109
|
+
---
|
|
110
|
+
|
|
111
|
+
## Example Queries
|
|
112
|
+
|
|
113
|
+
Once connected, just ask naturally:
|
|
114
|
+
|
|
115
|
+
- *"What does the Indian data protection law say about consent?"*
|
|
116
|
+
- *"Search for cybersecurity requirements in Indian legislation"*
|
|
117
|
+
- *"Is this statute still in force?"*
|
|
118
|
+
- *"Find provisions about personal data in Indian law"*
|
|
119
|
+
- *"What EU directives does this Indian law implement?"*
|
|
120
|
+
- *"Which Indian laws implement the GDPR?"*
|
|
121
|
+
- *"Validate this legal citation"*
|
|
122
|
+
- *"Build a legal stance on data breach notification requirements"*
|
|
123
|
+
|
|
124
|
+
---
|
|
125
|
+
|
|
126
|
+
## Laws Covered
|
|
127
|
+
|
|
128
|
+
| Law | Year | Key Topic |
|
|
129
|
+
|-----|------|-----------|
|
|
130
|
+
| **Digital Personal Data Protection Act (DPDPA)** | 2023 | India's comprehensive data protection law |
|
|
131
|
+
| **Information Technology Act** | 2000 (amended 2008) | Cybercrime, intermediary liability, electronic records |
|
|
132
|
+
| **IT (SPDI) Rules** | 2011 | Sensitive personal data protection for body corporates |
|
|
133
|
+
| **IT (Intermediary Guidelines) Rules** | 2021 | Platform obligations, content moderation, grievance redressal |
|
|
134
|
+
| **Companies Act** | 2013 | Corporate governance, director duties, compliance |
|
|
135
|
+
| **Consumer Protection Act** | 2019 | Consumer rights, e-commerce, unfair trade practices |
|
|
136
|
+
| **Aadhaar Act** | 2016 | Biometric identity system, authentication, data protection |
|
|
137
|
+
| **Constitution (selected provisions)** | 1950 (amended) | Fundamental rights, Article 21 (right to privacy) |
|
|
138
|
+
|
|
139
|
+
Additionally includes key subordinate legislation and directions:
|
|
140
|
+
|
|
141
|
+
- CERT-In Directions (April 2022) — 6-hour mandatory incident reporting
|
|
142
|
+
- DPDPA Rules (as notified)
|
|
143
|
+
- Network Data Security Management rules
|
|
144
|
+
|
|
145
|
+
---
|
|
146
|
+
|
|
147
|
+
## Deployment Tiers
|
|
148
|
+
|
|
149
|
+
| Tier | Content | Database Size | Platform |
|
|
150
|
+
|------|---------|---------------|----------|
|
|
151
|
+
| **Free** | All Central Acts + IT Rules + CERT-In directions + EU cross-references | ~100-200 MB | Vercel (bundled) or local |
|
|
152
|
+
| **Professional** | + State Acts + Supreme Court landmark judgments + regulatory guidance + full subordinate legislation | ~500 MB-1 GB | Azure Container Apps / Docker / local |
|
|
153
|
+
|
|
154
|
+
### Deployment Strategy: MEDIUM - Dual Tier, Bundled Free
|
|
155
|
+
|
|
156
|
+
The free-tier database containing Central Acts and key subordinate legislation is estimated at 100-200 MB, within the Vercel 250 MB bundle limit. The free-tier database is bundled directly with the Vercel deployment. The professional tier with Supreme Court judgments and expanded subordinate legislation requires local Docker or Azure Container Apps deployment.
|
|
157
|
+
|
|
158
|
+
### Capability Detection
|
|
159
|
+
|
|
160
|
+
Both tiers use the same codebase. At startup, the server detects available SQLite tables and gates tools accordingly:
|
|
161
|
+
|
|
162
|
+
```
|
|
163
|
+
Free tier: core_legislation, eu_references, cert_in_directions
|
|
164
|
+
Professional: core_legislation, eu_references, cert_in_directions, supreme_court_judgments, state_acts, subordinate_legislation
|
|
165
|
+
```
|
|
166
|
+
|
|
167
|
+
Tools that require professional capabilities return an upgrade message on the free tier.
|
|
168
|
+
|
|
169
|
+
---
|
|
170
|
+
|
|
171
|
+
## Database Size Estimates
|
|
172
|
+
|
|
173
|
+
| Component | Estimated Size | Notes |
|
|
174
|
+
|-----------|---------------|-------|
|
|
175
|
+
| Central Acts (Parliament) | ~40-60 MB | ~800 Central Acts, full English text |
|
|
176
|
+
| IT Rules and subordinate legislation (key) | ~20-30 MB | SPDI Rules, Intermediary Guidelines, etc. |
|
|
177
|
+
| CERT-In directions and advisories | ~5-10 MB | Incident reporting, compliance requirements |
|
|
178
|
+
| EU cross-references | ~5-10 MB | DPDPA-GDPR, IT Act-NIS2 mappings |
|
|
179
|
+
| FTS5 indexes | ~30-50 MB | Full-text search indexes |
|
|
180
|
+
| **Free tier total** | **~100-200 MB** | |
|
|
181
|
+
| Supreme Court landmark judgments | ~200-400 MB | Privacy, IT Act interpretations |
|
|
182
|
+
| State Acts | ~200-300 MB | Selected State IT and data protection rules |
|
|
183
|
+
| **Professional tier total** | **~500 MB-1 GB** | |
|
|
184
|
+
|
|
185
|
+
---
|
|
186
|
+
|
|
187
|
+
## Language Support
|
|
188
|
+
|
|
189
|
+
The primary language is **English (en)**, which is the principal language of Indian legislation. Hindi (hi) translations are available for most Central Acts. All official law text on India Code is available in English, which is legally authoritative alongside Hindi.
|
|
190
|
+
|
|
191
|
+
---
|
|
192
|
+
|
|
193
|
+
## Available Tools (13)
|
|
194
|
+
|
|
195
|
+
### Core Legal Research Tools (8)
|
|
196
|
+
|
|
197
|
+
| Tool | Description |
|
|
198
|
+
|------|-------------|
|
|
199
|
+
| `search_legislation` | FTS5 full-text search across all provisions with BM25 ranking |
|
|
200
|
+
| `get_provision` | Retrieve specific provision by statute + chapter/section |
|
|
201
|
+
| `check_currency` | Check if statute is in force, amended, or repealed |
|
|
202
|
+
| `validate_citation` | Validate citation against database (zero-hallucination check) |
|
|
203
|
+
| `build_legal_stance` | Aggregate citations from statutes for a legal topic |
|
|
204
|
+
| `format_citation` | Format citations per Indian conventions (full/short/pinpoint) |
|
|
205
|
+
| `list_sources` | List all available statutes with metadata |
|
|
206
|
+
| `about` | Server info, capabilities, and coverage summary |
|
|
207
|
+
|
|
208
|
+
### EU/International Law Integration Tools (5)
|
|
209
|
+
|
|
210
|
+
| Tool | Description |
|
|
211
|
+
|------|-------------|
|
|
212
|
+
| `get_eu_basis` | Get EU directives/regulations for Indian statute |
|
|
213
|
+
| `get_indian_implementations` | Find Indian laws implementing EU act |
|
|
214
|
+
| `search_eu_implementations` | Search EU documents with Indian implementation counts |
|
|
215
|
+
| `get_provision_eu_basis` | Get EU law references for specific provision |
|
|
216
|
+
| `validate_eu_compliance` | Check implementation status of EU directives |
|
|
217
|
+
|
|
218
|
+
---
|
|
219
|
+
|
|
220
|
+
## Why This Works
|
|
221
|
+
|
|
222
|
+
**Verbatim Source Text (No LLM Processing):**
|
|
223
|
+
- All statute text is ingested from official Indian government sources
|
|
224
|
+
- Provisions are returned **unchanged** from SQLite FTS5 database rows
|
|
225
|
+
- Zero LLM summarization or paraphrasing -- the database contains regulation text, not AI interpretations
|
|
226
|
+
|
|
227
|
+
**Smart Context Management:**
|
|
228
|
+
- Search returns ranked provisions with BM25 scoring (safe for context)
|
|
229
|
+
- Provision retrieval gives exact text by statute identifier + chapter/section
|
|
230
|
+
- Cross-references help navigate without loading everything at once
|
|
231
|
+
|
|
232
|
+
**Technical Architecture:**
|
|
233
|
+
```
|
|
234
|
+
Official Sources --> Parse --> SQLite --> FTS5 snippet() --> MCP response
|
|
235
|
+
^ ^
|
|
236
|
+
Provision parser Verbatim database query
|
|
237
|
+
```
|
|
238
|
+
|
|
239
|
+
### Traditional Research vs. This MCP
|
|
240
|
+
|
|
241
|
+
| Traditional Approach | This MCP Server |
|
|
242
|
+
|---------------------|-----------------|
|
|
243
|
+
| Search official databases by statute number | Search by plain language |
|
|
244
|
+
| Navigate multi-chapter statutes manually | Get the exact provision with context |
|
|
245
|
+
| Manual cross-referencing between laws | `build_legal_stance` aggregates across sources |
|
|
246
|
+
| "Is this statute still in force?" --> check manually | `check_currency` tool --> answer in seconds |
|
|
247
|
+
| Find EU basis --> dig through EUR-Lex | `get_eu_basis` --> linked EU directives instantly |
|
|
248
|
+
| No API, no integration | MCP protocol --> AI-native |
|
|
249
|
+
|
|
250
|
+
---
|
|
251
|
+
|
|
252
|
+
## Data Sources & Freshness
|
|
253
|
+
|
|
254
|
+
All content is sourced from authoritative Indian legal databases:
|
|
255
|
+
|
|
256
|
+
- **[India Code](https://www.indiacode.nic.in)** -- Official Indian government legal database
|
|
257
|
+
|
|
258
|
+
**Verified data only** -- every citation is validated against official sources. Zero LLM-generated content.
|
|
259
|
+
|
|
260
|
+
---
|
|
261
|
+
|
|
262
|
+
## Security
|
|
263
|
+
|
|
264
|
+
This project uses multiple layers of automated security scanning:
|
|
265
|
+
|
|
266
|
+
| Scanner | What It Does | Schedule |
|
|
267
|
+
|---------|-------------|----------|
|
|
268
|
+
| **CodeQL** | Static analysis for security vulnerabilities | Weekly + PRs |
|
|
269
|
+
| **Semgrep** | SAST scanning (OWASP top 10, secrets, TypeScript) | Every push |
|
|
270
|
+
| **Gitleaks** | Secret detection across git history | Every push |
|
|
271
|
+
| **Trivy** | CVE scanning on filesystem and npm dependencies | Daily |
|
|
272
|
+
| **Socket.dev** | Supply chain attack detection | PRs |
|
|
273
|
+
| **Dependabot** | Automated dependency updates | Weekly |
|
|
274
|
+
|
|
275
|
+
See [SECURITY.md](SECURITY.md) for the full policy and vulnerability reporting.
|
|
276
|
+
|
|
277
|
+
---
|
|
278
|
+
|
|
279
|
+
## Important Disclaimers
|
|
280
|
+
|
|
281
|
+
### Legal Advice
|
|
282
|
+
|
|
283
|
+
> **THIS TOOL IS NOT LEGAL ADVICE**
|
|
284
|
+
>
|
|
285
|
+
> Statute text is sourced from official Indian government publications. However:
|
|
286
|
+
> - This is a **research tool**, not a substitute for professional legal counsel
|
|
287
|
+
> - **Court case coverage is limited** -- do not rely solely on this for case law research
|
|
288
|
+
> - **Verify critical citations** against primary sources for court filings
|
|
289
|
+
> - **EU cross-references** are extracted from statute text, not EUR-Lex full text
|
|
290
|
+
|
|
291
|
+
**Before using professionally, read:** [DISCLAIMER.md](DISCLAIMER.md) | [SECURITY.md](SECURITY.md)
|
|
292
|
+
|
|
293
|
+
### Client Confidentiality
|
|
294
|
+
|
|
295
|
+
Queries go through the Claude API. For privileged or confidential matters, use on-premise deployment.
|
|
296
|
+
|
|
297
|
+
---
|
|
298
|
+
|
|
299
|
+
## Development
|
|
300
|
+
|
|
301
|
+
### Setup
|
|
302
|
+
|
|
303
|
+
```bash
|
|
304
|
+
git clone https://github.com/Ansvar-Systems/India-law-mcp
|
|
305
|
+
cd India-law-mcp
|
|
306
|
+
npm install
|
|
307
|
+
npm run build
|
|
308
|
+
npm test
|
|
309
|
+
```
|
|
310
|
+
|
|
311
|
+
### Running Locally
|
|
312
|
+
|
|
313
|
+
```bash
|
|
314
|
+
npm run dev # Start MCP server
|
|
315
|
+
npx @anthropic/mcp-inspector node dist/index.js # Test with MCP Inspector
|
|
316
|
+
```
|
|
317
|
+
|
|
318
|
+
---
|
|
319
|
+
|
|
320
|
+
## Related Projects: Complete Compliance Suite
|
|
321
|
+
|
|
322
|
+
This server is part of **Ansvar's Compliance Suite** -- MCP servers that work together for end-to-end compliance coverage:
|
|
323
|
+
|
|
324
|
+
### [@ansvar/eu-regulations-mcp](https://github.com/Ansvar-Systems/EU_compliance_MCP)
|
|
325
|
+
**Query 49 EU regulations directly from Claude** -- GDPR, AI Act, DORA, NIS2, MiFID II, eIDAS, and more. Full regulatory text with article-level search. `npx @ansvar/eu-regulations-mcp`
|
|
326
|
+
|
|
327
|
+
### [@ansvar/us-regulations-mcp](https://github.com/Ansvar-Systems/US_Compliance_MCP)
|
|
328
|
+
**Query US federal and state compliance laws** -- HIPAA, CCPA, SOX, GLBA, FERPA, and more. `npx @ansvar/us-regulations-mcp`
|
|
329
|
+
|
|
330
|
+
### [@ansvar/security-controls-mcp](https://github.com/Ansvar-Systems/security-controls-mcp)
|
|
331
|
+
**Query 261 security frameworks** -- ISO 27001, NIST CSF, SOC 2, CIS Controls, SCF, and more. `npx @ansvar/security-controls-mcp`
|
|
332
|
+
|
|
333
|
+
### [@ansvar/automotive-cybersecurity-mcp](https://github.com/Ansvar-Systems/Automotive-MCP)
|
|
334
|
+
**Query UNECE R155/R156 and ISO 21434** -- Automotive cybersecurity compliance. `npx @ansvar/automotive-cybersecurity-mcp`
|
|
335
|
+
|
|
336
|
+
**30+ national law MCPs** covering Australia, Brazil, Canada, China, Denmark, Finland, France, Germany, Ghana, Iceland, India, Ireland, Israel, Italy, Japan, Kenya, Netherlands, Nigeria, Norway, Singapore, Slovenia, South Korea, Sweden, Switzerland, Thailand, UAE, UK, and more.
|
|
337
|
+
|
|
338
|
+
---
|
|
339
|
+
|
|
340
|
+
## Contributing
|
|
341
|
+
|
|
342
|
+
Contributions welcome! See [CONTRIBUTING.md](CONTRIBUTING.md) for guidelines.
|
|
343
|
+
|
|
344
|
+
Priority areas:
|
|
345
|
+
- Court case law expansion
|
|
346
|
+
- EU cross-reference improvements
|
|
347
|
+
- Historical statute versions and amendment tracking
|
|
348
|
+
- Additional statutory instruments and regulations
|
|
349
|
+
|
|
350
|
+
---
|
|
351
|
+
|
|
352
|
+
## Roadmap
|
|
353
|
+
|
|
354
|
+
- [x] Core statute database with FTS5 search
|
|
355
|
+
- [x] EU/international law cross-references
|
|
356
|
+
- [x] Vercel Streamable HTTP deployment
|
|
357
|
+
- [x] npm package publication
|
|
358
|
+
- [ ] Court case law expansion
|
|
359
|
+
- [ ] Historical statute versions (amendment tracking)
|
|
360
|
+
- [ ] Preparatory works / explanatory memoranda
|
|
361
|
+
- [ ] Lower court and tribunal decisions
|
|
362
|
+
|
|
363
|
+
---
|
|
364
|
+
|
|
365
|
+
## Citation
|
|
366
|
+
|
|
367
|
+
If you use this MCP server in academic research:
|
|
368
|
+
|
|
369
|
+
```bibtex
|
|
370
|
+
@software{india_law_mcp_2025,
|
|
371
|
+
author = {Ansvar Systems AB},
|
|
372
|
+
title = {Indian Law MCP Server: AI-Powered Legal Research Tool},
|
|
373
|
+
year = {2025},
|
|
374
|
+
url = {https://github.com/Ansvar-Systems/India-law-mcp},
|
|
375
|
+
note = {Indian legal database with full-text search and EU cross-references}
|
|
376
|
+
}
|
|
377
|
+
```
|
|
378
|
+
|
|
379
|
+
---
|
|
380
|
+
|
|
381
|
+
## License
|
|
382
|
+
|
|
383
|
+
Apache License 2.0. See [LICENSE](./LICENSE) for details.
|
|
384
|
+
|
|
385
|
+
### Data Licenses
|
|
386
|
+
|
|
387
|
+
- **Statutes & Legislation:** Indian Government (Government Open Data License)
|
|
388
|
+
- **EU Metadata:** EUR-Lex (EU public domain)
|
|
389
|
+
|
|
390
|
+
---
|
|
391
|
+
|
|
392
|
+
## About Ansvar Systems
|
|
393
|
+
|
|
394
|
+
We build AI-accelerated compliance and legal research tools for the global market. This MCP server started as our internal reference tool -- turns out everyone building compliance tools has the same research frustrations.
|
|
395
|
+
|
|
396
|
+
So we're open-sourcing it.
|
|
397
|
+
|
|
398
|
+
**[ansvar.eu](https://ansvar.eu)** -- Stockholm, Sweden
|
|
399
|
+
|
|
400
|
+
---
|
|
401
|
+
|
|
402
|
+
<p align="center">
|
|
403
|
+
<sub>Built with care in Stockholm, Sweden</sub>
|
|
404
|
+
</p>
|
package/data/database.db
ADDED
|
Binary file
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Runtime capability detection for India Law MCP.
|
|
3
|
+
* Detects which database tables are available to enable/disable features.
|
|
4
|
+
*/
|
|
5
|
+
import type Database from '@ansvar/mcp-sqlite';
|
|
6
|
+
export type Capability = 'core_legislation' | 'eu_references' | 'cert_in_directions' | 'supreme_court_judgments' | 'state_acts' | 'subordinate_legislation';
|
|
7
|
+
export declare function detectCapabilities(db: InstanceType<typeof Database>): Set<Capability>;
|
|
8
|
+
export interface DbMetadata {
|
|
9
|
+
tier: string;
|
|
10
|
+
schema_version: string;
|
|
11
|
+
built_at?: string;
|
|
12
|
+
builder?: string;
|
|
13
|
+
}
|
|
14
|
+
export declare function readDbMetadata(db: InstanceType<typeof Database>): DbMetadata;
|
|
15
|
+
export declare function upgradeMessage(feature: string): string;
|
|
16
|
+
//# sourceMappingURL=capabilities.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"capabilities.d.ts","sourceRoot":"","sources":["../src/capabilities.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,KAAK,QAAQ,MAAM,oBAAoB,CAAC;AAE/C,MAAM,MAAM,UAAU,GAClB,kBAAkB,GAClB,eAAe,GACf,oBAAoB,GACpB,yBAAyB,GACzB,YAAY,GACZ,yBAAyB,CAAC;AAW9B,wBAAgB,kBAAkB,CAAC,EAAE,EAAE,YAAY,CAAC,OAAO,QAAQ,CAAC,GAAG,GAAG,CAAC,UAAU,CAAC,CAcrF;AAED,MAAM,WAAW,UAAU;IACzB,IAAI,EAAE,MAAM,CAAC;IACb,cAAc,EAAE,MAAM,CAAC;IACvB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB;AAED,wBAAgB,cAAc,CAAC,EAAE,EAAE,YAAY,CAAC,OAAO,QAAQ,CAAC,GAAG,UAAU,CAgB5E;AAED,wBAAgB,cAAc,CAAC,OAAO,EAAE,MAAM,GAAG,MAAM,CAEtD"}
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Runtime capability detection for India Law MCP.
|
|
3
|
+
* Detects which database tables are available to enable/disable features.
|
|
4
|
+
*/
|
|
5
|
+
const TABLE_MAP = {
|
|
6
|
+
core_legislation: ['legal_documents', 'legal_provisions', 'provisions_fts'],
|
|
7
|
+
eu_references: ['eu_documents', 'eu_references'],
|
|
8
|
+
cert_in_directions: ['legal_documents'],
|
|
9
|
+
supreme_court_judgments: ['case_law'],
|
|
10
|
+
state_acts: ['state_acts'],
|
|
11
|
+
subordinate_legislation: ['subordinate_legislation'],
|
|
12
|
+
};
|
|
13
|
+
export function detectCapabilities(db) {
|
|
14
|
+
const caps = new Set();
|
|
15
|
+
const tables = new Set(db.prepare("SELECT name FROM sqlite_master WHERE type='table'").all()
|
|
16
|
+
.map(r => r.name));
|
|
17
|
+
for (const [cap, required] of Object.entries(TABLE_MAP)) {
|
|
18
|
+
if (required.every(t => tables.has(t))) {
|
|
19
|
+
caps.add(cap);
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
return caps;
|
|
23
|
+
}
|
|
24
|
+
export function readDbMetadata(db) {
|
|
25
|
+
const meta = {};
|
|
26
|
+
try {
|
|
27
|
+
const rows = db.prepare('SELECT key, value FROM db_metadata').all();
|
|
28
|
+
for (const row of rows) {
|
|
29
|
+
meta[row.key] = row.value;
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
catch {
|
|
33
|
+
// db_metadata table may not exist
|
|
34
|
+
}
|
|
35
|
+
return {
|
|
36
|
+
tier: meta.tier ?? 'free',
|
|
37
|
+
schema_version: meta.schema_version ?? '1.0',
|
|
38
|
+
built_at: meta.built_at,
|
|
39
|
+
builder: meta.builder,
|
|
40
|
+
};
|
|
41
|
+
}
|
|
42
|
+
export function upgradeMessage(feature) {
|
|
43
|
+
return `The "${feature}" feature requires a professional-tier database. Contact hello@ansvar.ai for access.`;
|
|
44
|
+
}
|
|
45
|
+
//# sourceMappingURL=capabilities.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"capabilities.js","sourceRoot":"","sources":["../src/capabilities.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAYH,MAAM,SAAS,GAAiC;IAC9C,gBAAgB,EAAE,CAAC,iBAAiB,EAAE,kBAAkB,EAAE,gBAAgB,CAAC;IAC3E,aAAa,EAAE,CAAC,cAAc,EAAE,eAAe,CAAC;IAChD,kBAAkB,EAAE,CAAC,iBAAiB,CAAC;IACvC,uBAAuB,EAAE,CAAC,UAAU,CAAC;IACrC,UAAU,EAAE,CAAC,YAAY,CAAC;IAC1B,uBAAuB,EAAE,CAAC,yBAAyB,CAAC;CACrD,CAAC;AAEF,MAAM,UAAU,kBAAkB,CAAC,EAAiC;IAClE,MAAM,IAAI,GAAG,IAAI,GAAG,EAAc,CAAC;IACnC,MAAM,MAAM,GAAG,IAAI,GAAG,CACnB,EAAE,CAAC,OAAO,CAAC,mDAAmD,CAAC,CAAC,GAAG,EAAyB;SAC1F,GAAG,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,IAAI,CAAC,CACpB,CAAC;IAEF,KAAK,MAAM,CAAC,GAAG,EAAE,QAAQ,CAAC,IAAI,MAAM,CAAC,OAAO,CAAC,SAAS,CAAC,EAAE,CAAC;QACxD,IAAI,QAAQ,CAAC,KAAK,CAAC,CAAC,CAAC,EAAE,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC;YACvC,IAAI,CAAC,GAAG,CAAC,GAAiB,CAAC,CAAC;QAC9B,CAAC;IACH,CAAC;IAED,OAAO,IAAI,CAAC;AACd,CAAC;AASD,MAAM,UAAU,cAAc,CAAC,EAAiC;IAC9D,MAAM,IAAI,GAA2B,EAAE,CAAC;IACxC,IAAI,CAAC;QACH,MAAM,IAAI,GAAG,EAAE,CAAC,OAAO,CAAC,oCAAoC,CAAC,CAAC,GAAG,EAAsC,CAAC;QACxG,KAAK,MAAM,GAAG,IAAI,IAAI,EAAE,CAAC;YACvB,IAAI,CAAC,GAAG,CAAC,GAAG,CAAC,GAAG,GAAG,CAAC,KAAK,CAAC;QAC5B,CAAC;IACH,CAAC;IAAC,MAAM,CAAC;QACP,kCAAkC;IACpC,CAAC;IACD,OAAO;QACL,IAAI,EAAE,IAAI,CAAC,IAAI,IAAI,MAAM;QACzB,cAAc,EAAE,IAAI,CAAC,cAAc,IAAI,KAAK;QAC5C,QAAQ,EAAE,IAAI,CAAC,QAAQ;QACvB,OAAO,EAAE,IAAI,CAAC,OAAO;KACtB,CAAC;AACJ,CAAC;AAED,MAAM,UAAU,cAAc,CAAC,OAAe;IAC5C,OAAO,QAAQ,OAAO,sFAAsF,CAAC;AAC/G,CAAC"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Indian legal citation formatter.
|
|
3
|
+
*
|
|
4
|
+
* Formats:
|
|
5
|
+
* full: "Section 4, Digital Personal Data Protection Act, 2023"
|
|
6
|
+
* short: "s. 4 DPDPA 2023"
|
|
7
|
+
* pinpoint: "s. 4(1)(a)"
|
|
8
|
+
*/
|
|
9
|
+
import type { ParsedCitation, CitationFormat } from '../types/index.js';
|
|
10
|
+
export declare function formatCitation(parsed: ParsedCitation, format?: CitationFormat): string;
|
|
11
|
+
//# sourceMappingURL=formatter.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"formatter.d.ts","sourceRoot":"","sources":["../../src/citation/formatter.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH,OAAO,KAAK,EAAE,cAAc,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAC;AAExE,wBAAgB,cAAc,CAC5B,MAAM,EAAE,cAAc,EACtB,MAAM,GAAE,cAAuB,GAC9B,MAAM,CAoBR"}
|