@hasna/knowledge 0.2.1 → 0.2.3
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 +5 -16
- package/README.md +21 -0
- package/bin/open-knowledge-mcp.js +14954 -0
- package/bin/open-knowledge.js +3 -3
- package/package.json +19 -3
- package/src/mcp-http.js +110 -0
- package/.github/ISSUE_TEMPLATE/bug_report.yml +0 -59
- package/.github/ISSUE_TEMPLATE/feature_request.yml +0 -34
- package/.github/PULL_REQUEST_TEMPLATE.md +0 -21
- package/.github/workflows/ci.yml +0 -49
- package/CODE_OF_CONDUCT.md +0 -31
- package/CONTRIBUTING.md +0 -83
- package/FUNDING.yml +0 -1
- package/SECURITY.md +0 -39
- package/npmignore +0 -9
- package/src/cli.ts +0 -486
- package/tests/cli.test.ts +0 -91
- package/tsconfig.json +0 -16
package/LICENSE
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
|
|
1
2
|
Apache License
|
|
2
3
|
Version 2.0, January 2004
|
|
3
4
|
http://www.apache.org/licenses/
|
|
@@ -48,7 +49,7 @@
|
|
|
48
49
|
"Contribution" shall mean any work of authorship, including
|
|
49
50
|
the original version of the Work and any modifications or additions
|
|
50
51
|
to that Work or Derivative Works thereof, that is intentionally
|
|
51
|
-
submitted to Licensor for inclusion in the Work by the copyright owner
|
|
52
|
+
submitted to the Licensor for inclusion in the Work by the copyright owner
|
|
52
53
|
or by an individual or Legal Entity authorized to submit on behalf of
|
|
53
54
|
the copyright owner. For the purposes of this definition, "submitted"
|
|
54
55
|
means any form of electronic, verbal, or written communication sent
|
|
@@ -60,7 +61,7 @@
|
|
|
60
61
|
designated in writing by the copyright owner as "Not a Contribution."
|
|
61
62
|
|
|
62
63
|
"Contributor" shall mean Licensor and any individual or Legal Entity
|
|
63
|
-
on behalf of whom a Contribution has been received by Licensor and
|
|
64
|
+
on behalf of whom a Contribution has been received by the Licensor and
|
|
64
65
|
subsequently incorporated within the Work.
|
|
65
66
|
|
|
66
67
|
2. Grant of Copyright License. Subject to the terms and conditions of
|
|
@@ -106,7 +107,7 @@
|
|
|
106
107
|
(d) If the Work includes a "NOTICE" text file as part of its
|
|
107
108
|
distribution, then any Derivative Works that You distribute must
|
|
108
109
|
include a readable copy of the attribution notices contained
|
|
109
|
-
within such NOTICE file, excluding
|
|
110
|
+
within such NOTICE file, excluding any notices that do not
|
|
110
111
|
pertain to any part of the Derivative Works, in at least one
|
|
111
112
|
of the following places: within a NOTICE text file distributed
|
|
112
113
|
as part of the Derivative Works; within the Source form or
|
|
@@ -175,18 +176,7 @@
|
|
|
175
176
|
|
|
176
177
|
END OF TERMS AND CONDITIONS
|
|
177
178
|
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
To apply the Apache License to your work, attach the following
|
|
181
|
-
boilerplate notice, with the fields enclosed by brackets "[]"
|
|
182
|
-
replaced with your own identifying information. (Don't include
|
|
183
|
-
the brackets!) The text should be enclosed in the appropriate
|
|
184
|
-
comment syntax for the file format. We also recommend that a
|
|
185
|
-
file or class name and description of purpose be included on the
|
|
186
|
-
same "printed page" as the copyright notice for easier
|
|
187
|
-
identification within third-party archives.
|
|
188
|
-
|
|
189
|
-
Copyright [yyyy] [name of copyright owner]
|
|
179
|
+
Copyright 2026 Hasna, Inc.
|
|
190
180
|
|
|
191
181
|
Licensed under the Apache License, Version 2.0 (the "License");
|
|
192
182
|
you may not use this file except in compliance with the License.
|
|
@@ -199,4 +189,3 @@
|
|
|
199
189
|
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
200
190
|
See the License for the specific language governing permissions and
|
|
201
191
|
limitations under the License.
|
|
202
|
-
|
package/README.md
CHANGED
|
@@ -144,3 +144,24 @@ Every command returns structured JSON when `--json` is passed:
|
|
|
144
144
|
- **Safe deletes**: `--yes` flag required; no accidental deletions
|
|
145
145
|
- **Concurrent-safe**: file locking prevents corruption from parallel agents
|
|
146
146
|
- **Scriptable**: works in pipelines, CI, and any automation tool
|
|
147
|
+
|
|
148
|
+
## MCP Server
|
|
149
|
+
|
|
150
|
+
```bash
|
|
151
|
+
open-knowledge-mcp
|
|
152
|
+
```
|
|
153
|
+
|
|
154
|
+
## HTTP mode
|
|
155
|
+
|
|
156
|
+
Run a shared Streamable HTTP MCP server (127.0.0.1 only):
|
|
157
|
+
|
|
158
|
+
```bash
|
|
159
|
+
open-knowledge-mcp --http # default port 8819
|
|
160
|
+
open-knowledge-mcp --http --port 8819
|
|
161
|
+
MCP_HTTP=1 open-knowledge-mcp
|
|
162
|
+
```
|
|
163
|
+
|
|
164
|
+
- Health: `GET http://127.0.0.1:8819/health`
|
|
165
|
+
- MCP: `POST http://127.0.0.1:8819/mcp`
|
|
166
|
+
|
|
167
|
+
Stdio remains the default when no `--http` flag is passed.
|