Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
A
Awing Rules ClaudeCode Mcp
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
awing-mcp
Awing Rules ClaudeCode Mcp
Commits
8fc62a60
Commit
8fc62a60
authored
Feb 02, 2026
by
LongLD
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat: support workspace root detection for GitLab distribution
parent
811b0909
Changes
6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
38 additions
and
5 deletions
+38
-5
.gitignore
.gitignore
+0
-1
.vscode/mcp.json
.vscode/mcp.json
+11
-0
bin/awing-rules-mcp.js
bin/awing-rules-mcp.js
+20
-0
dist/index.js
dist/index.js
+2
-1
package.json
package.json
+3
-2
src/index.ts
src/index.ts
+2
-1
No files found.
.gitignore
View file @
8fc62a60
...
...
@@ -29,7 +29,6 @@ lerna-debug.log*
coverage/
# IDEs
.vscode/
.idea/
*.swp
*.swo
.vscode/mcp.json
0 → 100644
View file @
8fc62a60
{
"servers"
:
{
"awing-rules-claudecode-mcp"
:
{
"command"
:
"npx"
,
"args"
:
[
"-y"
,
"git+https://gitlab.awing.vn/awing-mcp/awing-rules-claudecode-mcp.git"
]
}
}
}
bin/awing-rules-mcp.js
0 → 100644
View file @
8fc62a60
#!/usr/bin/env node
import
{
spawn
}
from
'
child_process
'
;
import
path
from
'
path
'
;
import
{
fileURLToPath
}
from
'
url
'
;
const
__filename
=
fileURLToPath
(
import
.
meta
.
url
);
const
__dirname
=
path
.
dirname
(
__filename
);
// Pass current working directory as argument to the main script
const
workspaceRoot
=
process
.
cwd
();
const
mainScript
=
path
.
resolve
(
__dirname
,
'
../dist/index.js
'
);
const
child
=
spawn
(
'
node
'
,
[
mainScript
,
workspaceRoot
],
{
stdio
:
'
inherit
'
,
cwd
:
process
.
cwd
()
});
child
.
on
(
'
exit
'
,
(
code
)
=>
{
process
.
exit
(
code
);
});
\ No newline at end of file
dist/index.js
View file @
8fc62a60
...
...
@@ -10,7 +10,8 @@ import { fileURLToPath } from 'url';
// --- Configuration ---
const
__filename
=
fileURLToPath
(
import
.
meta
.
url
);
const
__dirname
=
path
.
dirname
(
__filename
);
const
ROOT_DIR
=
path
.
resolve
(
__dirname
,
'
..
'
);
// storage root is one level up from dist
// Allow override via command line argument, environment variable, or use current working directory
const
ROOT_DIR
=
process
.
argv
[
2
]
||
process
.
env
.
AWING_RULES_ROOT
||
process
.
cwd
();
// --- Initialization ---
const
indexer
=
new
RuleIndexer
(
ROOT_DIR
);
const
composer
=
new
Composer
(
ROOT_DIR
);
...
...
package.json
View file @
8fc62a60
...
...
@@ -5,10 +5,11 @@
"main"
:
"dist/index.js"
,
"type"
:
"module"
,
"bin"
:
{
"awing-rules-claudecode-mcp"
:
"./
dist/index
.js"
"awing-rules-claudecode-mcp"
:
"./
bin/awing-rules-mcp
.js"
},
"files"
:
[
"dist"
"dist"
,
"bin"
],
"scripts"
:
{
"build"
:
"tsc"
,
...
...
src/index.ts
View file @
8fc62a60
...
...
@@ -17,7 +17,8 @@ import { fileURLToPath } from 'url';
// --- Configuration ---
const
__filename
=
fileURLToPath
(
import
.
meta
.
url
);
const
__dirname
=
path
.
dirname
(
__filename
);
const
ROOT_DIR
=
path
.
resolve
(
__dirname
,
'
..
'
);
// storage root is one level up from dist
// Allow override via command line argument, environment variable, or use current working directory
const
ROOT_DIR
=
process
.
argv
[
2
]
||
process
.
env
.
AWING_RULES_ROOT
||
process
.
cwd
();
// --- Initialization ---
const
indexer
=
new
RuleIndexer
(
ROOT_DIR
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment