change port
This commit is contained in:
parent
8f6d431ef1
commit
19872c25b3
1
.vscode/openmcp_connection.json
vendored
Normal file
1
.vscode/openmcp_connection.json
vendored
Normal file
@ -0,0 +1 @@
|
|||||||
|
{"items":[]}
|
383
.vscode/tabs.example-servers_puppeteer.json
vendored
Normal file
383
.vscode/tabs.example-servers_puppeteer.json
vendored
Normal file
File diff suppressed because one or more lines are too long
@ -151,7 +151,7 @@ B <--mcp--> m(MCP Server)
|
|||||||
./dev.ps1
|
./dev.ps1
|
||||||
```
|
```
|
||||||
|
|
||||||
> 端口占用: 8080 (renderer) + 8081 (service)
|
> 端口占用: 8282 (renderer) + 8081 (service)
|
||||||
|
|
||||||
### Extention Dev
|
### Extention Dev
|
||||||
|
|
||||||
|
@ -228,7 +228,7 @@ export function createMessageBridge(setupSignature: any) {
|
|||||||
// 向外暴露一个独立函数,保证 MessageBridge 是单例的
|
// 向外暴露一个独立函数,保证 MessageBridge 是单例的
|
||||||
export function useMessageBridge() {
|
export function useMessageBridge() {
|
||||||
if (!messageBridge && getPlatform() !== 'nodejs') {
|
if (!messageBridge && getPlatform() !== 'nodejs') {
|
||||||
messageBridge = new MessageBridge('ws://localhost:8080');
|
messageBridge = new MessageBridge('ws://localhost:8282');
|
||||||
}
|
}
|
||||||
const bridge = messageBridge;
|
const bridge = messageBridge;
|
||||||
|
|
||||||
|
@ -1,5 +1,16 @@
|
|||||||
const { defineConfig } = require("@vue/cli-service");
|
const { defineConfig } = require("@vue/cli-service");
|
||||||
|
|
||||||
|
function getPublicPath() {
|
||||||
|
const env = process.env.NODE_ENV;
|
||||||
|
if (env === 'production') {
|
||||||
|
return '';
|
||||||
|
} else if (env === 'kirigaya') {
|
||||||
|
return '/mcp';
|
||||||
|
} else {
|
||||||
|
return '/';
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
module.exports = defineConfig({
|
module.exports = defineConfig({
|
||||||
transpileDependencies: true,
|
transpileDependencies: true,
|
||||||
publicPath: process.env.NODE_ENV === 'production' ? '' : '/',
|
publicPath: process.env.NODE_ENV === 'production' ? '' : '/',
|
||||||
|
@ -3,7 +3,7 @@
|
|||||||
```mermaid
|
```mermaid
|
||||||
graph LR
|
graph LR
|
||||||
|
|
||||||
renderer <--ws://localhost:8080--> router
|
renderer <--ws://localhost:8282--> router
|
||||||
subgraph service
|
subgraph service
|
||||||
router <--setting/save--> app_service
|
router <--setting/save--> app_service
|
||||||
router <--resources/read--> mcp_service
|
router <--resources/read--> mcp_service
|
||||||
@ -39,7 +39,7 @@ post_process --tool response--> storage
|
|||||||
```mermaid
|
```mermaid
|
||||||
graph LR
|
graph LR
|
||||||
|
|
||||||
renderer <--ws://localhost:8080--> llm_service
|
renderer <--ws://localhost:8282--> llm_service
|
||||||
subgraph llm_service_body
|
subgraph llm_service_body
|
||||||
llm_service --type image --> handle_image
|
llm_service --type image --> handle_image
|
||||||
llm_service --type text --> handle_text
|
llm_service --type text --> handle_text
|
||||||
|
@ -26,7 +26,7 @@ const logger = pino({
|
|||||||
});
|
});
|
||||||
|
|
||||||
export type MessageHandler = (message: VSCodeMessage) => void;
|
export type MessageHandler = (message: VSCodeMessage) => void;
|
||||||
const wss = new (WebSocket as any).Server({ port: 8080 });
|
const wss = new (WebSocket as any).Server({ port: 8282 });
|
||||||
|
|
||||||
interface IStdioLaunchSignature {
|
interface IStdioLaunchSignature {
|
||||||
type: 'stdio';
|
type: 'stdio';
|
||||||
|
58
service/tabs.my-browser.json
Normal file
58
service/tabs.my-browser.json
Normal file
@ -0,0 +1,58 @@
|
|||||||
|
{
|
||||||
|
"currentIndex": 0,
|
||||||
|
"tabs": [
|
||||||
|
{
|
||||||
|
"name": "交互测试",
|
||||||
|
"icon": "icon-robot",
|
||||||
|
"type": "blank",
|
||||||
|
"componentIndex": 3,
|
||||||
|
"storage": {
|
||||||
|
"messages": [],
|
||||||
|
"settings": {
|
||||||
|
"modelIndex": 7,
|
||||||
|
"enableTools": [
|
||||||
|
{
|
||||||
|
"name": "k_navigate",
|
||||||
|
"description": "Navigate to a URL",
|
||||||
|
"enabled": true
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "k_screenshot",
|
||||||
|
"description": "Take a screenshot of the current page or a specific element",
|
||||||
|
"enabled": true
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "k_click",
|
||||||
|
"description": "Click an element on the page",
|
||||||
|
"enabled": true
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "k_fill",
|
||||||
|
"description": "Fill out an input field",
|
||||||
|
"enabled": true
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "k_select",
|
||||||
|
"description": "Select an element on the page with Select tag",
|
||||||
|
"enabled": true
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "k_hover",
|
||||||
|
"description": "Hover an element on the page",
|
||||||
|
"enabled": true
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "k_evaluate",
|
||||||
|
"description": "Execute JavaScript in the browser console",
|
||||||
|
"enabled": true
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"enableWebSearch": false,
|
||||||
|
"temperature": 0.7,
|
||||||
|
"contextLength": 20,
|
||||||
|
"systemPrompt": ""
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
@ -109,7 +109,7 @@ export async function acquireInstalledConnection(): Promise<IConnectionItem | un
|
|||||||
// 获取 url
|
// 获取 url
|
||||||
const url = await vscode.window.showInputBox({
|
const url = await vscode.window.showInputBox({
|
||||||
prompt: '请输入连接的 URL',
|
prompt: '请输入连接的 URL',
|
||||||
placeHolder: '例如: https://127.0.0.1:8080'
|
placeHolder: '例如: https://127.0.0.1:8282'
|
||||||
});
|
});
|
||||||
|
|
||||||
if (!url) {
|
if (!url) {
|
||||||
|
@ -59,7 +59,7 @@ export async function acquireUserCustomConnection(): Promise<IConnectionItem | u
|
|||||||
// 获取 url
|
// 获取 url
|
||||||
const url = await vscode.window.showInputBox({
|
const url = await vscode.window.showInputBox({
|
||||||
prompt: '请输入连接的 URL',
|
prompt: '请输入连接的 URL',
|
||||||
placeHolder: '例如: https://127.0.0.1:8080'
|
placeHolder: '例如: https://127.0.0.1:8282'
|
||||||
});
|
});
|
||||||
|
|
||||||
if (!url) {
|
if (!url) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user