@oneentry/mcp-server 1.1.1 → 1.1.2

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/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.2",
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
  {