nia-mcp-server 1.0.9__py3-none-any.whl → 1.0.10__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.
- nia_mcp_server/__init__.py +1 -1
- nia_mcp_server/api_client.py +9 -3
- nia_mcp_server/server.py +9 -2
- {nia_mcp_server-1.0.9.dist-info → nia_mcp_server-1.0.10.dist-info}/METADATA +1 -1
- {nia_mcp_server-1.0.9.dist-info → nia_mcp_server-1.0.10.dist-info}/RECORD +8 -8
- {nia_mcp_server-1.0.9.dist-info → nia_mcp_server-1.0.10.dist-info}/WHEEL +0 -0
- {nia_mcp_server-1.0.9.dist-info → nia_mcp_server-1.0.10.dist-info}/entry_points.txt +0 -0
- {nia_mcp_server-1.0.9.dist-info → nia_mcp_server-1.0.10.dist-info}/licenses/LICENSE +0 -0
nia_mcp_server/__init__.py
CHANGED
nia_mcp_server/api_client.py
CHANGED
|
@@ -402,7 +402,9 @@ class NIAApiClient:
|
|
|
402
402
|
url_patterns: List[str] = None,
|
|
403
403
|
exclude_patterns: List[str] = None,
|
|
404
404
|
max_age: int = None,
|
|
405
|
-
only_main_content: bool = True
|
|
405
|
+
only_main_content: bool = True,
|
|
406
|
+
wait_for: int = None,
|
|
407
|
+
include_screenshot: bool = None
|
|
406
408
|
) -> Dict[str, Any]:
|
|
407
409
|
"""Create a new documentation/web data source."""
|
|
408
410
|
try:
|
|
@@ -415,10 +417,14 @@ class NIAApiClient:
|
|
|
415
417
|
# Add optional parameters
|
|
416
418
|
if max_age is not None:
|
|
417
419
|
payload["max_age"] = max_age
|
|
418
|
-
#
|
|
419
|
-
|
|
420
|
+
# Don't hardcode formats - let backend defaults apply
|
|
421
|
+
# This allows screenshots to be captured by default
|
|
420
422
|
if only_main_content is not None:
|
|
421
423
|
payload["only_main_content"] = only_main_content
|
|
424
|
+
if wait_for is not None:
|
|
425
|
+
payload["wait_for"] = wait_for
|
|
426
|
+
if include_screenshot is not None:
|
|
427
|
+
payload["include_screenshot"] = include_screenshot
|
|
422
428
|
|
|
423
429
|
response = await self.client.post(
|
|
424
430
|
f"{self.base_url}/v2/data-sources",
|
nia_mcp_server/server.py
CHANGED
|
@@ -506,7 +506,9 @@ async def index_documentation(
|
|
|
506
506
|
url_patterns: Optional[List[str]] = None,
|
|
507
507
|
exclude_patterns: Optional[List[str]] = None,
|
|
508
508
|
max_age: Optional[int] = None,
|
|
509
|
-
only_main_content: Optional[bool] = True
|
|
509
|
+
only_main_content: Optional[bool] = True,
|
|
510
|
+
wait_for: Optional[int] = None,
|
|
511
|
+
include_screenshot: Optional[bool] = None
|
|
510
512
|
) -> List[TextContent]:
|
|
511
513
|
"""
|
|
512
514
|
Index documentation or website for intelligent search.
|
|
@@ -517,6 +519,8 @@ async def index_documentation(
|
|
|
517
519
|
exclude_patterns: Optional list of URL patterns to exclude from crawling (e.g., ["/blog/*", "/changelog/*"])
|
|
518
520
|
max_age: Maximum age of cached content in seconds (for fast scraping mode)
|
|
519
521
|
only_main_content: Extract only main content (removes navigation, ads, etc.)
|
|
522
|
+
wait_for: Time to wait for page to load in milliseconds (defaults to backend setting)
|
|
523
|
+
include_screenshot: Whether to capture full page screenshots (defaults to backend setting)
|
|
520
524
|
|
|
521
525
|
Returns:
|
|
522
526
|
Status of the indexing operation
|
|
@@ -525,6 +529,7 @@ async def index_documentation(
|
|
|
525
529
|
- When started indexing, prompt users to either use check_documentation_status tool or go to app.trynia.ai to check the status.
|
|
526
530
|
- By default, crawls the entire domain (up to 10,000 pages)
|
|
527
531
|
- Use exclude_patterns to filter out unwanted sections like blogs, changelogs, etc.
|
|
532
|
+
- Screenshots are captured by default to provide visual context
|
|
528
533
|
"""
|
|
529
534
|
try:
|
|
530
535
|
client = await ensure_api_client()
|
|
@@ -536,7 +541,9 @@ async def index_documentation(
|
|
|
536
541
|
url_patterns=url_patterns,
|
|
537
542
|
exclude_patterns=exclude_patterns,
|
|
538
543
|
max_age=max_age,
|
|
539
|
-
only_main_content=only_main_content
|
|
544
|
+
only_main_content=only_main_content,
|
|
545
|
+
wait_for=wait_for,
|
|
546
|
+
include_screenshot=include_screenshot
|
|
540
547
|
)
|
|
541
548
|
|
|
542
549
|
source_id = result.get("id")
|
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
nia_mcp_server/__init__.py,sha256=
|
|
1
|
+
nia_mcp_server/__init__.py,sha256=KyI9fMELt-32jL_i_v49z4TF3p3kOf7D_pfv62ZoxEU,85
|
|
2
2
|
nia_mcp_server/__main__.py,sha256=XY11ESL4hctu-BBgtPATFZyd1o-O7wE7y-UOSoNs-hw,152
|
|
3
|
-
nia_mcp_server/api_client.py,sha256=
|
|
3
|
+
nia_mcp_server/api_client.py,sha256=_6Oh3ZTqNVCOQsQcV8ep9mHZ0giNbE_ht93pamU-PlI,24654
|
|
4
4
|
nia_mcp_server/profiles.py,sha256=2DD8PFRr5Ij4IK4sPUz0mH8aKjkrEtkKLC1R0iki2bA,7221
|
|
5
5
|
nia_mcp_server/project_init.py,sha256=T0-ziJhofL4L8APwnM43BLhxtlmOHaYH-V9PF2yXLw4,7138
|
|
6
6
|
nia_mcp_server/rule_transformer.py,sha256=wCxoQ1Kl_rI9mUFnh9kG5iCXYU4QInrmFQOReZfAFVo,11000
|
|
7
|
-
nia_mcp_server/server.py,sha256=
|
|
7
|
+
nia_mcp_server/server.py,sha256=W3yyKiAsumVqVpS9rMiKtPhav8cXiw8VqG4DGuUOi0k,66246
|
|
8
8
|
nia_mcp_server/assets/rules/claude_rules.md,sha256=HNL5GJMUbFxSpNbIAJUQWqAywjMl4lf530I1in69aNY,7380
|
|
9
9
|
nia_mcp_server/assets/rules/cursor_rules.md,sha256=hd6lhzNrK1ULQUYIEVeOnyKnuLKq4hmwZPbMqGUI1Lk,1720
|
|
10
10
|
nia_mcp_server/assets/rules/nia_rules.md,sha256=mvdYrkoiRgxeROhtnRXCV53TX5B9wqLiCJ6oYTqSPfY,6345
|
|
11
11
|
nia_mcp_server/assets/rules/vscode_rules.md,sha256=fqn4aJO_bhftaCGkVoquruQHf3EaREQJQWHXq6a4FOk,6967
|
|
12
12
|
nia_mcp_server/assets/rules/windsurf_rules.md,sha256=PzU2as5gaiVsV6PAzg8T_-GR7VCyRQGMjAHcSzYF_ms,3354
|
|
13
|
-
nia_mcp_server-1.0.
|
|
14
|
-
nia_mcp_server-1.0.
|
|
15
|
-
nia_mcp_server-1.0.
|
|
16
|
-
nia_mcp_server-1.0.
|
|
17
|
-
nia_mcp_server-1.0.
|
|
13
|
+
nia_mcp_server-1.0.10.dist-info/METADATA,sha256=0AYn0fZjCz0tuB_vuCCpVuyRbr4Bi2nCgQkgXaZ77RY,6767
|
|
14
|
+
nia_mcp_server-1.0.10.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
|
|
15
|
+
nia_mcp_server-1.0.10.dist-info/entry_points.txt,sha256=V74FQEp48pfWxPCl7B9mihtqvIJNVjCSbRfCz4ww77I,64
|
|
16
|
+
nia_mcp_server-1.0.10.dist-info/licenses/LICENSE,sha256=IrdVKi3bsiB2MTLM26MltBRpwyNi-8P6Cy0EnmAN76A,1557
|
|
17
|
+
nia_mcp_server-1.0.10.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|