@oneentry/mcp-server 1.1.1 → 1.1.3

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 CHANGED
@@ -50,6 +50,18 @@ npm install -g @oneentry/mcp-server
50
50
 
51
51
  ---
52
52
 
53
+ ## ⚠️ Required: add to your project's CLAUDE.md
54
+
55
+ After connecting the MCP server, create or edit `CLAUDE.md` in the root of your project and add:
56
+
57
+ ```
58
+ This project uses OneEntry CMS. Before doing any work, call the `load-context` tool from the oneentry MCP server.
59
+ ```
60
+
61
+ > **Without this, Claude Code will not automatically load OneEntry SDK rules and may produce incorrect code.**
62
+
63
+ ---
64
+
53
65
  ## Available resources
54
66
 
55
67
  Read them in Claude Code by typing `@oneentry://rules/<name>`:
package/dist/index.js CHANGED
@@ -82,6 +82,15 @@ for (const skill of SKILLS) {
82
82
  // ---------------------------------------------------------------------------
83
83
  // Tools
84
84
  // ---------------------------------------------------------------------------
85
+ server.registerTool("load-context", {
86
+ description: "IMPORTANT: Call this tool automatically at the start of EVERY session when working on a project that uses OneEntry CMS or OneEntry SDK. " +
87
+ "This loads the full OneEntry SDK instructions, rules, and anti-hallucination guidelines into the context. " +
88
+ "Do not skip this — without it you will make mistakes working with OneEntry API.",
89
+ inputSchema: {},
90
+ }, async () => {
91
+ const text = await fetchContent(CLAUDE_MD_PATH);
92
+ return { content: [{ type: "text", text }] };
93
+ });
85
94
  server.registerTool("get-rule", {
86
95
  description: "Fetch the content of a specific OneEntry SDK rule by name",
87
96
  inputSchema: { name: z.string().describe(`Rule name. Available: ${RULES.map((r) => r.name).join(", ")}`) },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@oneentry/mcp-server",
3
- "version": "1.1.1",
3
+ "version": "1.1.3",
4
4
  "description": "MCP server for OneEntry SDK — rules and skills for Claude Code",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",
package/src/index.ts CHANGED
@@ -115,6 +115,21 @@ for (const skill of SKILLS) {
115
115
  // Tools
116
116
  // ---------------------------------------------------------------------------
117
117
 
118
+ server.registerTool(
119
+ "load-context",
120
+ {
121
+ description:
122
+ "IMPORTANT: Call this tool automatically at the start of EVERY session when working on a project that uses OneEntry CMS or OneEntry SDK. " +
123
+ "This loads the full OneEntry SDK instructions, rules, and anti-hallucination guidelines into the context. " +
124
+ "Do not skip this — without it you will make mistakes working with OneEntry API.",
125
+ inputSchema: {},
126
+ },
127
+ async () => {
128
+ const text = await fetchContent(CLAUDE_MD_PATH);
129
+ return { content: [{ type: "text" as const, text }] };
130
+ }
131
+ );
132
+
118
133
  server.registerTool(
119
134
  "get-rule",
120
135
  {