@mediagraph/mcp 1.0.0 → 1.0.1
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 +15 -23
- package/dist/index.js +6 -5
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -25,22 +25,15 @@ npx @mediagraph/mcp
|
|
|
25
25
|
|
|
26
26
|
## Quick Start
|
|
27
27
|
|
|
28
|
-
### 1.
|
|
29
|
-
|
|
30
|
-
1. Log into your Mediagraph organization
|
|
31
|
-
2. Go to **Settings > API & Integrations**
|
|
32
|
-
3. Create a new OAuth application
|
|
33
|
-
4. Copy the Client ID (and Client Secret if using a confidential client)
|
|
34
|
-
|
|
35
|
-
### 2. Authorize
|
|
28
|
+
### 1. Authorize
|
|
36
29
|
|
|
37
30
|
```bash
|
|
38
|
-
|
|
31
|
+
npx @mediagraph/mcp authorize
|
|
39
32
|
```
|
|
40
33
|
|
|
41
|
-
This will open a browser window for you to authorize the MCP server with your Mediagraph account.
|
|
34
|
+
This will open a browser window for you to log in and authorize the MCP server with your Mediagraph account.
|
|
42
35
|
|
|
43
|
-
###
|
|
36
|
+
### 2. Configure Claude Desktop
|
|
44
37
|
|
|
45
38
|
Add the following to your Claude Desktop configuration file:
|
|
46
39
|
|
|
@@ -52,16 +45,13 @@ Add the following to your Claude Desktop configuration file:
|
|
|
52
45
|
"mcpServers": {
|
|
53
46
|
"mediagraph": {
|
|
54
47
|
"command": "npx",
|
|
55
|
-
"args": ["@mediagraph/mcp"]
|
|
56
|
-
"env": {
|
|
57
|
-
"MEDIAGRAPH_CLIENT_ID": "your-client-id"
|
|
58
|
-
}
|
|
48
|
+
"args": ["@mediagraph/mcp"]
|
|
59
49
|
}
|
|
60
50
|
}
|
|
61
51
|
}
|
|
62
52
|
```
|
|
63
53
|
|
|
64
|
-
###
|
|
54
|
+
### 3. Start Using
|
|
65
55
|
|
|
66
56
|
Restart Claude Desktop and you can now ask Claude to:
|
|
67
57
|
|
|
@@ -121,13 +111,15 @@ npx @mediagraph/mcp help
|
|
|
121
111
|
|
|
122
112
|
## Environment Variables
|
|
123
113
|
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
|
127
|
-
|
|
128
|
-
| `
|
|
129
|
-
| `
|
|
130
|
-
| `
|
|
114
|
+
All environment variables are optional. The default configuration works out of the box.
|
|
115
|
+
|
|
116
|
+
| Variable | Default | Description |
|
|
117
|
+
|----------|---------|-------------|
|
|
118
|
+
| `MEDIAGRAPH_CLIENT_ID` | *(built-in)* | OAuth client ID (override for custom apps) |
|
|
119
|
+
| `MEDIAGRAPH_CLIENT_SECRET` | - | OAuth client secret (for confidential clients) |
|
|
120
|
+
| `MEDIAGRAPH_API_URL` | `https://api.mediagraph.io` | API base URL |
|
|
121
|
+
| `MEDIAGRAPH_OAUTH_URL` | `https://mediagraph.io` | OAuth server URL |
|
|
122
|
+
| `MEDIAGRAPH_REDIRECT_PORT` | `52584` | Local callback port for OAuth |
|
|
131
123
|
|
|
132
124
|
## Security
|
|
133
125
|
|
package/dist/index.js
CHANGED
|
@@ -2925,8 +2925,9 @@ async function listResources(context) {
|
|
|
2925
2925
|
}
|
|
2926
2926
|
|
|
2927
2927
|
// src/index.ts
|
|
2928
|
+
var DEFAULT_CLIENT_ID = "7Y8rlAetr9IK2N91X4wCvVlo2hQLX6nJvFY1N8CY0GI";
|
|
2928
2929
|
var config = {
|
|
2929
|
-
clientId: process.env.MEDIAGRAPH_CLIENT_ID ||
|
|
2930
|
+
clientId: process.env.MEDIAGRAPH_CLIENT_ID || DEFAULT_CLIENT_ID,
|
|
2930
2931
|
clientSecret: process.env.MEDIAGRAPH_CLIENT_SECRET,
|
|
2931
2932
|
apiUrl: process.env.MEDIAGRAPH_API_URL || "https://api.mediagraph.io",
|
|
2932
2933
|
oauthUrl: process.env.MEDIAGRAPH_OAUTH_URL || "https://mediagraph.io",
|
|
@@ -3159,16 +3160,16 @@ Commands:
|
|
|
3159
3160
|
status Show current authentication status
|
|
3160
3161
|
help Show this help message
|
|
3161
3162
|
|
|
3162
|
-
Environment Variables:
|
|
3163
|
-
MEDIAGRAPH_CLIENT_ID
|
|
3164
|
-
MEDIAGRAPH_CLIENT_SECRET
|
|
3163
|
+
Environment Variables (all optional):
|
|
3164
|
+
MEDIAGRAPH_CLIENT_ID Override default OAuth client ID
|
|
3165
|
+
MEDIAGRAPH_CLIENT_SECRET OAuth client secret (for confidential clients)
|
|
3165
3166
|
MEDIAGRAPH_API_URL API URL (default: https://api.mediagraph.io)
|
|
3166
3167
|
MEDIAGRAPH_OAUTH_URL OAuth URL (default: https://mediagraph.io)
|
|
3167
3168
|
MEDIAGRAPH_REDIRECT_PORT Local callback port (default: 52584)
|
|
3168
3169
|
|
|
3169
3170
|
Example:
|
|
3170
3171
|
# First, authorize with Mediagraph
|
|
3171
|
-
|
|
3172
|
+
npx @mediagraph/mcp authorize
|
|
3172
3173
|
|
|
3173
3174
|
# Then configure Claude Desktop to use the MCP server
|
|
3174
3175
|
# See README for configuration details
|