nia-mcp-server 1.0.20__py3-none-any.whl → 1.0.21__py3-none-any.whl

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.

@@ -2,4 +2,4 @@
2
2
  NIA MCP Server - Proxy server for NIA Knowledge Agent
3
3
  """
4
4
 
5
- __version__ = "1.0.20"
5
+ __version__ = "1.0.21"
@@ -28,7 +28,7 @@ class NIAApiClient:
28
28
  self.client = httpx.AsyncClient(
29
29
  headers={
30
30
  "Authorization": f"Bearer {api_key}",
31
- "User-Agent": "nia-mcp-server/1.0.20",
31
+ "User-Agent": "nia-mcp-server/1.0.21",
32
32
  "Content-Type": "application/json"
33
33
  },
34
34
  timeout=720.0 # 12 minute timeout for deep research operations
nia_mcp_server/server.py CHANGED
@@ -335,18 +335,19 @@ async def search_documentation(
335
335
 
336
336
  Args:
337
337
  query: Natural language search query. Don't just use keywords or unstrctured query, make a comprehensive question to get the best results possible.
338
- sources: List of documentation identifiers to search. Can be:
338
+ sources: List of documentation identifiers to search. Preferred format is UUID, but also supports:
339
+ - Source UUIDs (e.g., "550e8400-e29b-41d4-a716-446655440000") - RECOMMENDED
339
340
  - Display names (e.g., "Vercel AI SDK - Core")
340
341
  - URLs (e.g., "https://sdk.vercel.ai/docs")
341
- - Source IDs (UUID format for backwards compatibility)
342
342
  include_sources: Whether to include source references in results
343
343
 
344
344
  Returns:
345
345
  Search results with relevant documentation excerpts
346
346
 
347
347
  Important:
348
- - You can now use friendly names instead of UUIDs! Try display names or URLs.
349
- - If you don't know the identifiers, use `list_documentation` tool to see available options.
348
+ - UUIDs are the preferred identifier format for best performance
349
+ - Use `list_documentation` tool to see available sources and their UUIDs
350
+ - Display names and URLs are also supported for convenience
350
351
  """
351
352
  try:
352
353
  client = await ensure_api_client()
