Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Empty file added .changes/unreleased/.gitkeep
Empty file.
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
kind: added
body: |
`scalekit.actions.mcp.createSessionToken({ connectionName, identifier, expirySeconds?, accessLevel? })` mints a session token for a connection's own MCP server (`<environment URL>/mcp/v3/connections/<connection name>`), which serves all of that connection's tools without an MCP configuration. Pass `connectionName` instead of `mcpConfigId`; if both are set, `mcpConfigId` is used. Existing `mcpConfigId` calls are unchanged. For either target, `accessLevel: 'READ_ONLY'` limits the token to read-only tools. The URL path is case-sensitive, so connect with the connection's name exactly as stored. [Reference](https://github.com/scalekit-inc/scalekit-sdk-node/blob/main/REFERENCE.md#virtual-mcp-servers)

```ts
const session = await scalekit.actions.mcp.createSessionToken({
connectionName: 'gmail',
identifier: 'user_123',
expirySeconds: 900,
accessLevel: 'READ_ONLY',
});
const headers = { Authorization: `Bearer ${session.token}` };
```
time: '2026-10-09T15:33:01.189094+00:00'
custom:
Breaking: 'No'
Ticket: SK-2195
Migration: ''
5 changes: 4 additions & 1 deletion .prettierignore
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,7 @@ CLAUDE.md
jest.config.js
README.md
REFERENCE.md
src/pkg/grpc/
src/pkg/grpc/
# Release notes: generated by release tooling
CHANGELOG.md
.changes/
Loading
Loading