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.

@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: nia-mcp-server
3
- Version: 1.0.3
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/trynia](https://discord.gg/trynia)
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/trynia](https://discord.gg/trynia)
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
@@ -4,7 +4,7 @@ build-backend = "hatchling.build"
4
4
 
5
5
  [project]
6
6
  name = "nia-mcp-server"
7
- version = "1.0.3"
7
+ version = "1.0.5"
8
8
  description = "NIA Knowledge Agent - MCP server for intelligent codebase search"
9
9
  readme = "README.md"
10
10
  requires-python = ">=3.8"
@@ -2,4 +2,4 @@
2
2
  NIA MCP Server - Proxy server for NIA Knowledge Agent
3
3
  """
4
4
 
5
- __version__ = "1.0.3"
5
+ __version__ = "1.0.5"
@@ -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. If not specified, searches all indexed documentation.
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
- import json
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