
Research
/Security News
Shai Hulud Strikes Again (v2)
Another wave of Shai-Hulud campaign has hit npm with more than 500 packages and 700+ versions affected.
@stately-cloud/statelydb-mcp-server
Advanced tools
Model Context Protocol (MCP) Server for interacting with StatelyDB.
A Model Context Protocol (MCP) server that integrates with the StatelyDB CLI to enable AI assistants to validate and manage StatelyDB schemas.
stately command is available in your PATH:curl -sL https://stately.cloud/install | sh
Install the server globally:
npm install -g @stately-cloud/statelydb-mcp-server
Alternatively, you can run it directly with npx:
npx @stately-cloud/statelydb-mcp-server
To install directly from your local source code:
# Install dependencies
npm install
# Build the TypeScript code
npm run build
# Create a global symlink to your local code
npm link
This will create a global statelydb-mcp-server command that uses your local code.
To unlink later, you can run:
npm unlink statelydb-mcp-server
To use this MCP server with Claude Desktop, follow these steps:
Open your Claude Desktop App configuration file:
~/Library/Application Support/Claude/claude_desktop_config.json%APPDATA%\Claude\claude_desktop_config.jsonAdd the server configuration to the mcpServers section:
{
"mcpServers": {
"statelydb": {
"command": "npx",
"args": ["-y", "@stately-cloud/statelydb-mcp-server"]
}
}
}
This MCP server exposes the following tools:
validate-schemaValidates a StatelyDB elastic schema definition.
Input:
schema: String containing the schema definitionOutput:
Example:
Could you validate this StatelyDB schema?
import {
itemType,
string,
timestampSeconds,
uint,
uuid,
} from "@stately-cloud/schema";
/** A user of our fantastic new system. */
itemType("User", {
keyPath: "/user-:id",
fields: {
id: {
type: uuid,
initialValue: "uuid",
},
displayName: {
type: string,
},
email: {
type: string,
},
lastLoginDate: {
type: timestampSeconds,
},
numLogins: {
type: uint,
},
},
});
validate-migrationsValidates that schema migrations are valid. This is the same as running stately schema put in dry-run mode.
Input:
schema: String containing the schema definitionschemaId: Your StatelyDB schema IDOutput:
Example:
Could you check if this StatelyDB schema has valid migrations?
import {
itemType,
string,
timestampSeconds,
uint,
uuid,
} from "@stately-cloud/schema";
itemType("User", {
keyPath: "/user-:id",
fields: {
id: {
type: uuid,
initialValue: "uuid",
},
displayName: {
type: string,
},
email: {
type: string,
},
lastLoginDate: {
type: timestampSeconds,
},
loginCount: {
type: uint,
},
},
});
migrate(1, "Rename the numLogins field", (m) => {
m.changeType("User", (t) => {
t.renameField("numLogins", "loginCount");
});
});
attempt-loginInitiates the Stately login process, providing a URL for authentication.
Input:
Output:
Example:
Could you help me log into StatelyDB?
verify-loginVerifies if the user is currently logged in to StatelyDB.
Input:
Output:
Example:
Am I currently logged into StatelyDB?
schema-putPublishes a schema to StatelyDB.
Input:
schema: String containing the schema definitionschemaId: Your StatelyDB schema IDOutput:
Example:
Publish this StatelyDB schema:
import {
itemType,
string,
timestampSeconds,
uint,
uuid,
} from "@stately-cloud/schema";
/** A user of our fantastic new system. */
itemType("User", {
keyPath: "/user-:id",
fields: {
id: {
type: uuid,
initialValue: "uuid",
},
displayName: {
type: string,
},
email: {
type: string,
},
lastLoginDate: {
type: timestampSeconds,
},
numLogins: {
type: uint,
},
},
});
schema-generateGenerates client code for a specified language from a StatelyDB schema.
Input:
schemaId: Your StatelyDB schema IDlanguage: One of "typescript", "python", "ruby", "go"Output:
Example:
Could you generate TypeScript client code for schema id 1234?
Apache 2.0
FAQs
Model Context Protocol (MCP) Server for interacting with StatelyDB.
The npm package @stately-cloud/statelydb-mcp-server receives a total of 3 weekly downloads. As such, @stately-cloud/statelydb-mcp-server popularity was classified as not popular.
We found that @stately-cloud/statelydb-mcp-server demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 5 open source maintainers collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Research
/Security News
Another wave of Shai-Hulud campaign has hit npm with more than 500 packages and 700+ versions affected.

Product
Add real-time Socket webhook events to your workflows to automatically receive software supply chain alert changes in real time.

Security News
ENISA has become a CVE Program Root, giving the EU a central authority for coordinating vulnerability reporting, disclosure, and cross-border response.