Skip to content

Commit 9f21f07

Browse files
feat(chore): added git templates
added git templates Gh-1
1 parent fa9f18f commit 9f21f07

File tree

9 files changed

+11129
-2839
lines changed

9 files changed

+11129
-2839
lines changed

.cz-config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ module.exports = {
4444
// used if allowCustomScopes is true
4545
customScope: 'Denote the SCOPE of this change:',
4646
subject: 'Write a SHORT, IMPERATIVE tense description of the change:\n',
47-
body: 'Provide a LONGER description of the change (mandatory). Use "\\n" to break new line:\n',
47+
body: 'Provide a LONGER description of the change (optional). Use "|" to break new line:\n',
4848
breaking: 'List any BREAKING CHANGES (optional):\n',
4949
footer: 'List any ISSUES CLOSED by this change (optional). E.g.: GH-144:\n',
5050
confirmCommit: 'Are you sure you want to proceed with the commit above?',

.eslintignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,3 +2,5 @@ node_modules/
22
dist/
33
coverage/
44
.eslintrc.js
5+
.cz-config.js
6+
commitlint.config.js

.github/workflows/release.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ jobs:
3232
run: |
3333
git config --global user.name $CONFIG_USERNAME
3434
git config --global user.email $CONFIG_EMAIL
35-
git remote set-url origin https://$GITHUB_ACTOR:[email protected]/sourcefuse/loopback4-authorization
35+
git remote set-url origin https://$GITHUB_ACTOR:[email protected]/sourcefuse/loopback4-mcp
3636
env:
3737
GITHUB_PAT: ${{ secrets.RELEASE_COMMIT_GH_PAT }}
3838
CONFIG_USERNAME: ${{ vars.RELEASE_COMMIT_USERNAME }}

.github/workflows/sync-docs.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ jobs:
5050
git checkout -B $extension_branch || git checkout $extension_branch
5151
5252
# Copy README from the extension repo
53-
cp ../extension/docs/README.md docs/arc-api-docs/extensions/$(basename $GITHUB_REPOSITORY)/
53+
cp ../extension/README.md docs/arc-api-docs/extensions/$(basename $GITHUB_REPOSITORY)/
5454
git add .
5555
5656
if git diff --quiet --cached; then

.vscode/settings.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
"**/.hg": true,
1616
"**/.svn": true,
1717
"**/CVS": true,
18-
"dist": true,
18+
"dist": false,
1919
},
2020
"files.insertFinalNewline": true,
2121
"files.trimTrailingWhitespace": true,

README.md

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ Its purpose is to enable LoopBack APIs, services, and business logic to be expos
2020

2121
- Lifecycle-managed Tool Registry :-
2222
A dedicated `McpToolRegistry` service maintains all discovered tool metadata,their handlers and execution context.
23-
23+
2424
A `McpToolRegistryBootObserver` ensures that registration happens only after the application has fully booted.
2525
## Installation
2626
```sh
@@ -45,8 +45,14 @@ async createUser(args: {email: string; name: string}) {
4545
return {message: `User ${args.name} created`};
4646
}
4747
```
48+
49+
This decorator accepts a total of five fields, out of which `name` and `description` are mandatory and `schema`,`preHook` and `postHook` are optional enhancements.
50+
51+
The schema field allows defining a Zod-based validation schema for tool input parameters, while preHook and postHook enable execution of custom logic before and after the tool handler runs.
52+
4853
### Mcp Hook Usage Details
4954
To use hooks with MCP tools, follow the provider-based approach:
55+
5056
Step 1: Create a hook provider:
5157
```typescript
5258
// src/providers/my-hook.provider.ts

0 commit comments

Comments
 (0)