@modootoday/pmcp 0.5.1 → 0.6.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 +43 -0
- package/dist/{chunk-76UKXVUE.js → chunk-5TX2IAVD.js} +2 -2
- package/dist/chunk-6TSHDCUY.js +1238 -0
- package/dist/{chunk-ICHBC5FM.js → chunk-FXBLBKP6.js} +2 -2
- package/dist/cli.js +301 -29
- package/dist/http.js +1 -1
- package/dist/index.d.ts +126 -1
- package/dist/index.js +21 -3
- package/dist/stdio.js +2 -2
- package/package.json +1 -1
- package/dist/chunk-XTLANVRL.js +0 -193
package/README.md
CHANGED
|
@@ -70,6 +70,49 @@ Paths resolve against the file's directory. Keys are `roots`, `scopes`,
|
|
|
70
70
|
the same meaning; an unknown key is an error. A flag replaces the file's list
|
|
71
71
|
of its kind. `--config <file>` names another file and `--no-config` ignores it.
|
|
72
72
|
|
|
73
|
+
## Native files for each agent tool
|
|
74
|
+
|
|
75
|
+
`pmcp project` writes what Claude Code, Codex, Gemini CLI, Grok Build and
|
|
76
|
+
Antigravity read natively, from cross-tool sources under `.agents/`
|
|
77
|
+
(`skills/<name>/SKILL.md`, `agents/<name>/agent.md`, `rules/*.md`) and the rest
|
|
78
|
+
of `pmcp.toml`:
|
|
79
|
+
|
|
80
|
+
```toml
|
|
81
|
+
[targets]
|
|
82
|
+
tools = ["claude", "codex", "gemini", "grok", "antigravity"]
|
|
83
|
+
|
|
84
|
+
[skills.deploy]
|
|
85
|
+
invocation = "user" # the person starts it; the model is not offered it
|
|
86
|
+
|
|
87
|
+
[agents.reviewer.claude]
|
|
88
|
+
tools = "Read, Grep" # fields one tool reads stay out of agent.md
|
|
89
|
+
|
|
90
|
+
[rules.packages]
|
|
91
|
+
file = ".agent/rules/PACKAGE.RULE.md" # each package's path-scoped rule
|
|
92
|
+
strip = ["apps"] # dropped from derived link names
|
|
93
|
+
|
|
94
|
+
[mcp.skills]
|
|
95
|
+
command = "node"
|
|
96
|
+
args = ["${PROJECT_ROOT}/node_modules/@modootoday/pmcp/dist/cli.js", "serve"]
|
|
97
|
+
```
|
|
98
|
+
|
|
99
|
+
```sh
|
|
100
|
+
pmcp project # write
|
|
101
|
+
pmcp project --check # exit 2 on drift, stale or undeclared outputs
|
|
102
|
+
pmcp project add <name> # copy a catalog skill or agent into .agents/
|
|
103
|
+
pmcp project remove <name>
|
|
104
|
+
pmcp doctor # ask each installed tool what it loads
|
|
105
|
+
```
|
|
106
|
+
|
|
107
|
+
Rules go to `.claude/rules/<dir>/`, never the top level, because Grok Build
|
|
108
|
+
loads top-level `.claude/rules/*.md` in every session regardless of `paths:`.
|
|
109
|
+
A server that names `${PROJECT_ROOT}` is launched through `sh`, which finds
|
|
110
|
+
`pmcp.toml` at spawn time, so the generated files hold no machine's path.
|
|
111
|
+
`pmcp.lock` records what was written; a file pmcp did not write is never
|
|
112
|
+
overwritten. `doctor` calls no model: it reads `claude mcp list`,
|
|
113
|
+
`codex mcp list`, `gemini skills list`, `gemini mcp list` and
|
|
114
|
+
`grok inspect --json`, and skips a tool that is not installed.
|
|
115
|
+
|
|
73
116
|
## Package skills
|
|
74
117
|
|
|
75
118
|
Skills are discovered by filename, including `skills/`, `.agents/skills/`,
|
|
@@ -1129,7 +1129,7 @@ function registerSkillTools(server, tools) {
|
|
|
1129
1129
|
return server;
|
|
1130
1130
|
}
|
|
1131
1131
|
function createSkillServer(options) {
|
|
1132
|
-
const server = new McpServer({ name: SERVER_NAME, version: "0.
|
|
1132
|
+
const server = new McpServer({ name: SERVER_NAME, version: "0.6.0" });
|
|
1133
1133
|
const tools = createSkillTools(options);
|
|
1134
1134
|
registerSkillsExtension(server, tools.skills);
|
|
1135
1135
|
return registerSkillTools(server, tools);
|
|
@@ -1167,4 +1167,4 @@ export {
|
|
|
1167
1167
|
registerSkillTools,
|
|
1168
1168
|
createSkillServer
|
|
1169
1169
|
};
|
|
1170
|
-
//# sourceMappingURL=chunk-
|
|
1170
|
+
//# sourceMappingURL=chunk-5TX2IAVD.js.map
|