asyncapi-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.
- asyncapi_knowledge_mcp-0.0.2/PKG-INFO +6 -0
- asyncapi_knowledge_mcp-0.0.2/README.md +117 -0
- asyncapi_knowledge_mcp-0.0.2/asyncapi_knowledge_mcp/__init__.py +0 -0
- asyncapi_knowledge_mcp-0.0.2/asyncapi_knowledge_mcp/__main__.py +17 -0
- asyncapi_knowledge_mcp-0.0.2/asyncapi_knowledge_mcp/data/chunks.json +168901 -0
- asyncapi_knowledge_mcp-0.0.2/asyncapi_knowledge_mcp/data/metadata-schema.md +297 -0
- asyncapi_knowledge_mcp-0.0.2/asyncapi_knowledge_mcp/data/milvus.db +0 -0
- asyncapi_knowledge_mcp-0.0.2/asyncapi_knowledge_mcp.egg-info/PKG-INFO +6 -0
- asyncapi_knowledge_mcp-0.0.2/asyncapi_knowledge_mcp.egg-info/SOURCES.txt +13 -0
- asyncapi_knowledge_mcp-0.0.2/asyncapi_knowledge_mcp.egg-info/dependency_links.txt +1 -0
- asyncapi_knowledge_mcp-0.0.2/asyncapi_knowledge_mcp.egg-info/entry_points.txt +2 -0
- asyncapi_knowledge_mcp-0.0.2/asyncapi_knowledge_mcp.egg-info/requires.txt +1 -0
- asyncapi_knowledge_mcp-0.0.2/asyncapi_knowledge_mcp.egg-info/top_level.txt +1 -0
- asyncapi_knowledge_mcp-0.0.2/pyproject.toml +22 -0
- asyncapi_knowledge_mcp-0.0.2/setup.cfg +4 -0
|
@@ -0,0 +1,117 @@
|
|
|
1
|
+
# asyncapi-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 asyncapi-knowledge-mcp -- uvx --from /path/to/asyncapi-knowledge-mcp asyncapi-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 asyncapi-knowledge-mcp -- uvx --from "git+https://github.com/you/asyncapi-knowledge-mcp" asyncapi-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 asyncapi-knowledge-mcp -- uvx asyncapi-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/asyncapi-knowledge-mcp:latest -f .opencrane/Dockerfile ..
|
|
48
|
+
|
|
49
|
+
# Push
|
|
50
|
+
docker push your-registry/asyncapi-knowledge-mcp:latest
|
|
51
|
+
```
|
|
52
|
+
|
|
53
|
+
Run the container:
|
|
54
|
+
|
|
55
|
+
```bash
|
|
56
|
+
docker run -p 8000:8000 your-registry/asyncapi-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 asyncapi-knowledge-mcp -- uvx asyncapi-knowledge-mcp
|
|
69
|
+
```
|
|
70
|
+
|
|
71
|
+
**Cursor / Windsurf / VS Code (mcp.json):**
|
|
72
|
+
|
|
73
|
+
```json
|
|
74
|
+
{
|
|
75
|
+
"mcpServers": {
|
|
76
|
+
"asyncapi-knowledge-mcp": {
|
|
77
|
+
"command": "uvx",
|
|
78
|
+
"args": ["asyncapi-knowledge-mcp"]
|
|
79
|
+
}
|
|
80
|
+
}
|
|
81
|
+
}
|
|
82
|
+
```
|
|
83
|
+
|
|
84
|
+
**Zed (settings.json):**
|
|
85
|
+
|
|
86
|
+
```json
|
|
87
|
+
{
|
|
88
|
+
"context_servers": {
|
|
89
|
+
"asyncapi-knowledge-mcp": {
|
|
90
|
+
"command": {
|
|
91
|
+
"path": "uvx",
|
|
92
|
+
"args": ["asyncapi-knowledge-mcp"]
|
|
93
|
+
}
|
|
94
|
+
}
|
|
95
|
+
}
|
|
96
|
+
}
|
|
97
|
+
```
|
|
98
|
+
|
|
99
|
+
### HTTP (Docker)
|
|
100
|
+
|
|
101
|
+
**Claude Code:**
|
|
102
|
+
|
|
103
|
+
```bash
|
|
104
|
+
claude mcp add asyncapi-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
|
+
"asyncapi-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()
|