Skip to content

Commit 0df6421

Browse files
author
flowcore-platform
committed
feat(initial): ✨ Initialize Flowcore Local Read Model MCP Server with essential files and configurations
0 parents  commit 0df6421

24 files changed

+5981
-0
lines changed

.github/workflows/publish.yml

Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
1+
name: Build and Publish NPM Package
2+
3+
on:
4+
release:
5+
types: [ published ]
6+
7+
env:
8+
NODE_VERSION: ">=18.12.1"
9+
10+
permissions:
11+
id-token: write
12+
contents: read
13+
14+
jobs:
15+
16+
build:
17+
18+
runs-on: ubuntu-latest
19+
20+
steps:
21+
- uses: actions/checkout@v3
22+
with:
23+
token: ${{ secrets.FLOWCORE_MACHINE_GITHUB_TOKEN }}
24+
submodules: true
25+
- name: Extract version from package.json
26+
uses: sergeysova/jq-action@v2
27+
id: version
28+
with:
29+
cmd: 'jq .version package.json -r'
30+
31+
- name: Show my version
32+
run: 'echo "version ${{ steps.version.outputs.value }}"'
33+
34+
- name: Setup Bun environment
35+
uses: oven-sh/setup-bun@v2
36+
with:
37+
bun-version: latest
38+
registry-url: "https://registry.npmjs.org"
39+
scope: "@flowcore"
40+
- name: Bun install
41+
run: |
42+
bun install --frozen-lockfile
43+
- name: Build
44+
run: bun run build
45+
- name: Publish
46+
run: |
47+
echo "//registry.npmjs.org/:_authToken=${NODE_AUTH_TOKEN}" > ~/.npmrc
48+
echo "Publishing version ${{ steps.version.outputs.value }}"
49+
npm publish --access public
50+
env:
51+
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

.github/workflows/release-please.yml

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
on:
2+
push:
3+
branches:
4+
- main
5+
6+
name: release-please
7+
jobs:
8+
release-please:
9+
runs-on: ubuntu-latest
10+
steps:
11+
- uses: actions/checkout@v3
12+
with:
13+
token: ${{ secrets.FLOWCORE_MACHINE_GITHUB_TOKEN }}
14+
submodules: true
15+
- name: Extract version from package.json
16+
uses: sergeysova/jq-action@v2
17+
id: package
18+
with:
19+
cmd: 'jq .name package.json -r'
20+
- uses: google-github-actions/release-please-action@v3
21+
with:
22+
token: ${{ secrets.FLOWCORE_MACHINE_GITHUB_TOKEN }}
23+
release-type: node
24+
package-name: ${{ steps.package.outputs.value }}

.github/workflows/test.yml

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
name: Test
2+
3+
on:
4+
push:
5+
branches-ignore: ["main"]
6+
7+
jobs:
8+
test:
9+
runs-on: ubuntu-latest
10+
steps:
11+
- uses: actions/checkout@v3
12+
with:
13+
token: ${{ secrets.FLOWCORE_MACHINE_GITHUB_TOKEN }}
14+
submodules: true
15+
- name: Setup Bun environment
16+
uses: oven-sh/setup-bun@v2
17+
with:
18+
bun-version: latest
19+
- name: Bun install
20+
run: |
21+
bun install --frozen-lockfile
22+
- name: Lint
23+
run: bun lint
24+
- name: Build
25+
run: bun run build

.gitignore

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
# dependencies (bun install)
2+
node_modules
3+
4+
# output
5+
out
6+
dist
7+
*.tgz
8+
9+
# code coverage
10+
coverage
11+
*.lcov
12+
13+
# logs
14+
logs
15+
_.log
16+
report.[0-9]_.[0-9]_.[0-9]_.[0-9]_.json
17+
18+
# dotenv environment variable files
19+
.env
20+
.env.development.local
21+
.env.test.local
22+
.env.production.local
23+
.env.local
24+
25+
# caches
26+
.eslintcache
27+
.cache
28+
*.tsbuildinfo
29+
30+
# IntelliJ based IDEs
31+
.idea
32+
33+
# Finder (MacOS) folder config
34+
.DS_Store
35+
36+
/src/local
37+
38+
duckdb.db
39+
duckdb.db.wal

