Skip to content

Commit f8654a1

Browse files
feat(api): remove mcp config
1 parent 476ee83 commit f8654a1

Some content is hidden

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

47 files changed

+9
-9897
lines changed

.github/workflows/ci.yml

Lines changed: 3 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ jobs:
2424
- name: Set up Node
2525
uses: actions/setup-node@v4
2626
with:
27-
node-version: '22'
27+
node-version: '20'
2828

2929
- name: Bootstrap
3030
run: ./scripts/bootstrap
@@ -46,7 +46,7 @@ jobs:
4646
- name: Set up Node
4747
uses: actions/setup-node@v4
4848
with:
49-
node-version: '22'
49+
node-version: '20'
5050

5151
- name: Bootstrap
5252
run: ./scripts/bootstrap
@@ -68,15 +68,6 @@ jobs:
6868
AUTH: ${{ steps.github-oidc.outputs.github_token }}
6969
SHA: ${{ github.sha }}
7070
run: ./scripts/utils/upload-artifact.sh
71-
72-
- name: Upload MCP Server tarball
73-
if: github.repository == 'stainless-sdks/perplexity-typescript'
74-
env:
75-
URL: https://pkg.stainless.com/s?subpackage=mcp-server
76-
AUTH: ${{ steps.github-oidc.outputs.github_token }}
77-
SHA: ${{ github.sha }}
78-
BASE_PATH: packages/mcp-server
79-
run: ./scripts/utils/upload-artifact.sh
8071
test:
8172
timeout-minutes: 10
8273
name: test
@@ -88,13 +79,10 @@ jobs:
8879
- name: Set up Node
8980
uses: actions/setup-node@v4
9081
with:
91-
node-version: '22'
82+
node-version: '20'
9283

9384
- name: Bootstrap
9485
run: ./scripts/bootstrap
9586

96-
- name: Build
97-
run: ./scripts/build
98-
9987
- name: Run tests
10088
run: ./scripts/test

.github/workflows/docker-mcp.yml

Lines changed: 0 additions & 103 deletions
This file was deleted.

.github/workflows/publish-npm.yml

Lines changed: 1 addition & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,6 @@
44
name: Publish NPM
55
on:
66
workflow_dispatch:
7-
inputs:
8-
path:
9-
description: The path to run the release in, e.g. '.' or 'packages/mcp-server'
10-
required: true
117

128
release:
139
types: [published]
@@ -16,8 +12,6 @@ jobs:
1612
publish:
1713
name: publish
1814
runs-on: ubuntu-latest
19-
permissions:
20-
contents: write
2115

2216
steps:
2317
- uses: actions/checkout@v4
@@ -33,18 +27,6 @@ jobs:
3327
3428
- name: Publish to NPM
3529
run: |
36-
if [ -n "${{ github.event.inputs.path }}" ]; then
37-
PATHS_RELEASED='[\"${{ github.event.inputs.path }}\"]'
38-
else
39-
PATHS_RELEASED='[\".\", \"packages/mcp-server\"]'
40-
fi
41-
yarn tsn scripts/publish-packages.ts "{ \"paths_released\": \"$PATHS_RELEASED\" }"
30+
bash ./bin/publish-npm
4231
env:
4332
NPM_TOKEN: ${{ secrets.PERPLEXITY_NPM_TOKEN || secrets.NPM_TOKEN }}
44-
45-
- name: Upload MCP Server DXT GitHub release asset
46-
run: |
47-
gh release upload ${{ github.event.release.tag_name }} \
48-
packages/mcp-server/perplexity_ai_perplexity_ai_api.mcpb
49-
env:
50-
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}

.github/workflows/release-doctor.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,5 +19,4 @@ jobs:
1919
bash ./bin/check-release-environment
2020
env:
2121
NPM_TOKEN: ${{ secrets.PERPLEXITY_NPM_TOKEN || secrets.NPM_TOKEN }}
22-
DOCKERHUB_TOKEN: ${{ secrets.PERPLEXITY_DOCKERHUB_TOKEN || secrets.DOCKERHUB_TOKEN }}
2322

.gitignore

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,5 +8,4 @@ dist-deno
88
/*.tgz
99
.idea/
1010
.eslintcache
11-
dist-bundle
12-
*.mcpb
11+

.prettierignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,4 @@ CHANGELOG.md
44
/deno
55

66
# don't format tsc output, will break source maps
7-
dist
7+
/dist

.stats.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
configured_endpoints: 5
22
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/perplexity-ai%2Fperplexity-5d4ba4296d72d87995a2189a991e710a77b4b73cc275ad03d8a0eec245cf55db.yml
33
openapi_spec_hash: 5d29546ef1490dda18cda8ca97cd665e
4-
config_hash: 4e2c5b7ad4caa07a2ac1af091ecf6c9c
4+
config_hash: 5b10428c82f4119aa4837f03046d0e5c

bin/check-release-environment

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,6 @@ if [ -z "${NPM_TOKEN}" ]; then
66
errors+=("The NPM_TOKEN secret has not been set. Please set it in either this repository's secrets or your organization secrets")
77
fi
88

9-
if [ -z "${DOCKERHUB_TOKEN}" ]; then
10-
errors+=("The DOCKERHUB_TOKEN secret has not been set. Please set it in either this repository's secrets or your organization secrets")
11-
fi
12-
139
lenErrors=${#errors[@]}
1410

1511
if [[ lenErrors -gt 0 ]]; then

bin/docker-tags

Lines changed: 0 additions & 88 deletions
This file was deleted.

eslint.config.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ export default tseslint.config(
3434
},
3535
},
3636
{
37-
files: ['tests/**', 'examples/**', 'packages/**'],
37+
files: ['tests/**', 'examples/**'],
3838
rules: {
3939
'no-restricted-imports': 'off',
4040
},

0 commit comments

Comments
 (0)