@pharaoh-so/mcp 0.3.32 → 0.3.34
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/inspect-tools.json +38 -7
- package/package.json +1 -1
package/inspect-tools.json
CHANGED
|
@@ -2,7 +2,6 @@
|
|
|
2
2
|
"tools": [
|
|
3
3
|
{
|
|
4
4
|
"name": "get_codebase_map",
|
|
5
|
-
"title": "Codebase Architecture Map",
|
|
6
5
|
"description": "Pharaoh is a codebase knowledge graph. Call this FIRST — get the full architecture instead of reading files one-by-one.\n\nCALL THIS WHEN:\n• You're starting a new task and need to understand the codebase structure\n• You need to know which modules exist and how they relate to each other\n• You want to find the most actively changed files (likely where bugs live)\n• You need to see all API endpoints at a glance\n\nRETURNS: All modules with file counts and LOC, dependency graph with weights and bidirectional warnings, hot files (most changed in last 90 days), and all HTTP endpoints with their handler files.\n\nEXAMPLES:\n• \"What modules does this codebase have?\"\n• \"How is the codebase structured?\"\n• \"Which files change the most?\"\n• \"Are there any circular dependencies between modules?\"\n\nWHY NOT JUST READ FILES: Manually reading directory trees and package.json files gives you file structure but not dependency relationships, change frequency, or endpoint mappings. This gives you the full architectural picture in one call instead of 20+ file reads.",
|
|
7
6
|
"inputSchema": {
|
|
8
7
|
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
@@ -22,17 +21,12 @@
|
|
|
22
21
|
]
|
|
23
22
|
},
|
|
24
23
|
"annotations": {
|
|
24
|
+
"title": "Codebase Architecture Map",
|
|
25
25
|
"readOnlyHint": true,
|
|
26
26
|
"destructiveHint": false
|
|
27
27
|
},
|
|
28
28
|
"execution": {
|
|
29
29
|
"taskSupport": "forbidden"
|
|
30
|
-
},
|
|
31
|
-
"_meta": {
|
|
32
|
-
"ui": {
|
|
33
|
-
"resourceUri": "ui://pharaoh/codebase-explorer"
|
|
34
|
-
},
|
|
35
|
-
"ui/resourceUri": "ui://pharaoh/codebase-explorer"
|
|
36
30
|
}
|
|
37
31
|
},
|
|
38
32
|
{
|
|
@@ -249,6 +243,43 @@
|
|
|
249
243
|
"taskSupport": "forbidden"
|
|
250
244
|
}
|
|
251
245
|
},
|
|
246
|
+
{
|
|
247
|
+
"name": "get_unused_code",
|
|
248
|
+
"description": "Find code nothing runs: functions no production entry point (endpoint, CLI command, cron job, event handler, worker, entry file) reaches. Pass `functions` to check whether specific functions are wired in.\n\nCALL THIS WHEN:\n• Cleaning up or refactoring a module: find what's dead before touching it\n• Before deleting a function: confirm nothing reaches it\n• After pushing new code: confirm the new functions are reachable from an entry point\n\nRETURNS:\n• Dead: unreached, named in no other file, and no production file imports its file. Safe to delete.\n• Possibly unused: unreached, but named in other files (string dispatch, dynamic loading) or its file is imported. Listed with the files that name it; check before deleting.\n• Used only by tests: exported functions only test files reference.\nWith `functions`: each one's status, and the call path from an entry point when it's reachable.",
|
|
249
|
+
"inputSchema": {
|
|
250
|
+
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
251
|
+
"type": "object",
|
|
252
|
+
"properties": {
|
|
253
|
+
"repo": {
|
|
254
|
+
"type": "string",
|
|
255
|
+
"description": "Repository name — one of your connected repos."
|
|
256
|
+
},
|
|
257
|
+
"module": {
|
|
258
|
+
"description": "Limit to one module",
|
|
259
|
+
"type": "string"
|
|
260
|
+
},
|
|
261
|
+
"functions": {
|
|
262
|
+
"description": "Function names to check instead of listing everything unused",
|
|
263
|
+
"maxItems": 20,
|
|
264
|
+
"type": "array",
|
|
265
|
+
"items": {
|
|
266
|
+
"type": "string"
|
|
267
|
+
}
|
|
268
|
+
}
|
|
269
|
+
},
|
|
270
|
+
"required": [
|
|
271
|
+
"repo"
|
|
272
|
+
]
|
|
273
|
+
},
|
|
274
|
+
"annotations": {
|
|
275
|
+
"title": "Unused Code",
|
|
276
|
+
"readOnlyHint": true,
|
|
277
|
+
"destructiveHint": false
|
|
278
|
+
},
|
|
279
|
+
"execution": {
|
|
280
|
+
"taskSupport": "forbidden"
|
|
281
|
+
}
|
|
282
|
+
},
|
|
252
283
|
{
|
|
253
284
|
"name": "pharaoh_account",
|
|
254
285
|
"description": "Your Pharaoh plan, live repo and refreshes.\n\nPick one action and provide its fields; invalid combinations are rejected.\n\n• status: each workspace's plan and live repo, the upgrade link, the setup page\n• set_free_repo { repo }: change a free workspace's live repo\n• refresh_repo { repo, full? }: re-map one live repo now\n\nCALL THIS WHEN:\n• You want to know what plan you're on or which repo is live\n• A repo doesn't answer because it isn't live, or you want to switch which one is\n• You want to upgrade so every repo is live, or manage billing\n• You want a repo's graph refreshed before its next push\n\nFlag reference:\n full = force a full remap, bypassing the incremental diff.",
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pharaoh-so/mcp",
|
|
3
3
|
"mcpName": "so.pharaoh/pharaoh",
|
|
4
|
-
"version": "0.3.
|
|
4
|
+
"version": "0.3.34",
|
|
5
5
|
"description": "MCP proxy for Pharaoh — maps codebases into queryable knowledge graphs for AI agents. Enables Claude Code in headless environments (VPS, SSH, CI) via device flow auth.",
|
|
6
6
|
"type": "module",
|
|
7
7
|
"main": "dist/index.js",
|