Skip to content

Commit 472ce5b

Browse files
Merge pull request #1 from directus/bg
Directus Content MCP v0.1.0
2 parents caf33a8 + 60c08bc commit 472ce5b

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

42 files changed

+6803
-0
lines changed

.editorconfig

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
root=true
2+
3+
[*]
4+
end_of_line = lf
5+
insert_final_newline = true
6+
charset = utf-8
7+
trim_trailing_whitespace = true
8+
9+
[*.{mjs,cjs,js,mts,cts,ts,json,vue,html,scss,css,toml,md}]
10+
indent_style = tab
11+
12+
[*.md]
13+
trim_trailing_whitespace = false
14+
15+
[*.{yml,yaml}]
16+
indent_style = space

.gitignore

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
dist
2+
node_modules
3+
.env
4+
mcp.json
5+
.docs

eslint.config.js

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
import directusConfig from '@directus/eslint-config';
2+
3+
export default [
4+
...directusConfig,
5+
{
6+
rules: {
7+
'n/prefer-global/process': 'off',
8+
},
9+
},
10+
];

package.json

Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
{
2+
"name": "@directus/content-mcp",
3+
"type": "module",
4+
"version": "0.1.0",
5+
"packageManager": "[email protected]",
6+
"description": "Model Context Protocol server for Directus projects.",
7+
"contributors": [
8+
"Rijk van Zanten <[email protected]>",
9+
"Bryant Gillespie"
10+
],
11+
"license": "MIT",
12+
"keywords": [
13+
"ai",
14+
"directus",
15+
"mcp",
16+
"modelcontextprotocol"
17+
],
18+
"main": "dist/index.js",
19+
"bin": {
20+
"directus-mcp-server": "./dist/index.js"
21+
},
22+
"scripts": {
23+
"prepare": "pnpm build",
24+
"build": "tsc --project tsconfig.json",
25+
"dev": "tsc --project tsconfig.json --watch & node --watch dist/index.js",
26+
"start": "node dist/index.js",
27+
"lint": "eslint .",
28+
"lint:fix": "eslint --fix ."
29+
},
30+
31+
"dependencies": {
32+
"@directus/sdk": "19.1.0",
33+
"@modelcontextprotocol/sdk": "1.10.2",
34+
"dotenv": "16.5.0",
35+
"isomorphic-dompurify": "^2.24.0",
36+
"marked": "^15.0.11",
37+
"zod": "4.0.0-beta.20250424T163858"
38+
},
39+
"devDependencies": {
40+
"@directus/eslint-config": "^0.1.0",
41+
"@directus/tsconfig": "3.0.0",
42+
"@directus/types": "^13.1.0",
43+
"@types/node": "22.15.3",
44+
"eslint": "^9.25.1",
45+
"typescript": "5.8.3"
46+
}
47+
}

0 commit comments

Comments
 (0)