nia-mcp-server 1.0.3__tar.gz → 1.0.5__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.
Potentially problematic release.
This version of nia-mcp-server might be problematic. Click here for more details.
- {nia_mcp_server-1.0.3 → nia_mcp_server-1.0.5}/PKG-INFO +2 -2
- {nia_mcp_server-1.0.3 → nia_mcp_server-1.0.5}/README.md +1 -1
- nia_mcp_server-1.0.5/nia_analytics.log +0 -0
- nia_mcp_server-1.0.5/nia_mcp_server.log +4 -0
- {nia_mcp_server-1.0.3 → nia_mcp_server-1.0.5}/pyproject.toml +1 -1
- {nia_mcp_server-1.0.3 → nia_mcp_server-1.0.5}/src/nia_mcp_server/__init__.py +1 -1
- {nia_mcp_server-1.0.3 → nia_mcp_server-1.0.5}/src/nia_mcp_server/server.py +13 -6
- {nia_mcp_server-1.0.3 → nia_mcp_server-1.0.5}/.gitignore +0 -0
- {nia_mcp_server-1.0.3 → nia_mcp_server-1.0.5}/ARCHITECTURE.md +0 -0
- {nia_mcp_server-1.0.3 → nia_mcp_server-1.0.5}/LICENSE +0 -0
- {nia_mcp_server-1.0.3 → nia_mcp_server-1.0.5}/src/nia_mcp_server/__main__.py +0 -0
- {nia_mcp_server-1.0.3 → nia_mcp_server-1.0.5}/src/nia_mcp_server/api_client.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: nia-mcp-server
|
|
3
|
-
Version: 1.0.
|
|
3
|
+
Version: 1.0.5
|
|
4
4
|
Summary: NIA Knowledge Agent - MCP server for intelligent codebase search
|
|
5
5
|
Project-URL: Homepage, https://trynia.ai
|
|
6
6
|
Project-URL: Documentation, https://docs.trynia.ai
|
|
@@ -240,7 +240,7 @@ Large repositories can take a few minutes. Use `check_repository_status` to moni
|
|
|
240
240
|
## Support
|
|
241
241
|
|
|
242
242
|
- Documentation: [https://docs.trynia.ai](https://docs.trynia.ai)
|
|
243
|
-
- Discord: [https://discord.gg/
|
|
243
|
+
- Discord: [https://discord.gg/BBSwUMrrfn](https://discord.gg/BBSwUMrrfn)
|
|
244
244
|
- Email: support@trynia.ai
|
|
245
245
|
|
|
246
246
|
## License
|
|
@@ -212,7 +212,7 @@ Large repositories can take a few minutes. Use `check_repository_status` to moni
|
|
|
212
212
|
## Support
|
|
213
213
|
|
|
214
214
|
- Documentation: [https://docs.trynia.ai](https://docs.trynia.ai)
|
|
215
|
-
- Discord: [https://discord.gg/
|
|
215
|
+
- Discord: [https://discord.gg/BBSwUMrrfn](https://discord.gg/BBSwUMrrfn)
|
|
216
216
|
- Email: support@trynia.ai
|
|
217
217
|
|
|
218
218
|
## License
|
|
File without changes
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
2025-07-03 23:06:19,983 [ERROR] nia_mcp_server.server: Server error: NIA_API_KEY environment variable not set. Get your API key at https://trynia.ai/api-keys
|
|
2
|
+
2025-07-03 23:06:40,219 [INFO] nia_mcp_server.server: Starting NIA MCP Server
|
|
3
|
+
2025-07-03 23:06:46,602 [ERROR] nia_mcp_server.server: Server error: unhandled errors in a TaskGroup (1 sub-exception)
|
|
4
|
+
2025-07-03 23:10:49,097 [INFO] nia_mcp_server.server: Starting NIA MCP Server
|
|
@@ -13,6 +13,7 @@ from mcp.server.fastmcp import FastMCP
|
|
|
13
13
|
from mcp.types import TextContent, Resource
|
|
14
14
|
from .api_client import NIAApiClient, APIError
|
|
15
15
|
from dotenv import load_dotenv
|
|
16
|
+
import json
|
|
16
17
|
|
|
17
18
|
# Load .env from parent directory (nia-app/.env)
|
|
18
19
|
from pathlib import Path
|
|
@@ -84,6 +85,9 @@ async def index_repository(
|
|
|
84
85
|
|
|
85
86
|
Returns:
|
|
86
87
|
Status of the indexing operation
|
|
88
|
+
|
|
89
|
+
Important:
|
|
90
|
+
- When started indexing, prompt users to either use check_repository_status tool or go to app.trynia.ai to check the status.
|
|
87
91
|
"""
|
|
88
92
|
try:
|
|
89
93
|
client = await ensure_api_client()
|
|
@@ -150,7 +154,7 @@ async def search_codebase(
|
|
|
150
154
|
Search indexed repositories using natural language.
|
|
151
155
|
|
|
152
156
|
Args:
|
|
153
|
-
query: Natural language search query
|
|
157
|
+
query: Natural language search query. Don't just use keywords or unstrctured query, make a comprehensive question to get the best results possible.
|
|
154
158
|
repositories: List of repositories to search (owner/repo format). If not specified, searches all indexed repos.
|
|
155
159
|
include_sources: Whether to include source code in results
|
|
156
160
|
|
|
@@ -252,11 +256,11 @@ async def search_documentation(
|
|
|
252
256
|
include_sources: bool = True
|
|
253
257
|
) -> List[TextContent]:
|
|
254
258
|
"""
|
|
255
|
-
Search indexed documentation using natural language.
|
|
259
|
+
Search indexed documentation using natural language.
|
|
256
260
|
|
|
257
261
|
Args:
|
|
258
|
-
query: Natural language search query
|
|
259
|
-
sources: List of documentation source IDs to search.
|
|
262
|
+
query: Natural language search query. Don't just use keywords or unstrctured query, make a comprehensive question to get the best results possible.
|
|
263
|
+
sources: List of documentation source IDs to search. Use it based on user's query.
|
|
260
264
|
include_sources: Whether to include source references in results
|
|
261
265
|
|
|
262
266
|
Returns:
|
|
@@ -482,6 +486,9 @@ async def index_documentation(
|
|
|
482
486
|
|
|
483
487
|
Returns:
|
|
484
488
|
Status of the indexing operation
|
|
489
|
+
|
|
490
|
+
Important:
|
|
491
|
+
- When started indexing, prompt users to either use check_documentation_status tool or go to app.trynia.ai to check the status.
|
|
485
492
|
"""
|
|
486
493
|
try:
|
|
487
494
|
client = await ensure_api_client()
|
|
@@ -898,7 +905,7 @@ async def nia_deep_research_agent(
|
|
|
898
905
|
) -> List[TextContent]:
|
|
899
906
|
"""
|
|
900
907
|
Perform deep, multi-step research on a topic using advanced AI research capabilities.
|
|
901
|
-
Best for complex questions that need comprehensive analysis.
|
|
908
|
+
Best for complex questions that need comprehensive analysis. Don't just use keywords or unstrctured query, make a comprehensive question to get the best results possible.
|
|
902
909
|
|
|
903
910
|
USE THIS TOOL WHEN:
|
|
904
911
|
- Comparing multiple options ("compare X vs Y vs Z")
|
|
@@ -956,7 +963,7 @@ async def nia_deep_research_agent(
|
|
|
956
963
|
response_text += "### 📊 Research Findings:\n\n"
|
|
957
964
|
|
|
958
965
|
# Pretty print the JSON data
|
|
959
|
-
|
|
966
|
+
|
|
960
967
|
formatted_data = json.dumps(result["data"], indent=2)
|
|
961
968
|
response_text += f"```json\n{formatted_data}\n```\n\n"
|
|
962
969
|
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|