Skip to content

Commit 1cc48cd

Browse files
authored
Merge pull request #10 from scalar/scalar/access-service-typescript/0.1.0
feat: [email protected]
2 parents 61a08a6 + 39416f4 commit 1cc48cd

File tree

2 files changed

+1
-99
lines changed

2 files changed

+1
-99
lines changed

README.md

Lines changed: 0 additions & 84 deletions
Original file line numberDiff line numberDiff line change
@@ -71,90 +71,6 @@ yarn add @scalar/sdk zod
7171

7272
> [!NOTE]
7373
> This package is published with CommonJS and ES Modules (ESM) support.
74-
75-
76-
### Model Context Protocol (MCP) Server
77-
78-
This SDK is also an installable MCP server where the various SDK methods are
79-
exposed as tools that can be invoked by AI applications.
80-
81-
> Node.js v20 or greater is required to run the MCP server from npm.
82-
83-
<details>
84-
<summary>Claude installation steps</summary>
85-
86-
Add the following server definition to your `claude_desktop_config.json` file:
87-
88-
```json
89-
{
90-
"mcpServers": {
91-
"Scalar": {
92-
"command": "npx",
93-
"args": [
94-
"-y", "--package", "@scalar/sdk",
95-
"--",
96-
"mcp", "start",
97-
"--bearer-auth", "..."
98-
]
99-
}
100-
}
101-
}
102-
```
103-
104-
</details>
105-
106-
<details>
107-
<summary>Cursor installation steps</summary>
108-
109-
Create a `.cursor/mcp.json` file in your project root with the following content:
110-
111-
```json
112-
{
113-
"mcpServers": {
114-
"Scalar": {
115-
"command": "npx",
116-
"args": [
117-
"-y", "--package", "@scalar/sdk",
118-
"--",
119-
"mcp", "start",
120-
"--bearer-auth", "..."
121-
]
122-
}
123-
}
124-
}
125-
```
126-
127-
</details>
128-
129-
You can also run MCP servers as a standalone binary with no additional dependencies. You must pull these binaries from available Github releases:
130-
131-
```bash
132-
curl -L -o mcp-server \
133-
https://github.com/{org}/{repo}/releases/download/{tag}/mcp-server-bun-darwin-arm64 && \
134-
chmod +x mcp-server
135-
```
136-
137-
If the repo is a private repo you must add your Github PAT to download a release `-H "Authorization: Bearer {GITHUB_PAT}"`.
138-
139-
140-
```json
141-
{
142-
"mcpServers": {
143-
"Todos": {
144-
"command": "./DOWNLOAD/PATH/mcp-server",
145-
"args": [
146-
"start"
147-
]
148-
}
149-
}
150-
}
151-
```
152-
153-
For a full list of server arguments, run:
154-
155-
```sh
156-
npx -y --package @scalar/sdk -- mcp start --help
157-
```
15874
<!-- End SDK Installation [installation] -->
15975
16076
<!-- Start Requirements [requirements] -->

package.json

Lines changed: 1 addition & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,6 @@
33
"version": "0.1.0",
44
"author": "Scalar",
55
"type": "module",
6-
"bin": {
7-
"mcp": "bin/mcp-server.js"
8-
},
96
"tshy": {
107
"sourceDialects": [
118
"@scalar/sdk/source"
@@ -24,26 +21,15 @@
2421
"sideEffects": false,
2522
"scripts": {
2623
"lint": "eslint --cache --max-warnings=0 src",
27-
"build:mcp": "bun src/mcp-server/build.mts",
28-
"build": "npm run build:mcp && tshy",
24+
"build": "tshy",
2925
"prepublishOnly": "npm run build"
3026
},
3127
"peerDependencies": {
32-
"@modelcontextprotocol/sdk": ">=1.5.0 <1.10.0",
3328
"zod": ">= 3"
3429
},
35-
"peerDependenciesMeta": {
36-
"@modelcontextprotocol/sdk": {"optional":true}
37-
},
3830
"devDependencies": {
3931
"@eslint/js": "^9.19.0",
40-
"@modelcontextprotocol/sdk": ">=1.5.0 <1.10.0",
41-
"@stricli/core": "^1.1.1",
42-
"@types/express": "^4.17.21",
43-
"bun": "^1.2.2",
44-
"bun-types": "^1.2.2",
4532
"eslint": "^9.19.0",
46-
"express": "^4.21.2",
4733
"globals": "^15.14.0",
4834
"tshy": "^2.0.0",
4935
"typescript": "^5.4.5",

0 commit comments

Comments
 (0)