@freelancercom/phabricator-mcp 1.0.3 → 1.0.5
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 +8 -1
- package/dist/index.js +6 -1
- package/dist/tools/index.js +8 -0
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -185,7 +185,8 @@ Add to your `~/.claude/settings.json`:
|
|
|
185
185
|
"mcp__phabricator__phabricator_blog_post_search",
|
|
186
186
|
"mcp__phabricator__phabricator_phid_lookup",
|
|
187
187
|
"mcp__phabricator__phabricator_phid_query",
|
|
188
|
-
"mcp__phabricator__phabricator_transaction_search"
|
|
188
|
+
"mcp__phabricator__phabricator_transaction_search",
|
|
189
|
+
"mcp__phabricator__phabricator_version"
|
|
189
190
|
]
|
|
190
191
|
}
|
|
191
192
|
}
|
|
@@ -272,6 +273,12 @@ To allowlist all tools including write operations, use `"mcp__phabricator__*"` i
|
|
|
272
273
|
| `phabricator_phid_lookup` | Look up PHIDs by name (e.g., "T123", "@username") |
|
|
273
274
|
| `phabricator_phid_query` | Get details about PHIDs |
|
|
274
275
|
|
|
276
|
+
### Server
|
|
277
|
+
|
|
278
|
+
| Tool | Description |
|
|
279
|
+
|------|-------------|
|
|
280
|
+
| `phabricator_version` | Get the version of the running phabricator-mcp server |
|
|
281
|
+
|
|
275
282
|
## Usage
|
|
276
283
|
|
|
277
284
|
Once connected, just ask your AI assistant to perform Phabricator tasks in natural language:
|
package/dist/index.js
CHANGED
|
@@ -1,15 +1,20 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { McpServer } from '@modelcontextprotocol/sdk/server/mcp.js';
|
|
3
3
|
import { StdioServerTransport } from '@modelcontextprotocol/sdk/server/stdio.js';
|
|
4
|
+
import { readFileSync } from 'fs';
|
|
5
|
+
import { fileURLToPath } from 'url';
|
|
6
|
+
import { dirname, join } from 'path';
|
|
4
7
|
import { loadConfig } from './config.js';
|
|
5
8
|
import { ConduitClient } from './client/conduit.js';
|
|
6
9
|
import { registerAllTools } from './tools/index.js';
|
|
10
|
+
const __dirname = dirname(fileURLToPath(import.meta.url));
|
|
11
|
+
const pkg = JSON.parse(readFileSync(join(__dirname, '..', 'package.json'), 'utf-8'));
|
|
7
12
|
async function main() {
|
|
8
13
|
const config = loadConfig();
|
|
9
14
|
const client = new ConduitClient(config);
|
|
10
15
|
const server = new McpServer({
|
|
11
16
|
name: 'phabricator',
|
|
12
|
-
version:
|
|
17
|
+
version: pkg.version,
|
|
13
18
|
});
|
|
14
19
|
registerAllTools(server, client);
|
|
15
20
|
const transport = new StdioServerTransport();
|
package/dist/tools/index.js
CHANGED
|
@@ -1,3 +1,6 @@
|
|
|
1
|
+
import { readFileSync } from 'fs';
|
|
2
|
+
import { dirname, join } from 'path';
|
|
3
|
+
import { fileURLToPath } from 'url';
|
|
1
4
|
import { registerManiphestTools } from './maniphest.js';
|
|
2
5
|
import { registerDifferentialTools } from './differential.js';
|
|
3
6
|
import { registerDiffusionTools } from './diffusion.js';
|
|
@@ -8,7 +11,12 @@ import { registerPhrictionTools } from './phriction.js';
|
|
|
8
11
|
import { registerPhidTools } from './phid.js';
|
|
9
12
|
import { registerPhameTools } from './phame.js';
|
|
10
13
|
import { registerTransactionTools } from './transaction.js';
|
|
14
|
+
const __dirname = dirname(fileURLToPath(import.meta.url));
|
|
15
|
+
const pkg = JSON.parse(readFileSync(join(__dirname, '..', '..', 'package.json'), 'utf-8'));
|
|
11
16
|
export function registerAllTools(server, client) {
|
|
17
|
+
server.tool('phabricator_version', 'Get the version of the running phabricator-mcp server', {}, async () => ({
|
|
18
|
+
content: [{ type: 'text', text: pkg.version }],
|
|
19
|
+
}));
|
|
12
20
|
registerManiphestTools(server, client);
|
|
13
21
|
registerDifferentialTools(server, client);
|
|
14
22
|
registerDiffusionTools(server, client);
|
package/package.json
CHANGED