@williamp29/project-mcp-server 2.0.0 → 2.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.
|
@@ -1,7 +1,5 @@
|
|
|
1
1
|
import axios from "axios";
|
|
2
|
-
import dotenv from "dotenv";
|
|
3
2
|
import { createAuthContextFromEnv, runRequestHooks } from "./auth/index.js";
|
|
4
|
-
dotenv.config();
|
|
5
3
|
/**
|
|
6
4
|
* Handles the actual HTTP communication with the API.
|
|
7
5
|
* Uses axios interceptors to dynamically inject authentication headers and run request hooks.
|
|
@@ -2,8 +2,6 @@ import { isIdentifiable } from "./types.js";
|
|
|
2
2
|
import { BearerStrategy } from "./strategies/bearer-strategy.js";
|
|
3
3
|
import { IdentityStrategy } from "./strategies/identity-strategy.js";
|
|
4
4
|
import { NoAuthStrategy } from "./strategies/no-auth-strategy.js";
|
|
5
|
-
import dotenv from "dotenv";
|
|
6
|
-
dotenv.config();
|
|
7
5
|
/**
|
|
8
6
|
* Standard implementation of AuthContext that wraps an AuthStrategy.
|
|
9
7
|
* Handles runtime identifier updates for identity-based strategies.
|
package/dist/mcp-server.js
CHANGED
|
@@ -108,7 +108,7 @@ export class MCPServer {
|
|
|
108
108
|
});
|
|
109
109
|
});
|
|
110
110
|
}
|
|
111
|
-
this.server.registerTool("
|
|
111
|
+
this.server.registerTool("api_set_identity", {
|
|
112
112
|
description: "Set the identity (identifier) for future API requests. Requires an 'identity' auth strategy to be active.",
|
|
113
113
|
inputSchema: z.object({
|
|
114
114
|
identifier: z.string().describe("The new identity value (e.g., user UID)."),
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@williamp29/project-mcp-server",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.1",
|
|
4
4
|
"description": "A ModelContextProtocol server to let agents discover your project, such as APIs (using OpenAPI) or other resources.",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|