@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.
Files changed (3) hide show
  1. package/README.md +15 -23
  2. package/dist/index.js +6 -5
  3. 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. Get OAuth Credentials
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
- MEDIAGRAPH_CLIENT_ID=your-client-id npx @mediagraph/mcp authorize
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
- ### 3. Configure Claude Desktop
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
- ### 4. Start Using
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
- | Variable | Required | Default | Description |
125
- |----------|----------|---------|-------------|
126
- | `MEDIAGRAPH_CLIENT_ID` | Yes | - | OAuth client ID |
127
- | `MEDIAGRAPH_CLIENT_SECRET` | No | - | OAuth client secret (for confidential clients) |
128
- | `MEDIAGRAPH_API_URL` | No | `https://api.mediagraph.io` | API base URL |
129
- | `MEDIAGRAPH_OAUTH_URL` | No | `https://mediagraph.io` | OAuth server URL |
130
- | `MEDIAGRAPH_REDIRECT_PORT` | No | `52584` | Local callback port for OAuth |
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 Your OAuth client ID (required)
3164
- MEDIAGRAPH_CLIENT_SECRET Your OAuth client secret (optional)
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
- MEDIAGRAPH_CLIENT_ID=your-client-id npx @mediagraph/mcp authorize
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
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mediagraph/mcp",
3
- "version": "1.0.0",
3
+ "version": "1.0.1",
4
4
  "description": "MCP server for Mediagraph - Media Asset Management Platform",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",