@sylphx/mcp 0.24.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md ADDED
@@ -0,0 +1,25 @@
1
+ # sylphx-mcp
2
+
3
+ The Sylphx MCP server: every Sylphx API method available to an agent, from
4
+ the same schema as the SDKs and the CLI.
5
+
6
+ ```sh
7
+ npx @sylphx/mcp # or: sylphx mcp, or: cargo install sylphx-mcp && sylphx-mcp
8
+ ```
9
+
10
+ MCP client configuration (stdio):
11
+
12
+ ```json
13
+ { "mcpServers": { "sylphx": { "command": "npx", "args": ["-y", "@sylphx/mcp"], "env": { "SYLPHX_API_KEY": "sylphx_sk_…" } } } }
14
+ ```
15
+
16
+ - Core tools for the lead offer (`access_whoami`, `access_projects_create`,
17
+ `data_databases_create`, `hosting_services_create`, …), each with its input
18
+ schema.
19
+ - `sylphx_search_methods`, `sylphx_describe_method`, and `sylphx_call` reach
20
+ every other method without flooding the context.
21
+ - Tool annotations come from each method's effect; destructive calls need
22
+ `confirm: true`.
23
+
24
+ Generated from the Sylphx schema registry; `generated/tools.json` is
25
+ `sylphx-gen` output.
@@ -0,0 +1,23 @@
1
+ #!/usr/bin/env node
2
+ // `npx @sylphx/mcp`: the Sylphx MCP server over stdio, which is `sylphx mcp`
3
+ // of the native CLI binary.
4
+
5
+ import { spawn } from 'node:child_process'
6
+ import { binaryPath } from '@sylphx/cli/resolve'
7
+
8
+ let bin
9
+ try {
10
+ bin = binaryPath()
11
+ } catch (error) {
12
+ console.error(error.message)
13
+ process.exit(1)
14
+ }
15
+ const child = spawn(bin, ['mcp', ...process.argv.slice(2)], { stdio: 'inherit' })
16
+ child.on('error', (error) => {
17
+ console.error(`failed to run ${bin}: ${error.message}`)
18
+ process.exit(1)
19
+ })
20
+ child.on('exit', (code, signal) => {
21
+ if (signal) process.kill(process.pid, signal)
22
+ else process.exit(code ?? 1)
23
+ })
package/package.json ADDED
@@ -0,0 +1,37 @@
1
+ {
2
+ "name": "@sylphx/mcp",
3
+ "version": "0.24.0",
4
+ "description": "The Sylphx MCP server: every Sylphx API method as MCP tools (runs `sylphx mcp`).",
5
+ "license": "MIT",
6
+ "type": "module",
7
+ "repository": {
8
+ "type": "git",
9
+ "url": "git+https://github.com/SylphxAI/sylphx-clients.git",
10
+ "directory": "mcp/npm"
11
+ },
12
+ "homepage": "https://sylphx.com/docs",
13
+ "keywords": [
14
+ "sylphx",
15
+ "mcp",
16
+ "model-context-protocol",
17
+ "agents"
18
+ ],
19
+ "bin": {
20
+ "sylphx-mcp": "bin/sylphx-mcp.js"
21
+ },
22
+ "files": [
23
+ "bin",
24
+ "README.md"
25
+ ],
26
+ "dependencies": {
27
+ "@sylphx/cli": "0.24.0"
28
+ },
29
+ "engines": {
30
+ "node": ">=18"
31
+ },
32
+ "publishConfig": {
33
+ "access": "public",
34
+ "tag": "next",
35
+ "provenance": true
36
+ }
37
+ }