ose-knowledge-mcp 0.0.2__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.
@@ -0,0 +1,6 @@
1
+ Metadata-Version: 2.4
2
+ Name: ose-knowledge-mcp
3
+ Version: 0.0.2
4
+ Summary: MCP server for documentation search — built with OpenCrane
5
+ Requires-Python: >=3.11
6
+ Requires-Dist: opencrane>=0.18.6
@@ -0,0 +1,117 @@
1
+ # ose-knowledge-mcp
2
+
3
+ MCP server for documentation search — built with [OpenCrane](https://github.com/opencrane/opencrane).
4
+
5
+ ## Use locally
6
+
7
+ ```bash
8
+ claude mcp add ose-knowledge-mcp -- uvx --from /path/to/ose-knowledge-mcp ose-knowledge-mcp
9
+ ```
10
+
11
+ ## Share via GitHub
12
+
13
+ Push this directory to a GitHub repository, then others can add it with:
14
+
15
+ ```bash
16
+ claude mcp add ose-knowledge-mcp -- uvx --from "git+https://github.com/you/ose-knowledge-mcp" ose-knowledge-mcp
17
+ ```
18
+
19
+ ## Share via PyPI
20
+
21
+ Build and upload the wheel:
22
+
23
+ ```bash
24
+ pip install build twine
25
+ python -m build .
26
+ twine upload dist/*
27
+ ```
28
+
29
+ Then others can add it with:
30
+
31
+ ```bash
32
+ claude mcp add ose-knowledge-mcp -- uvx ose-knowledge-mcp
33
+ ```
34
+
35
+ > **Note:** PyPI has a 100 MB per-file size limit. If your `milvus.db` exceeds this,
36
+ > distribute via GitHub or a direct path instead.
37
+
38
+ > **Note:** When you re-pack with updated documentation, bump `--version` so that
39
+ > `uvx` pulls the new version instead of serving its cache.
40
+
41
+ ## Share via Docker
42
+
43
+ Build and publish a Docker image for HTTP deployment:
44
+
45
+ ```bash
46
+ # Build
47
+ docker build -t your-registry/ose-knowledge-mcp:latest -f .opencrane/Dockerfile ..
48
+
49
+ # Push
50
+ docker push your-registry/ose-knowledge-mcp:latest
51
+ ```
52
+
53
+ Run the container:
54
+
55
+ ```bash
56
+ docker run -p 8000:8000 your-registry/ose-knowledge-mcp:latest
57
+ ```
58
+
59
+ The MCP endpoint is available at `http://localhost:8000/http`.
60
+
61
+ ## MCP client configuration
62
+
63
+ ### Stdio (uvx)
64
+
65
+ **Claude Code:**
66
+
67
+ ```bash
68
+ claude mcp add ose-knowledge-mcp -- uvx ose-knowledge-mcp
69
+ ```
70
+
71
+ **Cursor / Windsurf / VS Code (mcp.json):**
72
+
73
+ ```json
74
+ {
75
+ "mcpServers": {
76
+ "ose-knowledge-mcp": {
77
+ "command": "uvx",
78
+ "args": ["ose-knowledge-mcp"]
79
+ }
80
+ }
81
+ }
82
+ ```
83
+
84
+ **Zed (settings.json):**
85
+
86
+ ```json
87
+ {
88
+ "context_servers": {
89
+ "ose-knowledge-mcp": {
90
+ "command": {
91
+ "path": "uvx",
92
+ "args": ["ose-knowledge-mcp"]
93
+ }
94
+ }
95
+ }
96
+ }
97
+ ```
98
+
99
+ ### HTTP (Docker)
100
+
101
+ **Claude Code:**
102
+
103
+ ```bash
104
+ claude mcp add ose-knowledge-mcp --transport http --url http://localhost:8000/http
105
+ ```
106
+
107
+ **Cursor / Windsurf / VS Code (mcp.json):**
108
+
109
+ ```json
110
+ {
111
+ "mcpServers": {
112
+ "ose-knowledge-mcp": {
113
+ "url": "http://localhost:8000/http"
114
+ }
115
+ }
116
+ }
117
+ ```
File without changes
@@ -0,0 +1,17 @@
1
+ """MCP server with bundled documentation data."""
2
+ import os
3
+ from pathlib import Path
4
+
5
+
6
+ def main():
7
+ data_dir = Path(__file__).parent / "data"
8
+ os.environ.setdefault("MILVUS_DB_PATH", str(data_dir / "milvus.db"))
9
+ os.environ.setdefault("AI_DOCS_CHUNKS_FILE", str(data_dir / "chunks.json"))
10
+
11
+ import asyncio
12
+ from opencrane.mcp.server import main as serve_main
13
+ asyncio.run(serve_main())
14
+
15
+
16
+ if __name__ == "__main__":
17
+ main()