Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -36,4 +36,7 @@ dist
false/
metadata-v1.3/
registry.npmmirror.com/
registry.npmjs.com/
registry.npmjs.com/

# Kilocode directory
.kilocode/
10 changes: 7 additions & 3 deletions app/chrome-extension/entrypoints/popup/App.vue
Original file line number Diff line number Diff line change
Expand Up @@ -218,7 +218,9 @@
@click="showClearConfirmation = true"
>
<TrashIcon />
<span>{{ isClearingData ? getMessage('clearingStatus') : getMessage('clearAllDataButton') }}</span>
<span>{{
isClearingData ? getMessage('clearingStatus') : getMessage('clearAllDataButton')
}}</span>
</button>
</div>

Expand Down Expand Up @@ -307,7 +309,7 @@ const mcpConfigJson = computed(() => {
mcpServers: {
'streamable-mcp-server': {
type: 'streamable-http',
url: `http://127.0.0.1:${port}/mcp`,
url: `http://0.0.0.0:${port}/mcp`,
},
},
};
Expand Down Expand Up @@ -385,7 +387,9 @@ const getStatusClass = () => {
const getStatusText = () => {
if (nativeConnectionStatus.value === 'connected') {
if (serverStatus.value.isRunning) {
return getMessage('serviceRunningStatus', [(serverStatus.value.port || 'Unknown').toString()]);
return getMessage('serviceRunningStatus', [
(serverStatus.value.port || 'Unknown').toString(),
]);
} else {
return getMessage('connectedServiceNotStartedStatus');
}
Expand Down
4 changes: 4 additions & 0 deletions app/chrome-extension/wxt.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,10 @@ const CHROME_EXTENSION_KEY = process.env.CHROME_EXTENSION_KEY;
// See https://wxt.dev/api/config.html
export default defineConfig({
modules: ['@wxt-dev/module-vue'],
server: {
// 设置开发服务器主机地址为 0.0.0.0
hostname: '0.0.0.0',
},
runner: {
// 方案1: 禁用自动启动(推荐)
disabled: true,
Expand Down
4 changes: 2 additions & 2 deletions app/native-server/src/constant/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ export enum NATIVE_MESSAGE_TYPE {
ERROR = 'error',
}

export const NATIVE_SERVER_PORT = 56889;
export const NATIVE_SERVER_PORT = 12306;

// Timeout constants (in milliseconds)
export const TIMEOUTS = {
Expand All @@ -19,7 +19,7 @@ export const TIMEOUTS = {

// Server configuration
export const SERVER_CONFIG = {
HOST: '127.0.0.1',
HOST: '0.0.0.0',
CORS_ORIGIN: true,
LOGGER_ENABLED: false,
} as const;
Expand Down
2 changes: 1 addition & 1 deletion app/native-server/src/mcp/stdio-config.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
{
"url": "http://127.0.0.1:12306/mcp"
"url": "http://0.0.0.0:12306/mcp"
}
2 changes: 1 addition & 1 deletion app/native-server/src/scripts/constant.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
export const COMMAND_NAME = 'chrome-mcp-bridge';
export const EXTENSION_ID = 'hbdgbgagpkpjffpklnamcljpakneikee';
export const EXTENSION_ID = 'pndooeedlclmaiobaebgahlgcobchiin';
export const HOST_NAME = 'com.chromemcp.nativehost';
export const DESCRIPTION = 'Node.js Host for Browser Bridge Extension';
Loading