.npmignore

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
# Source files
2+
src/
3+
*.ts
4+
!*.d.ts
5+
6+
# Development files
7+
.git/
8+
.github/
9+
.vscode/
10+
node_modules/
11+
bun.lock
12+
.gitignore
13+
14+
# Test files
15+
test/
16+
*.test.ts
17+
*.spec.ts
18+
19+
# Misc
20+
.DS_Store
21+
*.log
22+
.env*

CHANGELOG.md

Lines changed: 119 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,119 @@
1+
# Changelog
2+
3+
## [1.6.0](https://github.com/flowcore-io/mcp-flowcore-platform/compare/v1.5.3...v1.6.0) (2025-03-18)
4+
5+
6+
### Features
7+
8+
* **index:** :sparkles: Add support for PAT exchange and update service account handling ([43aa0c5](https://github.com/flowcore-io/mcp-flowcore-platform/commit/43aa0c5bf168885759ac531a544112aa9449d1a9))
9+
10+
## [1.5.3](https://github.com/flowcore-io/mcp-flowcore-platform/compare/v1.5.2...v1.5.3) (2025-03-14)
11+
12+
13+
### Bug Fixes
14+
15+
* **index:** :bug: Adjust default pageSize to 10 and improve cursor handling in event ingestion ([a54dda8](https://github.com/flowcore-io/mcp-flowcore-platform/commit/a54dda81e55580f3e0464c700c69e9512c80f8a2))
16+
17+
## [1.5.2](https://github.com/flowcore-io/mcp-flowcore-platform/compare/v1.5.1...v1.5.2) (2025-03-13)
18+
19+
20+
### Bug Fixes
21+
22+
* **index:** :memo: Update documentation for get_events tool with additional pagination and filtering details ([ece6df3](https://github.com/flowcore-io/mcp-flowcore-platform/commit/ece6df36285ac3fd1751d77313889a646d371ccc))
23+
24+
## [1.5.1](https://github.com/flowcore-io/mcp-flowcore-platform/compare/v1.5.0...v1.5.1) (2025-03-12)
25+
26+
27+
### Bug Fixes
28+
29+
* **index:** :art: Update events type to array for consistency in ingestion ([804af9a](https://github.com/flowcore-io/mcp-flowcore-platform/commit/804af9ab09c10a7b5f3c54898d76e7831236986a))
30+
31+
## [1.5.0](https://github.com/flowcore-io/mcp-flowcore-platform/compare/v1.4.0...v1.5.0) (2025-03-12)
32+
33+
34+
### Features
35+
36+
* **index:** :sparkles: Add ingest tool for event ingestion with API key support ([bbec794](https://github.com/flowcore-io/mcp-flowcore-platform/commit/bbec7948847f93f2081b457755c0af32584686d4))
37+
38+
## [1.4.0](https://github.com/flowcore-io/mcp-flowcore-platform/compare/v1.3.0...v1.4.0) (2025-03-12)
39+
40+
41+
### Features
42+
43+
* **index:** :sparkles: Add handlers for tenant retrieval and updates for data core, flow type, and event type ([50053ad](https://github.com/flowcore-io/mcp-flowcore-platform/commit/50053ad4075ae36465b79d25d69b3b4201b20c94))
44+
45+
## [1.3.0](https://github.com/flowcore-io/mcp-flowcore-platform/compare/v1.2.1...v1.3.0) (2025-03-12)
46+
47+
48+
### Features
49+
50+
* **index:** :sparkles: Add new tools for data core, flow type, and event type management ([7f17118](https://github.com/flowcore-io/mcp-flowcore-platform/commit/7f17118ddb7cf216a2cadc5d55bd517f76ee58a6))
51+
* **prompts:** :sparkles: Add platform prompts for Flowcore Platform interaction and contract creation ([7d1abdd](https://github.com/flowcore-io/mcp-flowcore-platform/commit/7d1abdd7a6819814ec7f90dd92bcf11dd978a1ec))
52+
53+
## [1.2.1](https://github.com/flowcore-io/mcp-flowcore-platform/compare/v1.2.0...v1.2.1) (2025-03-12)
54+
55+
56+
### Bug Fixes
57+
58+
* **index:** :memo: Add prompts array to server configuration ([2124a37](https://github.com/flowcore-io/mcp-flowcore-platform/commit/2124a3792b2da0a062c99cf91cee50c73a1b4213))
59+
60+
## [1.2.0](https://github.com/flowcore-io/mcp-flowcore-platform/compare/v1.1.1...v1.2.0) (2025-03-12)
61+
62+
63+
### Features
64+
65+
* **build:** :sparkles: Add shebang line to build process and create add-shebang script ([9203216](https://github.com/flowcore-io/mcp-flowcore-platform/commit/92032166cacac335fb6bb05099a93b93115a25f5))
66+
67+
## [1.1.1](https://github.com/flowcore-io/mcp-flowcore-platform/compare/v1.1.0...v1.1.1) (2025-03-12)
68+
69+
70+
### Bug Fixes
71+
72+
* **index:** :memo: Update server description and add information on Flowcore Platform usage ([096f7ce](https://github.com/flowcore-io/mcp-flowcore-platform/commit/096f7cea626a53087bb8d10c830d36d3891f0e67))
73+
74+
## [1.1.0](https://github.com/flowcore-io/mcp-flowcore-platform/compare/v1.0.3...v1.1.0) (2025-03-12)
75+
76+
77+
### Features
78+
79+
* **build:** :sparkles: Add file copying to build process ([3dd3399](https://github.com/flowcore-io/mcp-flowcore-platform/commit/3dd3399a90fef7e0e1076385a8def5052ee7d133))
80+
81+
82+
### Bug Fixes
83+
84+
* **package:** :art: Update entry point and restructure CLI implementation ([4b5533c](https://github.com/flowcore-io/mcp-flowcore-platform/commit/4b5533c3cc42ded5c22d23bb4b1ec414ce606820))
85+
86+
## [1.0.3](https://github.com/flowcore-io/mcp-flowcore-platform/compare/v1.0.2...v1.0.3) (2025-03-12)
87+
88+
89+
### Bug Fixes
90+
91+
* **ci:** :sparkles: Enhance npm publish workflow with auth token and version logging ([5c3b423](https://github.com/flowcore-io/mcp-flowcore-platform/commit/5c3b423576289be8aef0d90ef98bf65c4f91989e))
92+
93+
## [1.0.2](https://github.com/flowcore-io/mcp-flowcore-platform/compare/v1.0.1...v1.0.2) (2025-03-12)
94+
95+
96+
### Bug Fixes
97+
98+
* **ci:** :sparkles: Add registry URL for npm in publish workflow ([8262529](https://github.com/flowcore-io/mcp-flowcore-platform/commit/8262529c929858255b5386af7dff5dfaaf97f75b))
99+
* **ci:** :sparkles: Add scope for npm in publish workflow ([919b4d6](https://github.com/flowcore-io/mcp-flowcore-platform/commit/919b4d64bfc9d25890259a7d0ab0ae53627c250b))
100+
101+
## [1.0.1](https://github.com/flowcore-io/mcp-flowcore-platform/compare/v1.0.0...v1.0.1) (2025-03-12)
102+
103+
104+
### Bug Fixes
105+
106+
* **ci:** :bug: Switch from bun publish to npm publish in workflow ([009e89d](https://github.com/flowcore-io/mcp-flowcore-platform/commit/009e89df8a92999078e2b1ff0220e1d169c5b269))
107+
108+
## 1.0.0 (2025-03-12)
109+
110+
111+
### Features
112+
113+
* **project:** :tada: Initialize Flowcore Platform MCP Server project ([d31f599](https://github.com/flowcore-io/mcp-flowcore-platform/commit/d31f599abbecb30669ff10aec8aa2daf11e51528))
114+
115+
116+
### Bug Fixes
117+
118+
* **ci:** :bug: Update build command in publish workflow ([8a9183d](https://github.com/flowcore-io/mcp-flowcore-platform/commit/8a9183db397c1be89fe99362ba2dfbfa4258c0a5))
119+
* **project:** :wrench: Add Biome for linting and formatting ([ebd49a6](https://github.com/flowcore-io/mcp-flowcore-platform/commit/ebd49a68bf1cc36cd8c9c2fb1c934e4852b1ed3d))

0 commit comments

Comments
 (0)