
Research
/Security News
Weaponizing Discord for Command and Control Across npm, PyPI, and RubyGems.org
Socket researchers uncover how threat actors weaponize Discord across the npm, PyPI, and RubyGems ecosystems to exfiltrate sensitive data.
@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.json
Add 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-schema
Validates 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-migrations
Validates 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-login
Initiates the Stately login process, providing a URL for authentication.
Input:
Output:
Example:
Could you help me log into StatelyDB?
verify-login
Verifies if the user is currently logged in to StatelyDB.
Input:
Output:
Example:
Am I currently logged into StatelyDB?
schema-put
Publishes 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-generate
Generates 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 4 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
Socket researchers uncover how threat actors weaponize Discord across the npm, PyPI, and RubyGems ecosystems to exfiltrate sensitive data.
Security News
Socket now integrates with Bun 1.3’s Security Scanner API to block risky packages at install time and enforce your organization’s policies in local dev and CI.
Research
The Socket Threat Research Team is tracking weekly intrusions into the npm registry that follow a repeatable adversarial playbook used by North Korean state-sponsored actors.