@intijs/mcp 0.0.0-stage → 0.1.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/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2024–present Inti.js Contributors
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/README.md CHANGED
@@ -1,3 +1,126 @@
1
- # Temporary Holding Version
1
+ # @intijs/mcp
2
2
 
3
- This version is a temporary placeholder for this package. An operational version to replace this has been submitted for review and is awaiting a staged release.
3
+ MCP server for Inti.js. Exposes your headless CMS content as [Model Context Protocol](https://modelcontextprotocol.io) tools, so an AI agent can read and edit pages using the same operations the browser's inline editor uses.
4
+
5
+ ```
6
+ Claude Code / Cursor / Claude Desktop
7
+ │ tools/call → inti_update_field
8
+ ▼
9
+ @intijs/mcp (stdio)
10
+ │ WritableAdapter.updateBlockField()
11
+ ▼
12
+ @intijs/adapter-wordpress
13
+ ▼
14
+ WordPress REST (wp/v2 + Application Password)
15
+ ```
16
+
17
+ Inti is currently in beta.
18
+
19
+ ## Install
20
+
21
+ > **Not on npm yet.** The `@intijs` packages will be published there. Until then, run the server from a clone of the repository that is installed and built (`npm install && npm run build`): the clone already contains every adapter.
22
+
23
+ Once published:
24
+
25
+ ```bash
26
+ npm install -D @intijs/mcp
27
+ ```
28
+
29
+ The server needs the adapter of your CMS installed alongside it. It works with the adapters that write: WordPress, Kitsuden, Strapi and Keystatic. Contentful and Sanity are read-only and the server does not start with them. With no `INTI_ADAPTER` it uses the local store (`.inti/content.json`).
30
+
31
+ ## Configure
32
+
33
+ The server reads the same environment variables as the rest of Inti — see [`.env.example`](../../.env.example). At minimum:
34
+
35
+ ```bash
36
+ INTI_ADAPTER=wordpress
37
+ INTI_WP_ENDPOINT=https://cms.yoursite.com
38
+ INTI_WP_USER=editor
39
+ INTI_WP_APP_PASSWORD=xxxx xxxx xxxx xxxx
40
+ ```
41
+
42
+ ### Claude Code
43
+
44
+ ```bash
45
+ # today, from the clone:
46
+ claude mcp add inti -- node /absolute/path/to/inti/packages/mcp/bin/inti-mcp.js
47
+
48
+ # once published:
49
+ claude mcp add inti -- npx -y @intijs/mcp
50
+ ```
51
+
52
+ ### Claude Desktop / Cursor
53
+
54
+ Once published (until then use `"command": "node"` with the path to `packages/mcp/bin/inti-mcp.js` in the clone as its only argument):
55
+
56
+ ```json
57
+ {
58
+ "mcpServers": {
59
+ "inti": {
60
+ "command": "npx",
61
+ "args": ["-y", "@intijs/mcp"],
62
+ "env": {
63
+ "INTI_ADAPTER": "wordpress",
64
+ "INTI_WP_ENDPOINT": "https://cms.yoursite.com",
65
+ "INTI_WP_USER": "editor",
66
+ "INTI_WP_APP_PASSWORD": "xxxx xxxx xxxx xxxx"
67
+ }
68
+ }
69
+ }
70
+ }
71
+ ```
72
+
73
+ ## Tools
74
+
75
+ Tools are advertised **based on what your adapter actually implements** — an agent never sees a tool that would always fail.
76
+
77
+ | Tool | Writes | Purpose |
78
+ |---|---|---|
79
+ | `inti_get_page` | — | Read a page by slug. Returns `documentId` and the index of every block. |
80
+ | `inti_search_entries` | — | Search entries in a collection to find a relation target. |
81
+ | `inti_get_vocabulary` | — | List the block types the agent may compose with, their fields and the items available for reference fields. Only with `INTI_MCP_VOCABULARY`. |
82
+ | `inti_update_field` | yes | Update one field of one block. Dot-paths supported (`cta.label`). |
83
+ | `inti_update_block` | yes | Replace a block's entire data object. |
84
+ | `inti_insert_block` | yes | Insert a new block of an existing CMS type. |
85
+ | `inti_insert_blocks` | yes | Insert several blocks at once, in order: they all go in or none does. |
86
+ | `inti_move_block` | yes | Reorder blocks. |
87
+ | `inti_duplicate_block` | yes | Duplicate a block in place. |
88
+ | `inti_remove_block` | yes | Delete a block. |
89
+ | `inti_create_draft` | yes | Create a working copy of a page and return its `documentId`. Visitors see nothing until it is published. |
90
+ | `inti_publish_draft` | yes | Publish a working copy over its page. |
91
+ | `inti_discard_draft` | yes | Throw away a working copy. The published page does not change. |
92
+
93
+ `inti_get_page` is the entry point: the write tools need a `documentId` and a block index, and that's where both come from.
94
+
95
+ ## Safety
96
+
97
+ Writes go to your **live CMS** unless the agent works on a draft: with an adapter that supports drafts, `inti_create_draft` returns a working copy that visitors do not see until it is published. There is no undo from the agent's side.
98
+
99
+ The server writes with the credentials in its environment and does **not** pass through the `resolveActor` / `beforeWrite` plugins of your site: those protect the browser's editor, not this process. What limits an agent is listed here.
100
+
101
+ - Point it at a staging site while you get a feel for it.
102
+ - Use a WordPress Application Password scoped to an account with only the permissions you need, not an admin.
103
+ - Set `INTI_MCP_VOCABULARY` to a JSON file with the block types the agent may use: what it inserts is validated against it, and `inti_get_vocabulary` shows it to the agent. If the file cannot be read the server does not start.
104
+ - Set `INTI_MCP_READONLY=1` to drop every write tool. The read tools keep working, so an agent can still inspect content it cannot change.
105
+
106
+ ```json
107
+ "env": { "INTI_MCP_READONLY": "1" }
108
+ ```
109
+
110
+ Credentials stay in this process — they are never sent to the model, only used to sign requests to your CMS.
111
+
112
+ ## Example session
113
+
114
+ > **You:** Read the home page and make the hero heading more direct.
115
+
116
+ The agent calls `inti_get_page({ slug: "home" })`, sees block 0 is a `Hero` with `heading: "Welcome to our website"`, then calls `inti_update_field({ documentId: "42", blockIndex: 0, field: "heading", value: "Ship faster with Astro" })`.
117
+
118
+ The change is live in WordPress. Your Astro site picks it up on the next request.
119
+
120
+ ## Troubleshooting
121
+
122
+ **The agent reads sample or empty content instead of your CMS** — `INTI_ADAPTER` isn't set in the server's environment, so it is using the local store (the startup line on stderr says `adapter "local"`). MCP clients don't inherit your shell: set `INTI_ADAPTER` and its credentials in the `env` block of the client config, not just in `.env`.
123
+
124
+ **"does not support write-back"** — the adapter resolved but isn't writable. The WordPress, Kitsuden, Strapi and Keystatic adapters support writes; Contentful and Sanity are read-only.
125
+
126
+ **No tools appear** — check the client's MCP logs. This server writes diagnostics to stderr on startup, including the adapter name and the tool list.
@@ -0,0 +1,7 @@
1
+ #!/usr/bin/env node
2
+ import { startServer } from '../dist/server.js';
3
+
4
+ startServer().catch((error) => {
5
+ process.stderr.write(`[inti-mcp] Fatal: ${error instanceof Error ? error.message : String(error)}\n`);
6
+ process.exit(1);
7
+ });
@@ -0,0 +1,4 @@
1
+ export { startServer } from './server.js';
2
+ export { createToolRegistry } from './tools.js';
3
+ export type { McpToolDef, ToolCallResult, ToolRegistry, ToolRegistryOptions } from './tools.js';
4
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,aAAa,CAAC;AAC1C,OAAO,EAAE,kBAAkB,EAAE,MAAM,YAAY,CAAC;AAChD,YAAY,EAAE,UAAU,EAAE,cAAc,EAAE,YAAY,EAAE,mBAAmB,EAAE,MAAM,YAAY,CAAC"}
package/dist/index.js ADDED
@@ -0,0 +1,3 @@
1
+ export { startServer } from './server.js';
2
+ export { createToolRegistry } from './tools.js';
3
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,aAAa,CAAC;AAC1C,OAAO,EAAE,kBAAkB,EAAE,MAAM,YAAY,CAAC"}
@@ -0,0 +1,12 @@
1
+ /**
2
+ * Inti's MCP server over stdio.
3
+ *
4
+ * Exposes the WritableAdapter contract as Model Context Protocol tools, so
5
+ * that an agent (Claude Code, Cursor, Claude Desktop) can read and edit the
6
+ * CMS content with the same operations the browser's inline editing uses.
7
+ *
8
+ * IMPORTANT: over stdio, stdout is the protocol channel. Every log goes to
9
+ * stderr — a console.log would break the connection with the client.
10
+ */
11
+ export declare function startServer(): Promise<void>;
12
+ //# sourceMappingURL=server.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"server.d.ts","sourceRoot":"","sources":["../src/server.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AAmBH,wBAAsB,WAAW,IAAI,OAAO,CAAC,IAAI,CAAC,CAoDjD"}
package/dist/server.js ADDED
@@ -0,0 +1,63 @@
1
+ /**
2
+ * Inti's MCP server over stdio.
3
+ *
4
+ * Exposes the WritableAdapter contract as Model Context Protocol tools, so
5
+ * that an agent (Claude Code, Cursor, Claude Desktop) can read and edit the
6
+ * CMS content with the same operations the browser's inline editing uses.
7
+ *
8
+ * IMPORTANT: over stdio, stdout is the protocol channel. Every log goes to
9
+ * stderr — a console.log would break the connection with the client.
10
+ */
11
+ import { Server } from '@modelcontextprotocol/sdk/server/index.js';
12
+ import { StdioServerTransport } from '@modelcontextprotocol/sdk/server/stdio.js';
13
+ import { CallToolRequestSchema, ListToolsRequestSchema } from '@modelcontextprotocol/sdk/types.js';
14
+ import { resolveWriteAdapter, env } from '@intijs/core/server';
15
+ import { readFileSync } from 'node:fs';
16
+ import { createToolRegistry } from './tools.js';
17
+ /** Version advertised to the MCP client */
18
+ const VERSION = '0.1.0';
19
+ function log(message) {
20
+ process.stderr.write(`[inti-mcp] ${message}\n`);
21
+ }
22
+ export async function startServer() {
23
+ const adapter = await resolveWriteAdapter();
24
+ if (!adapter) {
25
+ const configured = env('INTI_ADAPTER');
26
+ log(configured && configured !== 'local'
27
+ ? `Adapter "${configured}" could not be resolved or does not support write-back.\n` +
28
+ ` Check that @intijs/adapter-${configured} is installed and its INTI_* credentials are set.`
29
+ : 'No CMS adapter configured. Set INTI_ADAPTER (e.g. "wordpress") plus its credentials.\n' +
30
+ ' See .env.example for the full list of variables.');
31
+ process.exit(1);
32
+ }
33
+ const readOnly = /^(1|true|yes)$/i.test(env('INTI_MCP_READONLY') ?? '');
34
+ const vocabularyFile = env('INTI_MCP_VOCABULARY');
35
+ let vocabulary;
36
+ if (vocabularyFile) {
37
+ try {
38
+ const parsed = JSON.parse(readFileSync(vocabularyFile, 'utf8'));
39
+ vocabulary = Array.isArray(parsed) ? { blocks: parsed } : parsed;
40
+ }
41
+ catch (error) {
42
+ // Without a vocabulary an agent could write anything: do not start
43
+ log(`Could not read INTI_MCP_VOCABULARY (${vocabularyFile}): ${error instanceof Error ? error.message : error}`);
44
+ process.exit(1);
45
+ }
46
+ }
47
+ const registry = createToolRegistry(adapter, { readOnly, vocabulary });
48
+ const tools = registry.list();
49
+ const server = new Server({ name: 'inti', version: VERSION }, { capabilities: { tools: {} } });
50
+ server.setRequestHandler(ListToolsRequestSchema, async () => ({ tools }));
51
+ server.setRequestHandler(CallToolRequestSchema, async (request) => {
52
+ const { name, arguments: args } = request.params;
53
+ const result = await registry.call(name, (args ?? {}));
54
+ return {
55
+ content: [{ type: 'text', text: result.text }],
56
+ isError: !result.ok
57
+ };
58
+ });
59
+ await server.connect(new StdioServerTransport());
60
+ log(`Connected — adapter "${adapter.name}", ${tools.length} tools${readOnly ? ' (read-only mode)' : ''}: ` +
61
+ tools.map((t) => t.name).join(', '));
62
+ }
63
+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,OAAO;YACH,OAAO,EAAE,CAAC,EAAE,IAAI,EAAE,MAAe,EAAE,IAAI,EAAE,MAAM,CAAC,IAAI,EAAE,CAAC;YACvD,OAAO,EAAE,CAAC,MAAM,CAAC,EAAE;SACtB,CAAC;IACN,CAAC,CAAC,CAAC;IAEH,MAAM,MAAM,CAAC,OAAO,CAAC,IAAI,oBAAoB,EAAE,CAAC,CAAC;IAEjD,GAAG,CACC,wBAAwB,OAAO,CAAC,IAAI,MAAM,KAAK,CAAC,MAAM,SAAS,QAAQ,CAAC,CAAC,CAAC,mBAAmB,CAAC,CAAC,CAAC,EAAE,IAAI;QAClG,KAAK,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,CAC1C,CAAC;AACN,CAAC"}
@@ -0,0 +1,67 @@
1
+ /**
2
+ * Definition and dispatch of Inti's MCP tools.
3
+ *
4
+ * Pure module: it touches neither stdio nor the MCP SDK. It receives an
5
+ * already resolved adapter and exposes which tools it supports and how to
6
+ * run them. That keeps the protocol isolated in server.ts and this logic testable.
7
+ */
8
+ import type { DataItem, Vocabulary } from '@intijs/genui';
9
+ export interface McpToolDef {
10
+ name: string;
11
+ description: string;
12
+ inputSchema: {
13
+ type: 'object';
14
+ properties: Record<string, unknown>;
15
+ required?: string[];
16
+ };
17
+ }
18
+ export interface ToolCallResult {
19
+ /** false → the MCP client marks it as a tool error */
20
+ ok: boolean;
21
+ /** Text the agent sees */
22
+ text: string;
23
+ }
24
+ export interface ToolRegistryOptions {
25
+ /**
26
+ * Blocks every tool that writes to the CMS. Write tools stop being
27
+ * advertised and are rejected if they are invoked anyway.
28
+ */
29
+ readOnly?: boolean;
30
+ /**
31
+ * The blocks an agent may compose. With it, what the agent inserts is validated
32
+ * with the same rules as the editor's generation; without it, only the CMS decides.
33
+ */
34
+ vocabulary?: AgentVocabulary;
35
+ }
36
+ export interface AgentVocabulary {
37
+ blocks: Vocabulary;
38
+ /** What can be picked in reference fields, per source */
39
+ sources?: Record<string, DataItem[]>;
40
+ }
41
+ export interface ToolRegistry {
42
+ list(): McpToolDef[];
43
+ call(name: string, args: Record<string, unknown>): Promise<ToolCallResult>;
44
+ }
45
+ /** Minimal adapter the registry expects (everything optional except the name) */
46
+ interface AdapterLike {
47
+ name?: string;
48
+ fetchPageBySlug?(slug: string): Promise<any>;
49
+ updateBlockField?(documentId: string, blockIndex: number, field: string, value: any): Promise<any>;
50
+ updateBlock?(documentId: string, blockIndex: number, data: Record<string, any>): Promise<any>;
51
+ moveBlock?(documentId: string, fromIndex: number, toIndex: number): Promise<any>;
52
+ insertBlock?(documentId: string, index: number, nativeType: string, data?: Record<string, any>): Promise<any>;
53
+ insertBlocks?(documentId: string, index: number, blocks: Array<{
54
+ nativeType: string;
55
+ data?: Record<string, any>;
56
+ }>): Promise<any>;
57
+ createDraft?(documentId: string): Promise<any>;
58
+ publishDraft?(documentId: string): Promise<any>;
59
+ discardDraft?(documentId: string): Promise<any>;
60
+ fetchDraftBySlug?(slug: string): Promise<any>;
61
+ removeBlock?(documentId: string, index: number): Promise<any>;
62
+ duplicateBlock?(documentId: string, index: number): Promise<any>;
63
+ searchEntries?(collection: string, query: string): Promise<any>;
64
+ }
65
+ export declare function createToolRegistry(adapter: AdapterLike, options?: ToolRegistryOptions): ToolRegistry;
66
+ export {};
67
+ //# sourceMappingURL=tools.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"tools.d.ts","sourceRoot":"","sources":["../src/tools.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAGH,OAAO,KAAK,EAAE,QAAQ,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAE1D,MAAM,WAAW,UAAU;IACvB,IAAI,EAAE,MAAM,CAAC;IACb,WAAW,EAAE,MAAM,CAAC;IACpB,WAAW,EAAE;QACT,IAAI,EAAE,QAAQ,CAAC;QACf,UAAU,EAAE,MAAM,CAAC,MAAM,EAAE,OAA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