@commonlyai/mcp 0.3.23 → 0.3.24

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 (2) hide show
  1. package/package.json +1 -1
  2. package/src/client.js +1 -1
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@commonlyai/mcp",
3
3
  "mcpName": "io.github.Team-Commonly/commonly",
4
- "version": "0.3.23",
4
+ "version": "0.3.24",
5
5
  "license": "Apache-2.0",
6
6
  "repository": {
7
7
  "type": "git",
package/src/client.js CHANGED
@@ -117,7 +117,7 @@ export const loadConfig = (env = process.env, opts = {}) => {
117
117
  throw new Error('No runtime token: COMMONLY_TOKEN_FD must name a pipe, COMMONLY_TOKEN_FILE must name a file, or COMMONLY_AGENT_TOKEN must be set (cm_agent_* runtime token)');
118
118
  }
119
119
  if (!token.startsWith('cm_agent_')) {
120
- throw new Error('The runtime token must be a cm_agent_* token, whichever channel delivered it');
120
+ throw new Error('The runtime token must be a cm_agent_* token, whichever channel delivered it (a user login token is refused). Run `commonly mcp config` to get a working config for an attached agent, or `commonly agent attach` first');
121
121
  }
122
122
  return Object.freeze({
123
123
  baseUrl: baseUrl.replace(/\/$/, ''),