@@ -356,20 +357,17 @@ async def search_documentation(
356
357
  return [TextContent(
357
358
  type="text",
358
359
  text="📚 **Please specify which documentation sources to search:**\n\n"
359
- "1. Use `list_documentation` to see available sources\n"
360
- "2. Then call `search_documentation(\"your query\", [\"source1\", \"source2\"])`\n\n"
361
- "**You can use any of these identifier formats:**\n"
360
+ "1. Use `list_documentation` to see available sources and their UUIDs\n"
361
+ "2. Then call `search_documentation(\"your query\", [\"uuid1\", \"uuid2\"])`\n\n"
362
+ "**Supported identifier formats (UUIDs preferred):**\n"
363
+ "- UUIDs: `\"550e8400-e29b-41d4-a716-446655440000\"` - RECOMMENDED\n"
362
364
  "- Display names: `\"Vercel AI SDK - Core\"`\n"
363
- "- URLs: `\"https://docs.trynia.ai/\"`\n"
364
- "- UUIDs: `\"550e8400-e29b-41d4-a716-446655440000\"`\n\n"
365
- "**Example:**\n"
365
+ "- URLs: `\"https://docs.trynia.ai/\"`\n\n"
366
+ "**Example (preferred):**\n"
366
367
  "```\n"
367
- "search_documentation(\"API reference\", [\"Vercel AI SDK - Core\"])\n"
368
+ "search_documentation(\"API reference\", [\"550e8400-e29b-41d4-a716-446655440000\"])\n"
368
369
  "```\n\n"
369
- "**📌 Tip:** Mix different identifier types in the same search:\n"
370
- "```\n"
371
- "search_documentation(\"query\", [\"Display Name\", \"https://docs.example.com/\"])\n"
372
- "```"
370
+ "**📌 Tip:** UUIDs provide best performance and reliability"
373
371
  )]
374
372
 
375
373
  # Build messages for the query
@@ -847,7 +845,7 @@ async def rename_resource(
847
845
  resource_type: Type of resource - "repository" or "documentation"
848
846
  identifier:
849
847
  - For repository: Repository in owner/repo format (e.g., "facebook/react")
850
- - For documentation: Can be display name, URL, or UUID (e.g., "Vercel AI SDK - Core", "https://docs.trynia.ai/", or "doc-id-123")
848
+ - For documentation: UUID preferred, also supports display name or URL (e.g., "550e8400-e29b-41d4-a716-446655440000", "Vercel AI SDK - Core", or "https://docs.trynia.ai/")
851
849
  new_name: New display name for the resource (1-100 characters)
852
850
 
853
851
  Returns:
@@ -855,7 +853,7 @@ async def rename_resource(
855
853
 
856
854
  Examples:
857
855
  - rename_resource("repository", "facebook/react", "React Framework")
858
- - rename_resource("documentation", "Vercel AI SDK - Core", "Python Official Docs")
856
+ - rename_resource("documentation", "550e8400-e29b-41d4-a716-446655440000", "Python Official Docs")
859
857
  - rename_resource("documentation", "https://docs.trynia.ai/", "NIA Documentation")
860
858
  """
861
859
  try:
@@ -918,14 +916,14 @@ async def delete_resource(
918
916
  resource_type: Type of resource - "repository" or "documentation"
919
917
  identifier:
920
918
  - For repository: Repository in owner/repo format (e.g., "facebook/react")
921
- - For documentation: Can be display name, URL, or UUID (e.g., "Vercel AI SDK - Core", "https://docs.trynia.ai/", or "doc-id-123")
919
+ - For documentation: UUID preferred, also supports display name or URL (e.g., "550e8400-e29b-41d4-a716-446655440000", "Vercel AI SDK - Core", or "https://docs.trynia.ai/")
922
920
 
923
921
  Returns:
924
922
  Confirmation of deletion
925
923
 
926
924
  Examples:
927
925
  - delete_resource("repository", "facebook/react")
928
- - delete_resource("documentation", "Vercel AI SDK - Core")
926
+ - delete_resource("documentation", "550e8400-e29b-41d4-a716-446655440000")
929
927
  - delete_resource("documentation", "https://docs.trynia.ai/")
930
928
  """
931
929
  try:
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: nia-mcp-server
3
- Version: 1.0.20
3
+ Version: 1.0.21
4
4
  Summary: Nia Knowledge Agent
5
5
  Project-URL: Homepage, https://trynia.ai
6
6
  Project-URL: Documentation, https://docs.trynia.ai
@@ -1,19 +1,19 @@
1
- nia_mcp_server/__init__.py,sha256=43Fw4mFrmz39fC_Bm1vMdF7Cl78hJiEJskqhB1WfLiA,85
1
+ nia_mcp_server/__init__.py,sha256=U4ztjfv89tU3YlGCCf3CKfTS2ZEeFmjpjjSMHRujBVM,85
2
2
  nia_mcp_server/__main__.py,sha256=YQSpFtDeKp18r8mKr084cHnRFV4416_EKCu9FTM8_ik,394
3
- nia_mcp_server/api_client.py,sha256=U5gARDC2p0-MUUDPCLmDtRgRSl-kRNwhDHXWE0n0dgU,35034
3
+ nia_mcp_server/api_client.py,sha256=e-U_RUGCGrC4DfjokIygWiprNQUAHt-stPxpwdsLG4I,35034
4
4
  nia_mcp_server/cli.py,sha256=32VSPNIocXtDgVBDZNZsxvj3kytBn54_a1pIE84vOdY,1834
5
5
  nia_mcp_server/profiles.py,sha256=2DD8PFRr5Ij4IK4sPUz0mH8aKjkrEtkKLC1R0iki2bA,7221
6
6
  nia_mcp_server/project_init.py,sha256=T0-ziJhofL4L8APwnM43BLhxtlmOHaYH-V9PF2yXLw4,7138
7
7
  nia_mcp_server/rule_transformer.py,sha256=wCxoQ1Kl_rI9mUFnh9kG5iCXYU4QInrmFQOReZfAFVo,11000
8
- nia_mcp_server/server.py,sha256=x5RTZ2Yc8VLL2Jeule_hA7o2EEvp7zl5UHLraDWseg4,130570
8
+ nia_mcp_server/server.py,sha256=BWSeAft-9El_nsf-69rDnt1HpUuz5_vB-9MrPHgsbr8,130666
9
9
  nia_mcp_server/setup.py,sha256=nJXVY8NHGtWROtoH8DW-3uOgyuPs4F9dW0cNhcbCLrM,5355
10
10
  nia_mcp_server/assets/rules/claude_rules.md,sha256=HNL5GJMUbFxSpNbIAJUQWqAywjMl4lf530I1in69aNY,7380
11
11
  nia_mcp_server/assets/rules/cursor_rules.md,sha256=hd6lhzNrK1ULQUYIEVeOnyKnuLKq4hmwZPbMqGUI1Lk,1720
12
12
  nia_mcp_server/assets/rules/nia_rules.md,sha256=l6sx000uqoczoHYqOPp4hnNgyfpnhvO9NyT0fVx5nU0,8059
13
13
  nia_mcp_server/assets/rules/vscode_rules.md,sha256=fqn4aJO_bhftaCGkVoquruQHf3EaREQJQWHXq6a4FOk,6967
14
14
  nia_mcp_server/assets/rules/windsurf_rules.md,sha256=PzU2as5gaiVsV6PAzg8T_-GR7VCyRQGMjAHcSzYF_ms,3354
15
- nia_mcp_server-1.0.20.dist-info/METADATA,sha256=-akLTFU4GDQE-PpDSvfUYN7l8Va6By8KiZqkq371HYg,1324
16
- nia_mcp_server-1.0.20.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
17
- nia_mcp_server-1.0.20.dist-info/entry_points.txt,sha256=V74FQEp48pfWxPCl7B9mihtqvIJNVjCSbRfCz4ww77I,64
18
- nia_mcp_server-1.0.20.dist-info/licenses/LICENSE,sha256=IrdVKi3bsiB2MTLM26MltBRpwyNi-8P6Cy0EnmAN76A,1557
19
- nia_mcp_server-1.0.20.dist-info/RECORD,,
15
+ nia_mcp_server-1.0.21.dist-info/METADATA,sha256=v0nxEs-TwVywd4bN4HbdCHBLI9AgZkq_kmt84-r8J2o,1324
16
+ nia_mcp_server-1.0.21.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
17
+ nia_mcp_server-1.0.21.dist-info/entry_points.txt,sha256=V74FQEp48pfWxPCl7B9mihtqvIJNVjCSbRfCz4ww77I,64
18
+ nia_mcp_server-1.0.21.dist-info/licenses/LICENSE,sha256=IrdVKi3bsiB2MTLM26MltBRpwyNi-8P6Cy0EnmAN76A,1557
19
+ nia_mcp_server-1.0.21.dist-info/RECORD,,