contextlayer-mcp-server 0.1.1__tar.gz → 0.1.4__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.
- {contextlayer_mcp_server-0.1.1 → contextlayer_mcp_server-0.1.4}/PKG-INFO +1 -1
- {contextlayer_mcp_server-0.1.1 → contextlayer_mcp_server-0.1.4}/contextlayer/server.py +13 -0
- {contextlayer_mcp_server-0.1.1 → contextlayer_mcp_server-0.1.4}/contextlayer_mcp_server.egg-info/PKG-INFO +1 -1
- {contextlayer_mcp_server-0.1.1 → contextlayer_mcp_server-0.1.4}/pyproject.toml +1 -1
- {contextlayer_mcp_server-0.1.1 → contextlayer_mcp_server-0.1.4}/contextlayer/__init__.py +0 -0
- {contextlayer_mcp_server-0.1.1 → contextlayer_mcp_server-0.1.4}/contextlayer/detection.py +0 -0
- {contextlayer_mcp_server-0.1.1 → contextlayer_mcp_server-0.1.4}/contextlayer/wrapper.py +0 -0
- {contextlayer_mcp_server-0.1.1 → contextlayer_mcp_server-0.1.4}/contextlayer_mcp_server.egg-info/SOURCES.txt +0 -0
- {contextlayer_mcp_server-0.1.1 → contextlayer_mcp_server-0.1.4}/contextlayer_mcp_server.egg-info/dependency_links.txt +0 -0
- {contextlayer_mcp_server-0.1.1 → contextlayer_mcp_server-0.1.4}/contextlayer_mcp_server.egg-info/entry_points.txt +0 -0
- {contextlayer_mcp_server-0.1.1 → contextlayer_mcp_server-0.1.4}/contextlayer_mcp_server.egg-info/requires.txt +0 -0
- {contextlayer_mcp_server-0.1.1 → contextlayer_mcp_server-0.1.4}/contextlayer_mcp_server.egg-info/top_level.txt +0 -0
- {contextlayer_mcp_server-0.1.1 → contextlayer_mcp_server-0.1.4}/setup.cfg +0 -0
- {contextlayer_mcp_server-0.1.1 → contextlayer_mcp_server-0.1.4}/tests/test_detection.py +0 -0
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
"""MCP server entry point. Run with: python -m contextlayer.server"""
|
|
2
2
|
from __future__ import annotations
|
|
3
3
|
|
|
4
|
+
import sys
|
|
4
5
|
from mcp.server.mcpserver import MCPServer
|
|
5
6
|
|
|
6
7
|
from contextlayer.detection import build_project_context
|
|
@@ -18,6 +19,18 @@ def analyze_and_wrap_prompt(user_prompt: str, current_working_dir: str) -> str:
|
|
|
18
19
|
|
|
19
20
|
|
|
20
21
|
def main() -> None:
|
|
22
|
+
banner = """
|
|
23
|
+
=======================================================
|
|
24
|
+
🚀 ContextLayer is running!
|
|
25
|
+
|
|
26
|
+
To use it, just ask your AI:
|
|
27
|
+
"Use the analyze_and_wrap_prompt tool with my current directory."
|
|
28
|
+
|
|
29
|
+
If you need help, check the docs or reply to this message.
|
|
30
|
+
=======================================================
|
|
31
|
+
"""
|
|
32
|
+
print(banner, file=sys.stderr)
|
|
33
|
+
|
|
21
34
|
import anyio
|
|
22
35
|
anyio.run(mcp.run_stdio_async)
|
|
23
36
|
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|