rulesync 3.18.0 → 3.20.0
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.
- package/README.md +98 -0
- package/dist/index.cjs +1264 -461
- package/dist/index.js +1209 -406
- package/package.json +2 -1
package/README.md
CHANGED
|
@@ -557,6 +557,104 @@ Focus on the difference of MCP tools usage.
|
|
|
557
557
|
So, in this case, approximately 92% reduction in MCP tools consumption!
|
|
558
558
|
</details>
|
|
559
559
|
|
|
560
|
+
## Rulesync MCP Server (Experimental)
|
|
561
|
+
|
|
562
|
+
Rulesync provides an MCP (Model Context Protocol) server that enables AI agents to manage your Rulesync files. This allows AI agents to discover, read, create, update, and delete files dynamically.
|
|
563
|
+
|
|
564
|
+
### Available Tools
|
|
565
|
+
|
|
566
|
+
The Rulesync MCP server provides the following tools:
|
|
567
|
+
|
|
568
|
+
<details>
|
|
569
|
+
<summary>Rules Management</summary>
|
|
570
|
+
|
|
571
|
+
- `listRules` - List all rule files
|
|
572
|
+
- `getRule` - Get a specific rule file
|
|
573
|
+
- `putRule` - Create or update a rule file
|
|
574
|
+
- `deleteRule` - Delete a rule file
|
|
575
|
+
|
|
576
|
+
</details>
|
|
577
|
+
|
|
578
|
+
<details>
|
|
579
|
+
<summary>Commands Management</summary>
|
|
580
|
+
|
|
581
|
+
- `listCommands` - List all command files
|
|
582
|
+
- `getCommand` - Get a specific command file
|
|
583
|
+
- `putCommand` - Create or update a command file
|
|
584
|
+
- `deleteCommand` - Delete a command file
|
|
585
|
+
|
|
586
|
+
</details>
|
|
587
|
+
|
|
588
|
+
<details>
|
|
589
|
+
<summary>Subagents Management</summary>
|
|
590
|
+
|
|
591
|
+
- `listSubagents` - List all subagent files
|
|
592
|
+
- `getSubagent` - Get a specific subagent file
|
|
593
|
+
- `putSubagent` - Create or update a subagent file
|
|
594
|
+
- `deleteSubagent` - Delete a subagent file
|
|
595
|
+
|
|
596
|
+
</details>
|
|
597
|
+
|
|
598
|
+
<details>
|
|
599
|
+
<summary>Ignore Files Management</summary>
|
|
600
|
+
|
|
601
|
+
- `getIgnoreFile` - Get the ignore file
|
|
602
|
+
- `putIgnoreFile` - Create or update the ignore file
|
|
603
|
+
- `deleteIgnoreFile` - Delete the ignore file
|
|
604
|
+
|
|
605
|
+
</details>
|
|
606
|
+
|
|
607
|
+
<details>
|
|
608
|
+
<summary>MCP Configuration Management</summary>
|
|
609
|
+
|
|
610
|
+
- `getMcpFile` - Get the MCP configuration file
|
|
611
|
+
- `putMcpFile` - Create or update the MCP configuration file
|
|
612
|
+
- `deleteMcpFile` - Delete the MCP configuration file
|
|
613
|
+
|
|
614
|
+
</details>
|
|
615
|
+
|
|
616
|
+
### Usage
|
|
617
|
+
|
|
618
|
+
#### Starting the MCP Server
|
|
619
|
+
|
|
620
|
+
```bash
|
|
621
|
+
rulesync mcp
|
|
622
|
+
```
|
|
623
|
+
|
|
624
|
+
This starts an MCP server using stdio transport that AI agents can communicate with.
|
|
625
|
+
|
|
626
|
+
#### Configuration
|
|
627
|
+
|
|
628
|
+
Add the Rulesync MCP server to your `.rulesync/mcp.json`:
|
|
629
|
+
|
|
630
|
+
```json
|
|
631
|
+
{
|
|
632
|
+
"mcpServers": {
|
|
633
|
+
"rulesync-mcp": {
|
|
634
|
+
"type": "stdio",
|
|
635
|
+
"command": "npx",
|
|
636
|
+
"args": ["-y", "rulesync", "mcp"],
|
|
637
|
+
"env": {}
|
|
638
|
+
}
|
|
639
|
+
}
|
|
640
|
+
}
|
|
641
|
+
```
|
|
642
|
+
|
|
643
|
+
For development, you can use:
|
|
644
|
+
|
|
645
|
+
```json
|
|
646
|
+
{
|
|
647
|
+
"mcpServers": {
|
|
648
|
+
"rulesync-mcp": {
|
|
649
|
+
"type": "stdio",
|
|
650
|
+
"command": "pnpm",
|
|
651
|
+
"args": ["dev", "mcp"],
|
|
652
|
+
"env": {}
|
|
653
|
+
}
|
|
654
|
+
}
|
|
655
|
+
}
|
|
656
|
+
```
|
|
657
|
+
|
|
560
658
|
## Contributing
|
|
561
659
|
|
|
562
660
|
Issues and Pull Requests are welcome!
|